From 5362ab4eda8b43f0cb30a2de30c86e4499e0f5c3 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 16 Nov 2017 18:26:29 +0100 Subject: [PATCH 1/2] zip: remove build timestamp Build timestamps prevents reproducible builds [0]. Thanks to debian for the patch. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- utils/zip/Makefile | 2 +- utils/zip/patches/010-remove-build-date.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 utils/zip/patches/010-remove-build-date.patch diff --git a/utils/zip/Makefile b/utils/zip/Makefile index afdc76ada..c87f1ed84 100644 --- a/utils/zip/Makefile +++ b/utils/zip/Makefile @@ -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 index 000000000..d7165cd01 --- /dev/null +++ b/utils/zip/patches/010-remove-build-date.patch @@ -0,0 +1,15 @@ +From: Santiago Vila +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 "" From 5f4c455c7a474c130b03403e13f0a72b3db9b48e Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 16 Nov 2017 18:46:47 +0100 Subject: [PATCH 2/2] 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 --- utils/unzip/Makefile | 2 +- utils/unzip/patches/010-remove-build-date.patch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 utils/unzip/patches/010-remove-build-date.patch 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 +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 + "", ""