Browse Source
Merge pull request #5144 from lynxis/rb_zip
zip/unzip: remove build timestamps
lilik-openwrt-22.03
Ted Hess
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
34 additions and
2 deletions
-
utils/unzip/Makefile
-
utils/unzip/patches/010-remove-build-date.patch
-
utils/zip/Makefile
-
utils/zip/patches/010-remove-build-date.patch
|
|
@ -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 |
|
|
|
|
|
@ -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 |
|
|
|
"", "" |
|
|
@ -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 |
|
|
|
|
|
@ -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 "" |