From 8fce02300e3472532b280a0ef2f8dbcf9078adf7 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Fri, 12 Jan 2024 10:50:24 +0800 Subject: libsmi: use update-alternatives for ietf-interfaces.yang 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 Signed-off-by: Khem Raj --- meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta-oe') 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 07e2e29417..5b1d021e36 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" -- cgit v1.2.3-54-g00ecf