unzip: remove build timestamp
authorAlexander Couzens <lynxis@fe80.eu>
Thu, 16 Nov 2017 17:46:47 +0000 (18:46 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Fri, 17 Nov 2017 12:39:30 +0000 (13:39 +0100)
Build timestamps prevent reproducible builds [0].
Thanks to debian for the patch.

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
utils/unzip/Makefile
utils/unzip/patches/010-remove-build-date.patch [new file with mode: 0644]

index 39a28e7719142879641411abaa712e10802fed9e..fd8f74b7c34b7841d94fda04ab74ec5b5e84e2b8 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=unzip
 PKG_REV:=60
 PKG_VERSION:=6.0
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
 PKG_SOURCE_URL:=@SF/infozip
diff --git a/utils/unzip/patches/010-remove-build-date.patch b/utils/unzip/patches/010-remove-build-date.patch
new file mode 100644 (file)
index 0000000..bb60533
--- /dev/null
@@ -0,0 +1,17 @@
+From: Jérémy Bobbio <lunar@debian.org>
+Subject: Remove build date
+Bug-Debian: https://bugs.debian.org/782851
+ In order to make unzip build reproducibly, we remove the
+ (already optional) build date from the binary.
+
+--- a/unix/unix.c
++++ b/unix/unix.c
+@@ -1705,7 +1705,7 @@
+ #endif /* Sun */
+ #endif /* SGI */
+-#ifdef __DATE__
++#if 0
+       " on ", __DATE__
+ #else
+       "", ""