Source: blockout2 Version: 2.4+dfsg1-7 Severity: wishlist Tags: patch User: [email protected] Usertags: fileordering X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that blockout2 could not be built reproducibly. The list of source files is not sorted, which leads to a non-deterministic linking order. The attached patch fixes this. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/Makefile b/debian/Makefile index 6a0b481..5d38102 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -1,7 +1,7 @@ -BSRC := $(wildcard BlockOut/*.cpp BlockOut/GLApp/*.cpp) +BSRC := $(sort $(wildcard BlockOut/*.cpp BlockOut/GLApp/*.cpp)) BOBJ := $(BSRC:BlockOut/%.cpp=obj/bo/%.o) -ISRC := $(shell find ImageLib -name '*.cpp' -o -name '*.c') +ISRC := $(sort $(shell find ImageLib -name '*.cpp' -o -name '*.c')) ICOBJ := $(ISRC:ImageLib/%.c=obj/il/%.o) IOBJ := $(ICOBJ:ImageLib/%.cpp=obj/il/%.o)
signature.asc
Description: PGP signature

