summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-01 13:04:53 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-05 22:49:34 -0700
commit4cb8febb428328034a2fe3f6a35f71cf44dbf766 (patch)
tree7691d309e9ba0e1eb64c83db6968758ed4ce4b2f
parent51f257ab99b43193056f6e893b01d60f30f7f5f1 (diff)
downloadmeta-openembedded-4cb8febb428328034a2fe3f6a35f71cf44dbf766.tar.gz
gensio: Fix AC_CHECK_LIB for libwrap
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch31
-rw-r--r--meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch b/meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch
new file mode 100644
index 0000000000..3b4caa2215
--- /dev/null
+++ b/meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch
@@ -0,0 +1,31 @@
1From f56e59712d8708c74a4cf66d24b5703fc16b22ae Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 11:31:48 -0700
4Subject: [PATCH] configure: Check for request_init API when probing for
5 libwrap
6
7checking for main() is not right check, since this function is not part
8of libwrap but the app. Newer autocof and toolchain may fail
9
10Upstream-Status: Submitted [https://github.com/cminyard/gensio/pull/48]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index 90cfcb6b..1c06d918 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -109,7 +109,7 @@ AC_ARG_WITH(tcp-wrappers,
21 if test "$tcp_wrappers" != "no"
22 then
23 AC_CHECK_HEADERS([tcpd.h])
24- AC_CHECK_LIB(wrap,main)
25+ AC_CHECK_LIB(wrap,request_init)
26 fi
27
28 AC_ARG_ENABLE([doc],
29--
302.37.3
31
diff --git a/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb b/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb
index 9de21209ca..d6b5f1987e 100644
--- a/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb
+++ b/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb
@@ -9,6 +9,7 @@ SRCREV = "b6cd354afe6d5f63bc859c94fd3a455a3cdf0449"
9 9
10SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=master \ 10SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=master \
11 file://0001-tools-gensiot-Fix-build-with-musl.patch \ 11 file://0001-tools-gensiot-Fix-build-with-musl.patch \
12 file://0001-configure-Check-for-request_init-API-when-probing-fo.patch \
12" 13"
13 14
14S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"