git-gui: sort entries in tclIndex
authorOlaf Hering <olaf@aepfle.de>
Mon, 26 Jan 2015 15:07:21 +0000 (17:07 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 1 May 2015 14:53:06 +0000 (15:53 +0100)
ALL_LIBFILES uses wildcard, which provides the result in directory
order. This order depends on the underlying filesystem on the
buildhost. To get reproducible builds it is required to sort such list
before using them.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Makefile

index 4f00bdd..fe30be3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -259,7 +259,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
         rm -f $@ ; \
         echo '# Autogenerated by git-gui Makefile' >$@ && \
         echo >>$@ && \
-        $(foreach p,$(PRELOAD_FILES) $(ALL_LIBFILES),echo '$(subst lib/,,$p)' >>$@ &&) \
+        $(foreach p,$(PRELOAD_FILES) $(sort $(ALL_LIBFILES)),echo '$(subst lib/,,$p)' >>$@ &&) \
         echo >>$@ ; \
        fi