sort svgz file list

(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.
This commit is contained in:
Bernhard M. Wiedemann 2017-06-22 15:52:43 +02:00 committed by Jean-Marc Lasgouttes
parent a550f7d91e
commit b8e3615492

View 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>" >> $@