aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2016-09-12 05:07:03 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-09-19 15:41:16 +0900
commita8e5770edd2fb8e949129ec5f72b58c826a990c9 (patch)
tree9e5eb876b9a2ab4464d12cf7c2f79cc8177edc74
parent546812fbf330dabb2b291cd780d01511ff0e1e19 (diff)
downloadmeta-ivi-a8e5770edd2fb8e949129ec5f72b58c826a990c9.tar.gz
meta-ivi-a8e5770edd2fb8e949129ec5f72b58c826a990c9.tar.bz2
meta-ivi-a8e5770edd2fb8e949129ec5f72b58c826a990c9.zip
keyutils: Fixes building with musl libc
Fixed a following build issue by including <limits.h> for UINT_MAX: | key.dns_resolver.c: In function 'afsdb_hosts_to_addrs': | key.dns_resolver.c:374:21: error: 'UINT_MAX' undeclared (first use in this function) | unsigned int ttl = UINT_MAX, rr_ttl; | ^~~~~~~~ | key.dns_resolver.c:374:21: note: each undeclared identifier is reported only once for each function it appears in | key.dns_resolver.c: In function 'dns_query_afsdb': | key.dns_resolver.c:456:22: error: 'ULONG_MAX' undeclared (first use in this function) | unsigned long ttl = ULONG_MAX; This patch is back-ported from keyutils upstream, since the 1.5.9 is still the latest release. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
-rw-r--r--meta-ivi/recipes-support-ivi/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch28
-rw-r--r--meta-ivi/recipes-support-ivi/keyutils/keyutils_1.5.9.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-ivi/recipes-support-ivi/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch b/meta-ivi/recipes-support-ivi/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch
new file mode 100644
index 0000000..a60af43
--- /dev/null
+++ b/meta-ivi/recipes-support-ivi/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch
@@ -0,0 +1,28 @@
+From ab818a7f5818177a3da09fce6aa064ef648da372 Mon Sep 17 00:00:00 2001
+From: Felix Janda <felix.janda@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@posteo.de>
+Signed-off-by: David Howells <dhowells@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-ivi/recipes-support-ivi/keyutils/keyutils_1.5.9.bb b/meta-ivi/recipes-support-ivi/keyutils/keyutils_1.5.9.bb
index 0c2013a..7c02d96 100644
--- a/meta-ivi/recipes-support-ivi/keyutils/keyutils_1.5.9.bb
+++ b/meta-ivi/recipes-support-ivi/keyutils/keyutils_1.5.9.bb
@@ -13,6 +13,7 @@ SRCREV = "9209a0c8fd63afc59f644e078b40cec531409c30"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git;protocol=git \
file://0001-keyutils-Use-libdir-from-the-Yocto-environment.patch \
+ file://0001-Include-limits.h-for-UINT_MAX.patch \
"
S = "${WORKDIR}/git"