zip: remove build timestamp
authorAlexander Couzens <redacted>
Thu, 16 Nov 2017 17:26:29 +0000 (18:26 +0100)
committerAlexander Couzens <redacted>
Fri, 17 Nov 2017 12:39:05 +0000 (13:39 +0100)
Build timestamps prevents reproducible builds [0].
Thanks to debian for the patch.

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

Signed-off-by: Alexander Couzens <redacted>
utils/zip/Makefile
utils/zip/patches/010-remove-build-date.patch [new file with mode: 0644]

index afdc76ada53f93848849d947faf666f522855b0b..c87f1ed84f16f96d1cee6f75eaa44d4345f2fbfb 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=zip
 PKG_REV:=30
 PKG_VERSION:=3.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
 PKG_SOURCE_URL:=@SF/infozip
diff --git a/utils/zip/patches/010-remove-build-date.patch b/utils/zip/patches/010-remove-build-date.patch
new file mode 100644 (file)
index 0000000..d7165cd
--- /dev/null
@@ -0,0 +1,15 @@
+From: Santiago Vila <sanvila@debian.org>
+Subject: Remove (optional) build date to make the build reproducible
+Bug-Debian: http://bugs.debian.org/779042
+
+--- a/unix/unix.c
++++ b/unix/unix.c
+@@ -1020,7 +1020,7 @@
+ /* Define the compile date string */
+-#ifdef __DATE__
++#if 0
+ #  define COMPILE_DATE " on " __DATE__
+ #else
+ #  define COMPILE_DATE ""
git clone https://git.99rst.org/PROJECT