]> git.lyx.org Git - features.git/commitdiff
sort svgz file list
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Thu, 22 Jun 2017 13:52:43 +0000 (15:52 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 27 Jun 2017 14:04:33 +0000 (16:04 +0200)
(required because filesystems return listings in undeterministic order)
to generate Resources.qrc and thereby Resources.cpp and the lyx binary
in a reproducible way

Setting LC_ALL=C because sort order might vary with locales.

See https://reproducible-builds.org/ for why this matters.

Fixes #10711.

src/frontends/qt4/Makefile.am

index c110dae70fe77b59c8eeeffff11d76a8a2b511b6..8ecaf4a0f3fff661aec525aa40ccb4b22597c686 100644 (file)
@@ -26,6 +26,7 @@ moc_%.cpp: %.h
 Resources.qrc: Makefile
        $(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \
        find $(top_srcdir)/lib/images -name '*.svgz' -o -name '*.png' -o -name '*.gif' \
+               | LC_ALL=C sort \
                | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
                >> $@ ;\
        echo "</qresource></RCC>" >> $@