openldap: remove build host/user/timestamp
authorAlexander Couzens <redacted>
Sat, 9 Dec 2017 23:28:34 +0000 (00:28 +0100)
committerAlexander Couzens <redacted>
Sun, 10 Dec 2017 02:03:40 +0000 (03:03 +0100)
Such information from the build system break reproducible builds.

Signed-off-by: Alexander Couzens <redacted>
libs/openldap/Makefile
libs/openldap/patches/110-reproducible-builds.patch [new file with mode: 0644]

index 8f978a793c7a20fb753cf5e90f653671d1f03262..7269cf67a1815cbb59588474119dc6884f05c8f9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openldap
 PKG_VERSION:=2.4.45
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
diff --git a/libs/openldap/patches/110-reproducible-builds.patch b/libs/openldap/patches/110-reproducible-builds.patch
new file mode 100644 (file)
index 0000000..2cdce8e
--- /dev/null
@@ -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__
git clone https://git.99rst.org/PROJECT