Browse Source

openldap: remove build host/user/timestamp

Such information from the build system break reproducible builds.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
lilik-openwrt-22.03
Alexander Couzens 7 years ago
parent
commit
9f370263d0
No known key found for this signature in database GPG Key ID: C29E9DA6A0DF8604
2 changed files with 22 additions and 1 deletions
  1. +1
    -1
      libs/openldap/Makefile
  2. +21
    -0
      libs/openldap/patches/110-reproducible-builds.patch

+ 1
- 1
libs/openldap/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openldap PKG_NAME:=openldap
PKG_VERSION:=2.4.45 PKG_VERSION:=2.4.45
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \ PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \


+ 21
- 0
libs/openldap/patches/110-reproducible-builds.patch View File

@ -0,0 +1,21 @@
Index: openldap-2.4.45/build/mkversion
===================================================================
--- openldap-2.4.45.orig/build/mkversion
+++ openldap-2.4.45/build/mkversion
@@ -50,7 +50,6 @@ if test $# != 1 ; then
fi
APPLICATION=$1
-WHOWHERE="$USER@`uname -n`:`pwd`"
cat << __EOF__
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
@@ -72,7 +71,6 @@ static const char copyright[] =
"COPYING RESTRICTIONS APPLY\n";
$static $const char $SYMBOL[] =
-"@(#) \$$PACKAGE: $APPLICATION $VERSION (" __DATE__ " " __TIME__ ") \$\n"
-"\t$WHOWHERE\n";
+"@(#) \$$PACKAGE: $APPLICATION $VERSION\$\n";
__EOF__

Loading…
Cancel
Save