quagga: Fix AC_CHECK_LIB for libreadline
PATCH 1/2 quagga: Fix AC_CHECK_LIB for libreadline
Signed-off-by Khem Raj <[email protected]>
--- ...for-readline-instead-of-main-in-libr.patch | 32 +++++++++++++++++++ .../recipes-protocols/quagga/quagga_1.2.4.bb | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch
meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 11:01:53 -0700 +Subject: [PATCH] configure: Check for readline() instead of main() in + libreadline + +while checking for presense of libreadline, poke for a function which is +provided by libreadline, main is not provided by it, so modern compiler +toolchains may complain about it. + +Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9] +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index ed279f48..d444ab4a 100755 +--- a/configure.ac ++++ b/configure.ac +@@ -754,7 +754,7 @@ dnl [TODO] on Linux, and in [TODO] on Solaris. + )] + )] + ) +- AC_CHECK_LIB(readline, main, LIBREADLINE="-lreadline $LIBREADLINE",, ++ AC_CHECK_LIB(readline, readline, LIBREADLINE="-lreadline $LIBREADLINE",, + "$LIBREADLINE") + if test $ac_cv_lib_readline_main = no; then + AC_MSG_ERROR([vtysh needs libreadline but was not found and usable on your system.]) +-- +2.37.3 +
meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb +2 -0
@@ -1,5 +1,7 @@ require quagga.inc +SRC_URI += "file://0001-configure-Check-for-readline-instead-of-main-in-libr.patch" + SRC_URI[md5sum] = "eced21b054d71c9e1b7c6ac43286a166" SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3"
Signature · 1 line
2.37.3
PATCH 2/2 linux-atm: Fix AC_CHECK_LIB for libresolv
Signed-off-by Khem Raj <[email protected]>
--- ...for-symbol-from-libresolv-instead-of.patch | 29 +++++++++++++++++++ .../linux-atm/linux-atm_2.5.2.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-configure-Check-for-symbol-from-libresolv-instead-of.patch
meta-networking/recipes-support/linux-atm/linux-atm/0001-configure-Check-for-symbol-from-libresolv-instead-of.patch new file +29 -0
@@ -0,0 +1,29 @@ +From a2a2e1b7a3f4f90e32912b5ba9b79e1a02275775 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 11:17:13 -0700 +Subject: [PATCH] configure: Check for symbol from libresolv instead of main + +This checks will fail with modern autoconf and compilers + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 0d2f613..f737f87 100644 +--- a/configure.in ++++ b/configure.in +@@ -46,7 +46,7 @@ AC_CHECK_HEADER(linux/atmsap.h, , + + dnl Check for libraries + dnl libresolv is required +-AC_CHECK_LIB(resolv, main, , ++AC_CHECK_LIB(resolv, res_init, , + AC_MSG_ERROR([*** Unable to find libresolv!!!]) + ) + +-- +2.37.3 +
meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P file://0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch \ file://0001-make-Add-PREFIX-knob.patch \ file://0001-include-string-h-from-memcpy-and-strcpy-function-pro.patch \ + file://0001-configure-Check-for-symbol-from-libresolv-instead-of.patch \ " SRC_URI:append:libc-musl = " file://musl-no-on_exit.patch"
Signature · 1 line
2.37.3