Source: bind9 Version: 1:9.9.5.dfsg-9 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-CC: [email protected]
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that bind9 doesn't build reproducibly. The binary gets a timestamp of the build date embedded. The attached patch defines a macro that prevents that the timestamp will be part of the version string. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules index 7468f57..3734df7 100755 --- a/debian/rules +++ b/debian/rules @@ -28,7 +28,7 @@ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) export MAKEFLAGS += -j$(NUMJOBS) endif -export CFLAGS=-fno-strict-aliasing -fno-delete-null-pointer-checks -DDIG_SIGCHASE $(DEBUG) $(OPT) +export CFLAGS=-fno-strict-aliasing -fno-delete-null-pointer-checks -DDIG_SIGCHASE -DNO_VERSION_DATE $(DEBUG) $(OPT) ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) EXTRA_FEATURES=--disable-linux-caps --disable-threads
signature.asc
Description: OpenPGP digital signature

