summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-06-13 11:43:24 +0800
committerKhem Raj <raj.khem@gmail.com>2024-06-12 21:08:07 -0700
commit3b79135ae0191b7211631fc4539a532e14907485 (patch)
tree5e5e17e8c1ea6786205d403a1addee41f56efcb6 /meta-networking/recipes-protocols
parente33270bb821c8f8f3e3f3be501d3a14e0fa035c1 (diff)
downloadmeta-openembedded-3b79135ae0191b7211631fc4539a532e14907485.tar.gz
frr: use update-alternatives to solve conflicts with libsmi
Error: Transaction test error: file /usr/share/yang/ietf-netconf-acm.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64 file /usr/share/yang/ietf-netconf-with-defaults.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64 file /usr/share/yang/ietf-netconf.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64 libsmi also uses the doc 'ietf-netconf-acm.yang ietf-netconf-with-defaults.yang ietf-netconf.yang'. libsmi has a priority of 50. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> 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_10.0.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-networking/recipes-protocols/frr/frr_10.0.bb b/meta-networking/recipes-protocols/frr/frr_10.0.bb
index bdc359667a..afd2c95a0e 100644
--- a/meta-networking/recipes-protocols/frr/frr_10.0.bb
+++ b/meta-networking/recipes-protocols/frr/frr_10.0.bb
@@ -77,8 +77,11 @@ SYSTEMD_AUTO_ENABLE = "disable"
77inherit update-alternatives multilib_script multilib_header 77inherit update-alternatives multilib_script multilib_header
78 78
79ALTERNATIVE_PRIORITY = "100" 79ALTERNATIVE_PRIORITY = "100"
80ALTERNATIVE:${PN} = " ietf-interfaces " 80ALTERNATIVE:${PN} = " ietf-interfaces ietf-netconf-acm ietf-netconf-with-defaults ietf-netconf"
81ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang" 81ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang"
82ALTERNATIVE_LINK_NAME[ietf-netconf-acm] = "${datadir}/yang/ietf-netconf-acm.yang"
83ALTERNATIVE_LINK_NAME[ietf-netconf-with-defaults] = "${datadir}/yang/ietf-netconf-with-defaults.yang"
84ALTERNATIVE_LINK_NAME[ietf-netconf] = "${datadir}/yang/ietf-netconf.yang"
82do_compile:prepend () { 85do_compile:prepend () {
83 sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ 86 sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' \
84 -e 's#${RECIPE_SYSROOT}##g' ${S}/lib/version.h 87 -e 's#${RECIPE_SYSROOT}##g' ${S}/lib/version.h