summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-01 10:53:08 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-01 10:55:23 -0700
commitd8c94d06cfaa98436344dfe80085d5d0f505873b (patch)
tree0273efa60d620fde045b4301a7418167b4a98fde /meta-networking/recipes-protocols
parent5a782fe1853cabf2634657d9f994cef86cf30f27 (diff)
downloadmeta-openembedded-d8c94d06cfaa98436344dfe80085d5d0f505873b.tar.gz
frr: Fix configure check for libreadline
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols')
-rw-r--r--meta-networking/recipes-protocols/frr/frr/0001-configure-Check-for-readline-function-instead-of-mai.patch30
-rw-r--r--meta-networking/recipes-protocols/frr/frr_8.2.2.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/frr/frr/0001-configure-Check-for-readline-function-instead-of-mai.patch b/meta-networking/recipes-protocols/frr/frr/0001-configure-Check-for-readline-function-instead-of-mai.patch
new file mode 100644
index 0000000000..4b218a61e8
--- /dev/null
+++ b/meta-networking/recipes-protocols/frr/frr/0001-configure-Check-for-readline-function-instead-of-mai.patch
@@ -0,0 +1,30 @@
1From 9399d58c13257849179d3c2b3698a2b43bc1b2a0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 10:39:23 -0700
4Subject: [PATCH] configure: Check for readline() function instead of main
5
6main is not a function found in libreadline, its better to check for a
7function thats provided by it.
8
9Upstream-Status: Submitted [https://github.com/FRRouting/frr/pull/11893]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 configure.ac | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
16index b7e17d356..8c1fab0ea 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -1372,7 +1372,7 @@ case "${enable_vtysh}" in
20 AC_DEFINE([VTYSH], [1], [VTY shell])
21
22 prev_libs="$LIBS"
23- AC_CHECK_LIB([readline], [main], [
24+ AC_CHECK_LIB([readline], [readline], [
25 LIBREADLINE="-lreadline"
26 ], [
27 dnl readline failed - it might be incorrectly linked and missing its
28--
292.37.3
30
diff --git a/meta-networking/recipes-protocols/frr/frr_8.2.2.bb b/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
index f0d0dbf7cf..607ed8b9dd 100644
--- a/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
+++ b/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 file://COPYING-LGPLv2.1;md5=4fbd65380cdd255951079008b364516c" 10 file://COPYING-LGPLv2.1;md5=4fbd65380cdd255951079008b364516c"
11 11
12SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.2 \ 12SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.2 \
13 file://0001-configure-Check-for-readline-function-instead-of-mai.patch \
13 file://frr.pam \ 14 file://frr.pam \
14 " 15 "
15 16