diff options
Diffstat (limited to 'meta-networking/recipes-protocols/frr')
-rw-r--r-- | meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch | 34 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/frr/frr_10.3.bb (renamed from meta-networking/recipes-protocols/frr/frr_9.1.bb) | 13 |
2 files changed, 7 insertions, 40 deletions
diff --git a/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch b/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch deleted file mode 100644 index 8c83d5c8eb..0000000000 --- a/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 49aeccbec4bf620bb594999bbd4a9de669a3984c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 15 Mar 2024 14:34:06 -0700 | ||
4 | Subject: [PATCH] zebra: Mimic GNU basename() API for non-glibc library e.g. | ||
5 | musl musl only provides POSIX version of basename and it has also removed | ||
6 | providing it via string.h header [1] which now results in compile errors with | ||
7 | newer compilers e.g. clang-18 | ||
8 | |||
9 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/FRRouting/frr/pull/15561/] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | zebra/zebra_netns_notify.c | 4 ++++ | ||
15 | 1 file changed, 4 insertions(+) | ||
16 | |||
17 | diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c | ||
18 | index 1bb1292e34..d55df2f62d 100644 | ||
19 | --- a/zebra/zebra_netns_notify.c | ||
20 | +++ b/zebra/zebra_netns_notify.c | ||
21 | @@ -41,6 +41,10 @@ | ||
22 | #define ZEBRA_NS_POLLING_INTERVAL_MSEC 1000 | ||
23 | #define ZEBRA_NS_POLLING_MAX_RETRIES 200 | ||
24 | |||
25 | +#if !defined(__GLIBC__) | ||
26 | +#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src) | ||
27 | +#endif | ||
28 | + | ||
29 | DEFINE_MTYPE_STATIC(ZEBRA, NETNS_MISC, "ZebraNetNSInfo"); | ||
30 | static struct event *zebra_netns_notify_current; | ||
31 | |||
32 | -- | ||
33 | 2.44.0 | ||
34 | |||
diff --git a/meta-networking/recipes-protocols/frr/frr_9.1.bb b/meta-networking/recipes-protocols/frr/frr_10.3.bb index eea6d62f5f..f0f3f34ab3 100644 --- a/meta-networking/recipes-protocols/frr/frr_9.1.bb +++ b/meta-networking/recipes-protocols/frr/frr_10.3.bb | |||
@@ -10,18 +10,16 @@ LIC_FILES_CHKSUM = "file://doc/licenses/GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a | |||
10 | file://doc/licenses/LGPL-2.1;md5=4fbd65380cdd255951079008b364516c" | 10 | file://doc/licenses/LGPL-2.1;md5=4fbd65380cdd255951079008b364516c" |
11 | 11 | ||
12 | 12 | ||
13 | SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/9.1 \ | 13 | SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/10.3 \ |
14 | file://frr.pam \ | 14 | file://frr.pam \ |
15 | file://0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch \ | ||
16 | " | 15 | " |
17 | 16 | ||
18 | SRCREV = "ca2d6f0f1e000951224a18973cc1827f7f5215b5" | 17 | SRCREV = "85cf1ed576deed121751e16a64970f8a652a9e1e" |
19 | 18 | ||
20 | UPSTREAM_CHECK_GITTAGREGEX = "frr-(?P<pver>\d+(\.\d+)+)$" | 19 | UPSTREAM_CHECK_GITTAGREGEX = "frr-(?P<pver>\d+(\.\d+)+)$" |
21 | 20 | ||
22 | CVE_PRODUCT = "frrouting" | 21 | CVE_PRODUCT = "frrouting" |
23 | 22 | ||
24 | S = "${WORKDIR}/git" | ||
25 | 23 | ||
26 | inherit autotools-brokensep python3native pkgconfig useradd systemd | 24 | inherit autotools-brokensep python3native pkgconfig useradd systemd |
27 | 25 | ||
@@ -77,8 +75,11 @@ SYSTEMD_AUTO_ENABLE = "disable" | |||
77 | inherit update-alternatives multilib_script multilib_header | 75 | inherit update-alternatives multilib_script multilib_header |
78 | 76 | ||
79 | ALTERNATIVE_PRIORITY = "100" | 77 | ALTERNATIVE_PRIORITY = "100" |
80 | ALTERNATIVE:${PN} = " ietf-interfaces " | 78 | ALTERNATIVE:${PN} = " ietf-interfaces ietf-netconf-acm ietf-netconf-with-defaults ietf-netconf" |
81 | ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang" | 79 | ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang" |
80 | ALTERNATIVE_LINK_NAME[ietf-netconf-acm] = "${datadir}/yang/ietf-netconf-acm.yang" | ||
81 | ALTERNATIVE_LINK_NAME[ietf-netconf-with-defaults] = "${datadir}/yang/ietf-netconf-with-defaults.yang" | ||
82 | ALTERNATIVE_LINK_NAME[ietf-netconf] = "${datadir}/yang/ietf-netconf.yang" | ||
82 | do_compile:prepend () { | 83 | do_compile:prepend () { |
83 | sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ | 84 | sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ |
84 | -e 's#${RECIPE_SYSROOT}##g' ${S}/lib/version.h | 85 | -e 's#${RECIPE_SYSROOT}##g' ${S}/lib/version.h |
@@ -104,7 +105,7 @@ do_install:append:class-target () { | |||
104 | 105 | ||
105 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | 106 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then |
106 | install -d ${D}/${sysconfdir}/pam.d | 107 | install -d ${D}/${sysconfdir}/pam.d |
107 | install -m 644 ${WORKDIR}/frr.pam ${D}/${sysconfdir}/pam.d/frr | 108 | install -m 644 ${UNPACKDIR}/frr.pam ${D}/${sysconfdir}/pam.d/frr |
108 | fi | 109 | fi |
109 | 110 | ||
110 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 111 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |