Source: zp Version: 1.0-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that zp doesn't build reproducibly. It embeds the current date into the manpage. The attached patch fixes this by using the last changelog date as a timestamp that will be embedded. 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..ffd70c5 --- /dev/null +++ b/debian/patches/reproducible_build.patch @@ -0,0 +1,16 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Remove timestamp from binary to enable reproducible builds. + +Index: zp-1.0/zp.cpp +=================================================================== +--- zp-1.0.orig/zp.cpp ++++ zp-1.0/zp.cpp +@@ -3358,7 +3358,7 @@ static void list(int argc, char** argv) + // Print help message and exit + static void usage() { + printf("ZP v1.00 archiver, (C) 2010, Ocarina Networks Inc.\n" +- "Written by Matt Mahoney, " __DATE__ ".\n" ++ "Written by Matt Mahoney.\n" + "Licensed under GPL v3, http://www.gnu.org/copyleft/gpl.html\n" + "\n" + "Usage: zp command archive.zpaq [files...]\n" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b2026fe --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +reproducible_build.patch diff --git a/debian/pod2man.mk b/debian/pod2man.mk index 64bc797..f878a28 100644 --- a/debian/pod2man.mk +++ b/debian/pod2man.mk @@ -34,9 +34,10 @@ endif PACKAGE ?= package # Optional variables to set +BUILD_DATE ?= $$(dpkg-parsechangelog -S Date -lchangelog) MANSECT ?= 1 PODCENTER ?= User Commands -PODDATE = $$(date "+%Y-%m-%d") +PODDATE = $$(date -u "+%Y-%m-%d" -d "$(BUILD_DATE)") # Directories MANSRC =
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds