From b8e3615492e306f6b390441428748872c433ce08 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 22 Jun 2017 15:52:43 +0200 Subject: [PATCH] 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. --- src/frontends/qt4/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/Makefile.am b/src/frontends/qt4/Makefile.am index c110dae70f..8ecaf4a0f3 100644 --- a/src/frontends/qt4/Makefile.am +++ b/src/frontends/qt4/Makefile.am @@ -26,6 +26,7 @@ moc_%.cpp: %.h Resources.qrc: Makefile $(AM_V_GEN)echo "" > $@ ; \ find $(top_srcdir)/lib/images -name '*.svgz' -o -name '*.png' -o -name '*.gif' \ + | LC_ALL=C sort \ | sed -e 's:$(top_srcdir)/lib/\(.*\):&:' \ >> $@ ;\ echo "" >> $@