Skip to content

Commit 3581b67

Browse files
committed
modules: added xslscript.pl to debian-based image.
This should not be really required. Sometimes when building debian changelogs in pkg-oss there seems to be a timestamp issue forcing changes.xslt to be rebuilt. I can not reliable reproduce it, but a workaround seems to be just to ship the script and use it when it's needed. Fixes #677.
1 parent a563dda commit 3581b67

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

modules/Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ RUN set -ex \
1515
&& apt install -y --no-install-suggests --no-install-recommends \
1616
patch make wget mercurial devscripts debhelper dpkg-dev \
1717
quilt lsb-release build-essential libxml2-utils xsltproc \
18-
equivs git g++ \
18+
equivs git g++ libparse-recdescent-perl \
19+
&& XSLSCRIPT_SHA512="f7194c5198daeab9b3b0c3aebf006922c7df1d345d454bd8474489ff2eb6b4bf8e2ffe442489a45d1aab80da6ecebe0097759a1e12cc26b5f0613d05b7c09ffa *stdin" \
20+
&& wget -O /tmp/xslscript.pl https://hg.nginx.org/xslscript/raw-file/01dc9ba12e1b/xslscript.pl \
21+
&& if [ "$(cat /tmp/xslscript.pl | openssl sha512 -r)" = "$XSLSCRIPT_SHA512" ]; then \
22+
echo "XSLScript checksum verification succeeded!"; \
23+
chmod +x /tmp/xslscript.pl; \
24+
mv /tmp/xslscript.pl /usr/local/bin/; \
25+
else \
26+
echo "XSLScript checksum verification failed!"; \
27+
exit 1; \
28+
fi \
1929
&& hg clone -r ${NGINX_VERSION}-${PKG_RELEASE%%~*} https://hg.nginx.org/pkg-oss/ \
2030
&& cd pkg-oss \
2131
&& mkdir /tmp/packages \

0 commit comments

Comments
 (0)