package/keyutils: bump version to 1.5.10
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 24 Jul 2017 18:48:14 +0000 (20:48 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Jul 2017 19:54:06 +0000 (21:54 +0200)
Upstream does not provide hashes anymore, replace with self-computed
sha256 hash.

Removed patches applied upstream, renumbered remaining patches:

0001-allow-building-of-the-shared-library-to-be-suppressed.patch
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/commit/?id=a4deb71ddc05e951c8be8d46615beed9d408a5c8

0004-Makefile-for-buildroot.patch
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/commit/?id=d83b9b827c6c4bc2377dfa073cf5c837b87465e8

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/keyutils/0001-allow-building-of-the-shared-library-to-be-suppressed.patch [deleted file]
package/keyutils/0001-fix-install-rule.patch [new file with mode: 0644]
package/keyutils/0002-cifs.patch [new file with mode: 0644]
package/keyutils/0002-fix-install-rule.patch [deleted file]
package/keyutils/0003-Add-missing-limits.h-include.patch [new file with mode: 0644]
package/keyutils/0003-cifs.patch [deleted file]
package/keyutils/0004-Makefile-for-buildroot.patch [deleted file]
package/keyutils/0005-Add-missing-limits.h-include.patch [deleted file]
package/keyutils/keyutils.hash
package/keyutils/keyutils.mk

diff --git a/package/keyutils/0001-allow-building-of-the-shared-library-to-be-suppressed.patch b/package/keyutils/0001-allow-building-of-the-shared-library-to-be-suppressed.patch
deleted file mode 100644 (file)
index 88d32b0..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-keyutils: Allow building of the shared library to be suppressed
-
-Upstream patch:
-  https://kernel.googlesource.com/pub/scm/linux/kernel/git/dhowells/keyutils/+/a4deb71ddc05e951c8be8d46615beed9d408a5c8
-
-Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
-
-LIB: Allow building of the shared library to be suppressed
-
-Allow building of the shared library to be suppressed by passing NO_SOLIB=1 to
-the Makefile.
-
-Reported-and-tested-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
-Signed-off-by: David Howells <dhowells@redhat.com>
-diff --git a/Makefile b/Makefile
-index c904eaf..5dd2113 100644
---- a/Makefile
-+++ b/Makefile
-@@ -5,6 +5,7 @@
- SPECFILE      := keyutils.spec
- NO_GLIBC_KEYERR       := 0
- NO_ARLIB      := 0
-+NO_SOLIB      := 0
- ETCDIR                := /etc
- BINDIR                := /bin
- SBINDIR               := /sbin
-@@ -95,7 +96,7 @@
- # Normal build rule
- #
- ###############################################################################
--all: $(DEVELLIB) keyctl request-key key.dns_resolver
-+all: keyctl request-key key.dns_resolver
- ###############################################################################
- #
-@@ -104,20 +105,23 @@
- ###############################################################################
- #RPATH = -Wl,-rpath,$(LIBDIR)
--ifeq ($(NO_ARLIB),0)
--all: $(ARLIB)
--$(ARLIB): keyutils.o
--      $(AR) rcs $@ $<
--endif
--
- VCPPFLAGS     := -DPKGBUILD="\"$(shell date -u +%F)\""
- VCPPFLAGS     += -DPKGVERSION="\"keyutils-$(VERSION)\""
- VCPPFLAGS     += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
-+ifeq ($(NO_ARLIB),0)
-+all: $(ARLIB)
-+$(ARLIB): keyutils.o
-+      $(AR) rcs $@ $<
-+
- keyutils.o: keyutils.c keyutils.h Makefile
-       $(CC) $(CPPFLAGS) $(VCPPFLAGS) $(CFLAGS) -UNO_GLIBC_KEYERR -o $@ -c $<
-+LIB_DEPENDENCY        := libkeyutils.a
-+endif
-+ifeq ($(NO_SOLIB),0)
-+all: $(DEVELLIB)
- $(DEVELLIB): $(SONAME)
-       ln -sf $< $@
-@@ -131,6 +135,8 @@
- keyutils.os: keyutils.c keyutils.h Makefile
-       $(CC) $(CPPFLAGS) $(VCPPFLAGS) $(CFLAGS) -fPIC -o $@ -c $<
-+LIB_DEPENDENCY        := $(DEVELLIB)
-+endif
- ###############################################################################
- #
-@@ -140,13 +146,13 @@
- %.o: %.c keyutils.h Makefile
-       $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
--keyctl: keyctl.o $(DEVELLIB)
-+keyctl: keyctl.o $(LIB_DEPENDENCY)
-       $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils
--request-key: request-key.o $(DEVELLIB)
-+request-key: request-key.o $(LIB_DEPENDENCY)
-       $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils
--key.dns_resolver: key.dns_resolver.o $(DEVELLIB)
-+key.dns_resolver: key.dns_resolver.o $(LIB_DEPENDENCY)
-       $(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils -lresolv
- ###############################################################################
-@@ -158,10 +164,12 @@
- ifeq ($(NO_ARLIB),0)
-       $(INSTALL) -D -m 0644 $(ARLIB) $(DESTDIR)$(USRLIBDIR)/$(ARLIB)
- endif
-+ifeq ($(NO_SOLIB),0)
-       $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
-       $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
-       mkdir -p $(DESTDIR)$(USRLIBDIR)
-       $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
-+endif
-       $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
-       $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
-       $(INSTALL) -D request-key-debug.sh $(DESTDIR)$(SHAREDIR)/request-key-debug.sh
diff --git a/package/keyutils/0001-fix-install-rule.patch b/package/keyutils/0001-fix-install-rule.patch
new file mode 100644 (file)
index 0000000..3670d28
--- /dev/null
@@ -0,0 +1,20 @@
+Makefile: fix install rule
+
+Do not link the .so with an absolute path, otherwise it may point to
+the host library.
+
+Based on the former patch by Yann E. MORIN.
+
+Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
+
+--- keyutils-1.5.9/Makefile.orig       2014-09-22 16:13:41.593562765 +0100
++++ keyutils-1.5.9/Makefile    2014-09-22 16:14:05.377963952 +0100
+@@ -168,7 +168,7 @@ ifeq ($(NO_SOLIB),0)
+       $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
+       $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
+       mkdir -p $(DESTDIR)$(USRLIBDIR)
+-      $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
++      $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
+ endif
+       $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
+       $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
diff --git a/package/keyutils/0002-cifs.patch b/package/keyutils/0002-cifs.patch
new file mode 100644 (file)
index 0000000..b2903f9
--- /dev/null
@@ -0,0 +1,15 @@
+Patch vampirised from Debian's packaging of keyutils-1.4
+
+Author: Marcus Meissner <meissner@suse.de>
+Description: Added 2 cifs helpers to request-key.conf (for CIFS DFS support)
+
+diff -Naurp keyutils.orig/request-key.conf keyutils/request-key.conf
+--- keyutils.orig/request-key.conf     2008-09-07 23:53:10.000000000 +0000
++++ keyutils/request-key.conf  2009-02-05 00:53:00.000000000 +0000
+@@ -34,4 +34,6 @@
+ create        user    debug:*         negate          /bin/keyctl negate %k 30 %S
+ create        user    debug:loop:*    *               |/bin/cat
+ create        user    debug:*         *               /usr/share/keyutils/request-key-debug.sh %k %d %c %S
++create        cifs.spnego     *       *               /usr/sbin/cifs.upcall -c %k
++create        dns_resolver    *       *               /usr/sbin/cifs.upcall %k
+ negate        *       *               *               /bin/keyctl negate %k 30 %S
diff --git a/package/keyutils/0002-fix-install-rule.patch b/package/keyutils/0002-fix-install-rule.patch
deleted file mode 100644 (file)
index 3670d28..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Makefile: fix install rule
-
-Do not link the .so with an absolute path, otherwise it may point to
-the host library.
-
-Based on the former patch by Yann E. MORIN.
-
-Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
-
---- keyutils-1.5.9/Makefile.orig       2014-09-22 16:13:41.593562765 +0100
-+++ keyutils-1.5.9/Makefile    2014-09-22 16:14:05.377963952 +0100
-@@ -168,7 +168,7 @@ ifeq ($(NO_SOLIB),0)
-       $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
-       $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
-       mkdir -p $(DESTDIR)$(USRLIBDIR)
--      $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
-+      $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
- endif
-       $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
-       $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
diff --git a/package/keyutils/0003-Add-missing-limits.h-include.patch b/package/keyutils/0003-Add-missing-limits.h-include.patch
new file mode 100644 (file)
index 0000000..45c8439
--- /dev/null
@@ -0,0 +1,32 @@
+From b2c6d3744dca029560d0d5e780f16561f8eeed53 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sun, 12 Jul 2015 16:22:14 +0200
+Subject: [PATCH] Add missing <limits.h> include
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+key.dns_resolver.c uses ‘UINT_MAX’ and ‘ULONG_MAX’, but forgets to
+include <limits.h>, which causes build failure with certain C
+libraries (notably the musl C library).
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ key.dns_resolver.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/key.dns_resolver.c b/key.dns_resolver.c
+index c2a9fe5..d41e219 100644
+--- a/key.dns_resolver.c
++++ b/key.dns_resolver.c
+@@ -56,6 +56,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <time.h>
++#include <limits.h>
+ static const char *DNS_PARSE_VERSION = "1.0";
+ static const char prog[] = "key.dns_resolver";
+-- 
+2.4.5
+
diff --git a/package/keyutils/0003-cifs.patch b/package/keyutils/0003-cifs.patch
deleted file mode 100644 (file)
index b2903f9..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Patch vampirised from Debian's packaging of keyutils-1.4
-
-Author: Marcus Meissner <meissner@suse.de>
-Description: Added 2 cifs helpers to request-key.conf (for CIFS DFS support)
-
-diff -Naurp keyutils.orig/request-key.conf keyutils/request-key.conf
---- keyutils.orig/request-key.conf     2008-09-07 23:53:10.000000000 +0000
-+++ keyutils/request-key.conf  2009-02-05 00:53:00.000000000 +0000
-@@ -34,4 +34,6 @@
- create        user    debug:*         negate          /bin/keyctl negate %k 30 %S
- create        user    debug:loop:*    *               |/bin/cat
- create        user    debug:*         *               /usr/share/keyutils/request-key-debug.sh %k %d %c %S
-+create        cifs.spnego     *       *               /usr/sbin/cifs.upcall -c %k
-+create        dns_resolver    *       *               /usr/sbin/cifs.upcall %k
- negate        *       *               *               /bin/keyctl negate %k 30 %S
diff --git a/package/keyutils/0004-Makefile-for-buildroot.patch b/package/keyutils/0004-Makefile-for-buildroot.patch
deleted file mode 100644 (file)
index 1e19f77..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Makefile: Don't call "ln" directly
-
-Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
-
---- keyutils-1.5.9/Makefile.orig       2014-09-22 16:05:14.117007430 +0100
-+++ keyutils-1.5.9/Makefile    2014-09-22 16:06:26.053219336 +0100
-@@ -123,10 +123,10 @@ endif
- ifeq ($(NO_SOLIB),0)
- all: $(DEVELLIB)
- $(DEVELLIB): $(SONAME)
--      ln -sf $< $@
-+      $(LNS) $< $@
- $(SONAME): $(LIBNAME)
--      ln -sf $< $@
-+      $(LNS) $< $@
- LIBVERS := -shared -Wl,-soname,$(SONAME) -Wl,--version-script,version.lds
diff --git a/package/keyutils/0005-Add-missing-limits.h-include.patch b/package/keyutils/0005-Add-missing-limits.h-include.patch
deleted file mode 100644 (file)
index 45c8439..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-From b2c6d3744dca029560d0d5e780f16561f8eeed53 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-Date: Sun, 12 Jul 2015 16:22:14 +0200
-Subject: [PATCH] Add missing <limits.h> include
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-key.dns_resolver.c uses ‘UINT_MAX’ and ‘ULONG_MAX’, but forgets to
-include <limits.h>, which causes build failure with certain C
-libraries (notably the musl C library).
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- key.dns_resolver.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/key.dns_resolver.c b/key.dns_resolver.c
-index c2a9fe5..d41e219 100644
---- a/key.dns_resolver.c
-+++ b/key.dns_resolver.c
-@@ -56,6 +56,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <time.h>
-+#include <limits.h>
- static const char *DNS_PARSE_VERSION = "1.0";
- static const char prog[] = "key.dns_resolver";
--- 
-2.4.5
-
index 21ecae51591aba9bef0794e3c9ceb69a656b57b0..b14b7bec13c73bd427f3991a19813f401e41d8f9 100644 (file)
@@ -1,3 +1,2 @@
-# From http://people.redhat.com/~dhowells/keyutils/
-md5    7f8ac985c45086b5fbcd12cecd23cf07        keyutils-1.5.9.tar.bz2
-sha1   cf040adebe25eb466760f34752f4100fd5acb5e7        keyutils-1.5.9.tar.bz2
+# Locally computed
+sha256 115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6  keyutils-1.5.10.tar.bz2
index 0e725d155427665286690331ce3988d8f4732f40..048b6894d31c5d93d474761a98d57ef107a86bbd 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KEYUTILS_VERSION = 1.5.9
+KEYUTILS_VERSION = 1.5.10
 KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
 KEYUTILS_SITE = http://people.redhat.com/~dhowells/keyutils
 KEYUTILS_LICENSE = GPL-2.0+, LGPL-2.1+