Source: elkcode
Version: 2.3.22-1
Severity: wishlist
Tags: patch upstream
User: [email protected]
Usertags: environment
X-Debbugs-Cc: [email protected]

Dear Maintainer,

While working on the “reproducible builds” effort [1], we have noticed
that 'elkcode' could not be built reproducibly.

The attached patch fixes the locale used by ls to sort files.
Once applied, elkcode can be built reproducibly in our current
experimental framework.

Regards,
Alexis Bienvenüe.

 [1]: https://wiki.debian.org/ReproducibleBuilds







Description: Set ls locale for reproducible order.
 Fix locale used with `ls', so that the order of the files listed is
 always the same. This makes the build reproducible.
Author: Alexis Bienvenüe <[email protected]>

--- elkcode-2.3.22.orig/src/Makefile
+++ elkcode-2.3.22/src/Makefile
@@ -157,7 +157,7 @@ cleanall:
 
 doc:
 	rm -f elk.aux elk.bbl elk.blg elk.log elk.pdf elk.tex elk.toc elk.lst
-	ls $(SRC_modules) $(SRC_routines) $(SRC_XC) $(SRC_phonon) $(SRC_DFTU) \
+	LC_ALL=C ls $(SRC_modules) $(SRC_routines) $(SRC_XC) $(SRC_phonon) $(SRC_DFTU) \
          $(SRC_RDMFT) $(SRC_TDDFT) > elk.lst
 	./protex -F -s $(SRC_main) $$(cat elk.lst) > elk.tex
 	pdflatex elk;pdflatex elk;pdflatex elk

Reply via email to