summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-01 13:06:45 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-01 13:09:22 -0700
commit26af1e567341502b51f4d762434eaedff8673d2e (patch)
tree85b5d4ed1faae91f41dd3ac7ada10c0d45f9c680 /meta-networking
parentd8c94d06cfaa98436344dfe80085d5d0f505873b (diff)
downloadmeta-openembedded-26af1e567341502b51f4d762434eaedff8673d2e.tar.gz
quagga: Fix AC_CHECK_LIB for libreadline
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch32
-rw-r--r--meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb2
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch b/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch
new file mode 100644
index 000000000..776c0958f
--- /dev/null
+++ b/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch
@@ -0,0 +1,32 @@
1From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 11:01:53 -0700
4Subject: [PATCH] configure: Check for readline() instead of main() in
5 libreadline
6
7while checking for presense of libreadline, poke for a function which is
8provided by libreadline, main is not provided by it, so modern compiler
9toolchains may complain about it.
10
11Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index ed279f48..d444ab4a 100755
19--- a/configure.ac
20+++ b/configure.ac
21@@ -754,7 +754,7 @@ dnl [TODO] on Linux, and in [TODO] on Solaris.
22 )]
23 )]
24 )
25- AC_CHECK_LIB(readline, main, LIBREADLINE="-lreadline $LIBREADLINE",,
26+ AC_CHECK_LIB(readline, readline, LIBREADLINE="-lreadline $LIBREADLINE",,
27 "$LIBREADLINE")
28 if test $ac_cv_lib_readline_main = no; then
29 AC_MSG_ERROR([vtysh needs libreadline but was not found and usable on your system.])
30--
312.37.3
32
diff --git a/meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb b/meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb
index 984264a30..37cfc131c 100644
--- a/meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb
+++ b/meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb
@@ -1,5 +1,7 @@
1require quagga.inc 1require quagga.inc
2 2
3SRC_URI += "file://0001-configure-Check-for-readline-instead-of-main-in-libr.patch"
4
3SRC_URI[md5sum] = "eced21b054d71c9e1b7c6ac43286a166" 5SRC_URI[md5sum] = "eced21b054d71c9e1b7c6ac43286a166"
4SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3" 6SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3"
5 7