Source: bulletml Version: 0.0.6-6.1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps fileordering
Hi! While working on the “reproducible builds” effort [1], we have noticed that bulletml could not be built reproducibly. The attached patch sets LC_ALL=C when adding members to the libbulletml.a archive so that members are added in a deterministic order. Regards, Daf [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/makefile.patch b/debian/patches/makefile.patch index 9062d16..966e207 100644 --- a/debian/patches/makefile.patch +++ b/debian/patches/makefile.patch @@ -3,8 +3,8 @@ Index: bulletml-0.0.6/src/Makefile =================================================================== ---- bulletml-0.0.6.orig/src/Makefile 2007-08-28 11:52:24.000000000 +0000 -+++ bulletml-0.0.6/src/Makefile 2007-08-28 11:54:20.000000000 +0000 +--- bulletml-0.0.6.orig/src/Makefile ++++ bulletml-0.0.6/src/Makefile @@ -1,27 +1,46 @@ -CC = g++ -INCLUDES = -I. @@ -37,7 +37,7 @@ Index: bulletml-0.0.6/src/Makefile -all: libbulletml.a +libbulletml.a: tinyxml/tinyxml.o ../bulletml.d $(OBJS) -+ ar cru $@ *.o tinyxml/tiny*.o ++ LC_ALL=C ar cru $@ *.o tinyxml/tiny*.o -libbulletml.a: $(OBJS) +../bulletml.d: bulletml_d.cpp