Source: zorp Version: 3.9.5-7.1 Severity: wishlist Tags: patch upstream User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that zorp could not be built reproducibly. It embeds the current build date/time into the binary. The attached patch strips this to enable reproducible building. 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..81d6219 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,34 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Strip embedded compile/config date to enable reproducible building + +--- a/configure.ac ++++ b/configure.ac +@@ -450,8 +450,6 @@ + AC_SUBST(SOCK_LIBS) + + +-date=`date +%Y/%m/%d` +-AC_DEFINE_UNQUOTED(ZORP_CONFIG_DATE, "$date", [Configuration date]) + + TESTCASES="" + dnl for mod in $MODULE_DIRS; do +--- a/zorp/main.c ++++ b/zorp/main.c +@@ -191,8 +191,6 @@ + { + printf("Zorp %s (%s)\n" + "Revision: %s\n" +- "Compile-Date: %s %s\n" +- "Config-Date: %s\n" + "Trace: %s\n" + "Debug: %s\n" + "IPOptions: %s\n" +@@ -200,8 +198,6 @@ + , + BROCHURE_VERSION, VERSION, + ZORP_SOURCE_REVISION, +- __DATE__, __TIME__, +- ZORP_CONFIG_DATE, + ON_OFF_STR(ENABLE_TRACE), + ON_OFF_STR(ENABLE_DEBUG), + ON_OFF_STR(ENABLE_IPOPTIONS), diff --git a/debian/patches/series b/debian/patches/series index 0b162a1..6bd156d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -11,3 +11,4 @@ 0011-tests-Makefile.am-Removed-kzorp-directory-too-becaus.patch 0012-Makefile.am-Removed-test-directory-because-of-an-err.patch remove-ssl3.patch +reproducible-build.patch
signature.asc
Description: Digital signature