[OE-core] [PATCH v2] keyutils: new recipe (version 1.5.9)

Andreas Oberritter obi at opendreambox.org
Tue Dec 6 16:46:51 UTC 2016


Used by nfs-utils for nfsidmap, if available. Includes a backported patch for
musl and a description text from meta-ivi.

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
 .../0001-Include-limits.h-for-UINT_MAX.patch       | 30 ++++++++++++++++++
 meta/recipes-support/keyutils/keyutils_1.5.9.bb    | 37 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch
 create mode 100644 meta/recipes-support/keyutils/keyutils_1.5.9.bb

diff --git a/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch b/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch
new file mode 100644
index 0000000..b17153c
--- /dev/null
+++ b/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch
@@ -0,0 +1,30 @@
+Upstream-Status: Backport [git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git master]
+
+From ab818a7f5818177a3da09fce6aa064ef648da372 Mon Sep 17 00:00:00 2001
+From: Felix Janda <felix.janda at posteo.de>
+Date: Sat, 4 Apr 2015 00:13:21 +0200
+Subject: [PATCH] Include <limits.h> for UINT_MAX
+
+Fixes building with musl libc.
+
+Signed-off-by: Felix Janda <felix.janda at posteo.de>
+Signed-off-by: David Howells <dhowells at redhat.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..9c9d458 100644
+--- a/key.dns_resolver.c
++++ b/key.dns_resolver.c
+@@ -42,6 +42,7 @@
+ #include <netinet/in.h>
+ #include <arpa/nameser.h>
+ #include <arpa/inet.h>
++#include <limits.h>
+ #include <resolv.h>
+ #include <getopt.h>
+ #include <sys/types.h>
+-- 
+1.9.1
+
diff --git a/meta/recipes-support/keyutils/keyutils_1.5.9.bb b/meta/recipes-support/keyutils/keyutils_1.5.9.bb
new file mode 100644
index 0000000..3c746d2
--- /dev/null
+++ b/meta/recipes-support/keyutils/keyutils_1.5.9.bb
@@ -0,0 +1,37 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "Keyutils is a set of utilities for managing the key retention \
+facility in the kernel, which can be used by filesystems, block devices and \
+more to gain and retain the authorization and encryption keys required to \
+perform secure operations."
+HOMEPAGE = "https://people.redhat.com/~dhowells/keyutils/"
+LICENSE = "GPLv2+ & LGPLv2.1+"
+LICENSE_${PN} = "GPLv2+"
+LICENSE_lib${PN} = "LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \
+                    file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"
+
+SRC_URI = "https://people.redhat.com/~dhowells/keyutils/${BP}.tar.bz2 \
+           file://0001-Include-limits.h-for-UINT_MAX.patch"
+SRC_URI[md5sum] = "7f8ac985c45086b5fbcd12cecd23cf07"
+SRC_URI[sha256sum] = "4da2c5552c688b65ab14d4fd40fbdf720c8b396d8ece643e040cf6e707e083ae"
+
+EXTRA_OEMAKE = " \
+    DESTDIR=${D} \
+    ETCDIR=${sysconfdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    SHAREDIR=${datadir}/${BPN} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    LIBDIR=${base_libdir} \
+    USRLIBDIR=${libdir} \
+    BUILDFOR= \
+"
+
+do_install() {
+    oe_runmake install
+}
+
+PACKAGES =+ "lib${PN}"
+
+FILES_lib${PN} = "${base_libdir}/lib*${SOLIBS}"
-- 
2.7.4




More information about the Openembedded-core mailing list