diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-11-16 18:46:47 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2017-11-17 13:39:30 +0100 |
commit | 5f4c455c7a474c130b03403e13f0a72b3db9b48e (patch) | |
tree | ac6e3f73af5c335601347093fb8d58cd0c0c3216 | |
parent | 5362ab4eda8b43f0cb30a2de30c86e4499e0f5c3 (diff) |
unzip: remove build timestamp
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>
-rw-r--r-- | utils/unzip/Makefile | 2 | ||||
-rw-r--r-- | utils/unzip/patches/010-remove-build-date.patch | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/utils/unzip/Makefile b/utils/unzip/Makefile index 39a28e771..fd8f74b7c 100644 --- a/utils/unzip/Makefile +++ b/utils/unzip/Makefile @@ -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 index 000000000..bb60533cb --- /dev/null +++ b/utils/unzip/patches/010-remove-build-date.patch @@ -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 + "", "" |