summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-02-10 00:00:25 +0200
committerGitHub <noreply@github.com>2019-02-10 00:00:25 +0200
commit80622fef63ee0ae2edb413ec6bbb9f8339371b31 (patch)
treeb2f4de18b6421ed31991009146cfddf4dfadbb23
parent58f1de60f87cc9d81934749d020aa69b83d3bee9 (diff)
parentca3c43af1d00a3a4994d72c9153ac4b0eebd8430 (diff)
Merge pull request #8162 from neheb/key
keyutils: Make reproducible
-rw-r--r--libs/keyutils/Makefile4
-rw-r--r--libs/keyutils/patches/010-reproducible-build.patch11
2 files changed, 13 insertions, 2 deletions
diff --git a/libs/keyutils/Makefile b/libs/keyutils/Makefile
index 648b288ac..430473cd4 100644
--- a/libs/keyutils/Makefile
+++ b/libs/keyutils/Makefile
@@ -1,4 +1,4 @@
-#
+#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=keyutils
PKG_VERSION:=1.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://people.redhat.com/dhowells/keyutils/
diff --git a/libs/keyutils/patches/010-reproducible-build.patch b/libs/keyutils/patches/010-reproducible-build.patch
new file mode 100644
index 000000000..3cf9b544c
--- /dev/null
+++ b/libs/keyutils/patches/010-reproducible-build.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver
+ ###############################################################################
+ #RPATH = -Wl,-rpath,$(LIBDIR)
+
+-VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
++VCPPFLAGS := -DPKGBUILD="\"for OpenWrt"\"
+ VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
+ VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
+