diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-01 13:06:45 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-01 13:09:22 -0700 |
commit | 26af1e567341502b51f4d762434eaedff8673d2e (patch) | |
tree | 85b5d4ed1faae91f41dd3ac7ada10c0d45f9c680 /meta-networking | |
parent | d8c94d06cfaa98436344dfe80085d5d0f505873b (diff) | |
download | meta-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.patch | 32 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb | 2 |
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 @@ | |||
1 | From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 1 Sep 2022 11:01:53 -0700 | ||
4 | Subject: [PATCH] configure: Check for readline() instead of main() in | ||
5 | libreadline | ||
6 | |||
7 | while checking for presense of libreadline, poke for a function which is | ||
8 | provided by libreadline, main is not provided by it, so modern compiler | ||
9 | toolchains may complain about it. | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | configure.ac | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index 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 | -- | ||
31 | 2.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 @@ | |||
1 | require quagga.inc | 1 | require quagga.inc |
2 | 2 | ||
3 | SRC_URI += "file://0001-configure-Check-for-readline-instead-of-main-in-libr.patch" | ||
4 | |||
3 | SRC_URI[md5sum] = "eced21b054d71c9e1b7c6ac43286a166" | 5 | SRC_URI[md5sum] = "eced21b054d71c9e1b7c6ac43286a166" |
4 | SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3" | 6 | SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3" |
5 | 7 | ||