summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-12-30 08:06:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:28 +0000
commitaaa85169b663ddc41b55400c7e07bddffc2f9c16 (patch)
treed14260a0afa8d49f2ad4c9043dbe87078a158262 /meta/recipes-extended
parent93fb408e787526375ce699723691c815414f7b77 (diff)
downloadpoky-aaa85169b663ddc41b55400c7e07bddffc2f9c16.tar.gz
xinetd: Fix build with musl
musl relies on external rpc implemetation (libtirpc) and exposed a bug in configury when checking for rlim_t (From OE-Core rev: bcf7548aacb82d2e14115ced8fa58d35963abe60) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch100
-rw-r--r--meta/recipes-extended/xinetd/xinetd_2.3.15.bb5
2 files changed, 105 insertions, 0 deletions
diff --git a/meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch b/meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch
new file mode 100644
index 0000000000..3c1b2f6f0e
--- /dev/null
+++ b/meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch
@@ -0,0 +1,100 @@
1From e8b0ffc7ea04cc71dba97a38e1a134aaf2285c2d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 30 Dec 2015 07:14:50 +0000
4Subject: [PATCH] configure: Use HAVE_SYS_RESOURCE_H to guard sys/resource.h
5 inclusion
6
7HAVE_RLIM_T check will not let sys/resource.h to be checked and
8rlim_t is defined in sys/resource.h so the check would fail.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Pending
13
14 aclocal.m4 | 2 +-
15 configure | 14 +++++++-------
16 2 files changed, 8 insertions(+), 8 deletions(-)
17
18diff --git a/aclocal.m4 b/aclocal.m4
19index 6e6f32c..70e7076 100644
20--- a/aclocal.m4
21+++ b/aclocal.m4
22@@ -11,7 +11,7 @@ AC_CACHE_VAL(xinetd_cv_type_$1,
23 #if HAVE_NETDB_H
24 #include <netdb.h>
25 #endif
26-#if HAVE_RLIM_T
27+#if HAVE_SYS_RESOURCE_H
28 #include <sys/resource.h>
29 #endif
30 #if HAVE_STDINT_H
31diff --git a/configure b/configure
32index b507d38..bec56ea 100755
33--- a/configure
34+++ b/configure
35@@ -7640,7 +7640,7 @@ cat >>conftest.$ac_ext <<_ACEOF
36 #if HAVE_NETDB_H
37 #include <netdb.h>
38 #endif
39-#if HAVE_RLIM_T
40+#if HAVE_SYS_RESOURCE_H
41 #include <sys/resource.h>
42 #endif
43 #if HAVE_STDINT_H
44@@ -7686,7 +7686,7 @@ cat >>conftest.$ac_ext <<_ACEOF
45 #if HAVE_NETDB_H
46 #include <netdb.h>
47 #endif
48-#if HAVE_RLIM_T
49+#if HAVE_SYS_RESOURCE_H
50 #include <sys/resource.h>
51 #endif
52 #if HAVE_STDINT_H
53@@ -7732,7 +7732,7 @@ cat >>conftest.$ac_ext <<_ACEOF
54 #if HAVE_NETDB_H
55 #include <netdb.h>
56 #endif
57-#if HAVE_RLIM_T
58+#if HAVE_SYS_RESOURCE_H
59 #include <sys/resource.h>
60 #endif
61 #if HAVE_STDINT_H
62@@ -7778,7 +7778,7 @@ cat >>conftest.$ac_ext <<_ACEOF
63 #if HAVE_NETDB_H
64 #include <netdb.h>
65 #endif
66-#if HAVE_RLIM_T
67+#if HAVE_SYS_RESOURCE_H
68 #include <sys/resource.h>
69 #endif
70 #if HAVE_STDINT_H
71@@ -7824,7 +7824,7 @@ cat >>conftest.$ac_ext <<_ACEOF
72 #if HAVE_NETDB_H
73 #include <netdb.h>
74 #endif
75-#if HAVE_RLIM_T
76+#if HAVE_SYS_RESOURCE_H
77 #include <sys/resource.h>
78 #endif
79 #if HAVE_STDINT_H
80@@ -7870,7 +7870,7 @@ cat >>conftest.$ac_ext <<_ACEOF
81 #if HAVE_NETDB_H
82 #include <netdb.h>
83 #endif
84-#if HAVE_RLIM_T
85+#if HAVE_SYS_RESOURCE_H
86 #include <sys/resource.h>
87 #endif
88 #if HAVE_STDINT_H
89@@ -7916,7 +7916,7 @@ cat >>conftest.$ac_ext <<_ACEOF
90 #if HAVE_NETDB_H
91 #include <netdb.h>
92 #endif
93-#if HAVE_RLIM_T
94+#if HAVE_SYS_RESOURCE_H
95 #include <sys/resource.h>
96 #endif
97 #if HAVE_STDINT_H
98--
992.6.4
100
diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
index 652fe91de9..6bfaabe829 100644
--- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
+++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
@@ -7,6 +7,7 @@ LICENSE = "BSD"
7LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=8ad8615198542444f84d28a6cf226dd8" 7LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=8ad8615198542444f84d28a6cf226dd8"
8 8
9DEPENDS = "" 9DEPENDS = ""
10DEPENDS_append_libc-musl = " libtirpc "
10PR = "r2" 11PR = "r2"
11 12
12# Blacklist a bogus tag in upstream check 13# Blacklist a bogus tag in upstream check
@@ -20,6 +21,7 @@ SRC_URI = "git://github.com/xinetd-org/xinetd.git;protocol=https \
20 file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \ 21 file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \
21 file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \ 22 file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \
22 file://xinetd-CVE-2013-4342.patch \ 23 file://xinetd-CVE-2013-4342.patch \
24 file://0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch \
23 file://xinetd.service \ 25 file://xinetd.service \
24 " 26 "
25 27
@@ -39,6 +41,9 @@ EXTRA_OECONF="--disable-nls"
39PACKAGECONFIG ??= "tcp-wrappers" 41PACKAGECONFIG ??= "tcp-wrappers"
40PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers" 42PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers"
41 43
44CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc "
45LDFLAGS_append_libc-musl = " -ltirpc "
46
42do_configure() { 47do_configure() {
43 # Looks like configure.in is broken, so we are skipping 48 # Looks like configure.in is broken, so we are skipping
44 # rebuilding configure and are just using the shipped one 49 # rebuilding configure and are just using the shipped one