summaryrefslogtreecommitdiff
path: root/apt-inst
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-01-09 10:45:34 +0000
committerJulian Andres Klode <jak@debian.org>2016-01-11 17:46:41 +0100
commit831ea74cddf8568b8648edddb394fdd3d1ba7b8e (patch)
treedce40f839154245afc959eb035926c45cde3f3fa /apt-inst
parentace5a062fc5390e636b09c5684bfbeae755cf437 (diff)
downloadapt-831ea74cddf8568b8648edddb394fdd3d1ba7b8e.tar.gz
Sort the list of sources to be built and linked
Fix reproducibility issue due to readdir() order by sorting the list of sources to be built and linked. [jak@debian.org: Added summary and fixed typo] Closes: #810509
Diffstat (limited to 'apt-inst')
-rw-r--r--apt-inst/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-inst/makefile b/apt-inst/makefile
index 2883cbcb0..5601cd9e6 100644
--- a/apt-inst/makefile
+++ b/apt-inst/makefile
@@ -20,7 +20,7 @@ SLIBS=$(PTHREADLIB) -lapt-pkg
APT_DOMAIN:=libapt-inst$(MAJOR)
LIBRARYDEPENDS=$(LIB)/libapt-pkg.so
-SOURCE = $(wildcard *.cc */*.cc)
-HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h)))
+SOURCE = $(sort $(wildcard *.cc */*.cc))
+HEADERS = $(addprefix apt-pkg/,$(notdir $(sort $(wildcard *.h */*.h))))
include $(LIBRARY_H)