Skip to contentSkip to conversation

bridge-utils: PN -> BPN to fix multilib ALTERNATIVE error

PATCH In review [email protected] 1 participant 2 messages Feb 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge-utils: PN -> BPN to fix multilib ALTERNATIVE error

From: Roy Li <[email protected]>

update-alternatives.bbclass does not create the brctl symbolic links for multilib, since the wrong use of PN generates /usr/sbin/brctl.lib32-bridge-utils, not /usr/sbin/brctl.bridge-utils

---
 recipes-support/bridge-utils/bridge-utils.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-support/bridge-utils/bridge-utils.inc +1 -1
index bcdc04a..b4ca3f1 100644
@@ -20,7 +20,7 @@ ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl"
 EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
 
 do_install_append () {
-    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
+    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${BPN}
     install -d ${D}/${datadir}/bridge-utils
     install -d ${D}/${sysconfdir}/network/if-pre-up.d
     install -d ${D}/${sysconfdir}/network/if-post-down.d
Signature · 1 line
1.7.10.4
#1 lore raw

Please drop this one

-Roy

Quoted 25 lines · On 02/25/2014 09:10 AM, [email protected] wrote:

From: Roy Li <[email protected]>

update-alternatives.bbclass does not create the brctl symbolic links for multilib, since the wrong use of PN generates /usr/sbin/brctl.lib32-bridge-utils, not /usr/sbin/brctl.bridge-utils

---
  recipes-support/bridge-utils/bridge-utils.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
recipes-support/bridge-utils/bridge-utils.inc +1 -1
index bcdc04a..b4ca3f1 100644
@@ -20,7 +20,7 @@ ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl"
  EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
 
  do_install_append () {
-    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
+    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${BPN}
      install -d ${D}/${datadir}/bridge-utils
      install -d ${D}/${sysconfdir}/network/if-pre-up.d
      install -d ${D}/${sysconfdir}/network/if-post-down.d
Signature · 2 lines
Best Reagrds,
Roy | RongQing Li