From 3e74f90475b0aef4f5d6432f2b776a8b50e5b096 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sat, 13 Jan 2024 02:24:33 +0800 Subject: [PATCH] Use the version of gn that works on old Apline (#2711) The new versions of gn require C++20 which is not easily available on the very old Alpine. (cherry picked from commit 9274aeec807fd17eec2a3266ad4c2475c37d8a0c) --- scripts/Docker/alpine/amd64/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Docker/alpine/amd64/Dockerfile b/scripts/Docker/alpine/amd64/Dockerfile index 4077941fb2..13fd15ed72 100644 --- a/scripts/Docker/alpine/amd64/Dockerfile +++ b/scripts/Docker/alpine/amd64/Dockerfile @@ -6,8 +6,10 @@ FROM amd64/alpine:3.9 RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.16/main -u alpine-keys --allow-untrusted RUN apk add --no-cache bash curl wget python python3 git build-base ninja fontconfig-dev libintl clang +# use the specific commit before the tool switched to C++20 which is too new for this old alpine RUN git clone https://gn.googlesource.com/gn /usr/share/gn \ && cd /usr/share/gn \ + && git checkout d4be45bb28fbfc16a41a1e02c86137df6815f2dd \ && python build/gen.py --allow-warning \ && ninja -C out \ && /usr/share/gn/out/gn --version