Source: openni-sensor-primesense Version: 5.1.0.41-6 Severity: wishlist Tags: patch upstream User: reproducible-bui...@lists.alioth.debian.org Usertags: fileordering X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that openni-sensor-primesense could not be built reproducibly. During build it links object files in non-deterministic order. The attached patch fixes this by sorting the list of source files. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/0013-Reproducible-builds.patch b/debian/patches/0013-Reproducible-builds.patch new file mode 100644 index 0000000..d7151a6 --- /dev/null +++ b/debian/patches/0013-Reproducible-builds.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Sort list of source files for deterministic linking order + +--- a/Platform/Linux/Build/Common/CommonDefs.mak ++++ b/Platform/Linux/Build/Common/CommonDefs.mak +@@ -42,7 +42,7 @@ + endif + + # expand file list +-SRC_FILES_LIST = $(wildcard $(SRC_FILES)) ++SRC_FILES_LIST = $(sort $(wildcard $(SRC_FILES))) + + # define the intermediate directory + INT_DIR = $(PLATFORM)-$(CFG) diff --git a/debian/patches/series b/debian/patches/series index 8f33b95..f93fb2e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -10,3 +10,4 @@ 0010-Add-ARMhf-support.patch 0011-Add-Arm64-support-thanks-Edmund-Grimley-Evans.patch 0012-Add-mips-support-thanks-Daniel-Knezevic.patch +0013-Reproducible-builds.patch