Browse Source

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>
lilik-openwrt-22.03
Alexander Couzens 7 years ago
parent
commit
5f4c455c7a
No known key found for this signature in database GPG Key ID: C29E9DA6A0DF8604
2 changed files with 18 additions and 1 deletions
  1. +1
    -1
      utils/unzip/Makefile
  2. +17
    -0
      utils/unzip/patches/010-remove-build-date.patch

+ 1
- 1
utils/unzip/Makefile View 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


+ 17
- 0
utils/unzip/patches/010-remove-build-date.patch View File

@ -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
"", ""

Loading…
Cancel
Save