Skip to content

Commit f13cb51

Browse files
committed
rsvg-again
1 parent 43e6bca commit f13cb51

1 file changed

Lines changed: 27 additions & 26 deletions

File tree

Dockerfile

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ARG APK_OPTS=""
88

99
RUN apk add --no-cache $APK_OPTS \
1010
coreutils \
11+
mold \
1112
pkgconfig \
1213
wget \
1314
rust cargo cargo-c \
@@ -166,28 +167,28 @@ RUN \
166167
-Dgtk_doc=false && \
167168
ninja -j$(nproc) -vC build install
168169

169-
# # bump: librsvg /LIBRSVG_VERSION=([\d.]+)/ https://gitlab.gnome.org/GNOME/librsvg.git|^2
170-
# # bump: librsvg after ./hashupdate Dockerfile LIBRSVG $LATEST
171-
# # bump: librsvg link "NEWS" https://gitlab.gnome.org/GNOME/librsvg/-/blob/master/NEWS
172-
# ARG LIBRSVG_VERSION=2.60.0
173-
# ARG LIBRSVG_URL="https://download.gnome.org/sources/librsvg/2.60/librsvg-$LIBRSVG_VERSION.tar.xz"
174-
# ARG LIBRSVG_SHA256=0b6ffccdf6e70afc9876882f5d2ce9ffcf2c713cbaaf1ad90170daa752e1eec3
175-
# RUN \
176-
# wget $WGET_OPTS -O librsvg.tar.xz "$LIBRSVG_URL" && \
177-
# echo "$LIBRSVG_SHA256 librsvg.tar.xz" | sha256sum --status -c - && \
178-
# tar $TAR_OPTS librsvg.tar.xz && cd librsvg-* && \
179-
# # workaround for https://gitlab.gnome.org/GNOME/librsvg/-/issues/1158
180-
# sed -i "/^if host_system in \['windows'/s/, 'linux'//" meson.build && \
181-
# meson setup build \
182-
# -Dbuildtype=release \
183-
# -Ddefault_library=static \
184-
# -Ddocs=disabled \
185-
# -Dintrospection=disabled \
186-
# -Dpixbuf=disabled \
187-
# -Dpixbuf-loader=disabled \
188-
# -Dvala=disabled \
189-
# -Dtests=false && \
190-
# ninja -j$(nproc) -vC build install
170+
# bump: librsvg /LIBRSVG_VERSION=([\d.]+)/ https://gitlab.gnome.org/GNOME/librsvg.git|^2
171+
# bump: librsvg after ./hashupdate Dockerfile LIBRSVG $LATEST
172+
# bump: librsvg link "NEWS" https://gitlab.gnome.org/GNOME/librsvg/-/blob/master/NEWS
173+
ARG LIBRSVG_VERSION=2.60.0
174+
ARG LIBRSVG_URL="https://download.gnome.org/sources/librsvg/2.60/librsvg-$LIBRSVG_VERSION.tar.xz"
175+
ARG LIBRSVG_SHA256=0b6ffccdf6e70afc9876882f5d2ce9ffcf2c713cbaaf1ad90170daa752e1eec3
176+
RUN \
177+
wget $WGET_OPTS -O librsvg.tar.xz "$LIBRSVG_URL" && \
178+
echo "$LIBRSVG_SHA256 librsvg.tar.xz" | sha256sum --status -c - && \
179+
tar $TAR_OPTS librsvg.tar.xz && cd librsvg-* && \
180+
# workaround for https://gitlab.gnome.org/GNOME/librsvg/-/issues/1158
181+
sed -i "/^if host_system in \['windows'/s/, 'linux'//" meson.build && \
182+
meson setup build \
183+
-Dbuildtype=release \
184+
-Ddefault_library=static \
185+
-Ddocs=disabled \
186+
-Dintrospection=disabled \
187+
-Dpixbuf=disabled \
188+
-Dpixbuf-loader=disabled \
189+
-Dvala=disabled \
190+
-Dtests=false && \
191+
ninja -j$(nproc) -vC build install
191192

192193
# build after libvmaf
193194
# bump: aom /AOM_VERSION=([\d.]+)/ git:https://aomedia.googlesource.com/aom|*
@@ -1142,7 +1143,7 @@ RUN \
11421143
./configure \
11431144
--pkg-config-flags="--static" \
11441145
--extra-cflags="-fopenmp" \
1145-
--extra-ldflags="-fopenmp -Wl,--allow-multiple-definition -Wl,-z,stack-size=2097152" \
1146+
--extra-ldflags="-fuse-ld=mold -fopenmp -Wl,--allow-multiple-definition -Wl,-z,stack-size=2097152" \
11461147
--toolchain=hardened \
11471148
--disable-debug \
11481149
--disable-shared \
@@ -1177,7 +1178,7 @@ RUN \
11771178
--enable-libopus \
11781179
--enable-librabbitmq \
11791180
--enable-librav1e \
1180-
# --enable-librsvg \
1181+
--enable-librsvg \
11811182
--enable-librtmp \
11821183
--enable-librubberband \
11831184
--enable-libshine \
@@ -1253,7 +1254,7 @@ RUN \
12531254
libopus: env.OPUS_VERSION, \
12541255
librabbitmq: env.LIBRABBITMQ_VERSION, \
12551256
librav1e: env.RAV1E_VERSION, \
1256-
# librsvg: env.LIBRSVG_VERSION, \
1257+
librsvg: env.LIBRSVG_VERSION, \
12571258
librtmp: env.LIBRTMP_COMMIT, \
12581259
librubberband: env.RUBBERBAND_VERSION, \
12591260
libsamplerate: env.LIBSAMPLERATE_VERSION, \
@@ -1323,7 +1324,7 @@ RUN ["/ffprobe", "-i", "https://github.com/favicon.ico"]
13231324
# tls/https certs
13241325
RUN ["/ffprobe", "-tls_verify", "1", "-ca_file", "/etc/ssl/cert.pem", "-i", "https://github.com/favicon.ico"]
13251326
# svg
1326-
# RUN ["/ffprobe", "-i", "https://github.githubassets.com/favicons/favicon.svg"]
1327+
RUN ["/ffprobe", "-i", "https://github.githubassets.com/favicons/favicon.svg"]
13271328
# vvenc
13281329
RUN ["/ffmpeg", "-f", "lavfi", "-i", "testsrc", "-c:v", "libvvenc", "-t", "100ms", "-f", "null", "-"]
13291330
# x265 regression

0 commit comments

Comments
 (0)