Source: ntp Version: 1:4.2.8p8+dfsg-1 Severity: wishlist Tags: patch upstream User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that ntp could not be built reproducibly. It embeds the build time into the version string. The attached patch removes this, so that it can be built reproducibly. 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..9c8e34a
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,11 @@
+--- a/scripts/build/mkver.in
++++ b/scripts/build/mkver.in
+@@ -15,8 +15,6 @@
+ *) ConfStr="${ConfStr}-@VER_SUFFIX@" ;;
+ esac
+
+-ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
+-
+ if [ ! -f .version ]; then
+ echo 0 > .version
+ fi
diff --git a/debian/patches/series b/debian/patches/series
index 7c22fd7..fd76e7d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ ntpdate-ipv6.patch
ntpd-linux-caps-runtime.patch
openssl-disable-check.patch
libedit.patch
+reproducible-build.patch
signature.asc
Description: Digital signature
_______________________________________________ Reproducible-builds mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds
