Source: netsniff-ng Version: 0.6.0-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: locale fileordering X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that netsniff-ng could not be built reproducibly. The order of object files varies while linking. The attached patch fixes this by ensuring a stable order independent of the configured locale. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..0ec57a2 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,10 @@ +Index: netsniff-ng-0.6.0/Makefile +=================================================================== +--- netsniff-ng-0.6.0.orig/Makefile ++++ netsniff-ng-0.6.0/Makefile +@@ -181,4 +181,4 @@ $(foreach tool,$(TOOLS),$(eval $(call TO + %:: ; + + $(TOOLS): +- $(LDQ) $(LDFLAGS) -o $@/$@ $@/*.o $($@-libs) ++ $(LDQ) $(LDFLAGS) -o $@/$@ $(shell LC_ALL=C ls $@/*.o) $($@-libs) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..55077d0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +reproducible-build.patch
signature.asc
Description: PGP signature