From: Wang Mingyu <[email protected]>

Error: Transaction test error:
  file /usr/share/yang/ietf-interfaces.yang conflicts between attempted 
installs of libsmi-yang-0.5.0-r0.cortexa57 and frr-9.1-r1.cortexa57

frr also uses the doc 'ietf-interfaces.yang'.
frr has a priority of 100.

Signed-off-by: Wang Mingyu <[email protected]>
---
 meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb 
b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
index 07e2e2941..5b1d021e3 100644
--- a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
+++ b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
@@ -16,7 +16,10 @@ SRC_URI[sha256sum] = 
"f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c72
 
 DEPENDS += "bison-native flex-native wget-native gawk-native"
 
-inherit autotools-brokensep
+inherit autotools-brokensep update-alternatives
+ALTERNATIVE_PRIORITY = "50"
+ALTERNATIVE:${PN}-yang = "ietf-interfaces "
+ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang"
 
 EXTRA_OECONF = "ac_cv_path_SH=/bin/sh"
 
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108231): 
https://lists.openembedded.org/g/openembedded-devel/message/108231
Mute This Topic: https://lists.openembedded.org/mt/103676349/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to