Skip to contentSkip to conversation

bridge-utils: fix the no brctl error when enable multilib

PATCH Applied [email protected] 2 participants 2 messages Feb 25, 2014 – Feb 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge-utils: fix the no brctl error when enable multilib

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;

In fact, no need to rename brctl by calling mv, since update-alternatives will handle it

---
 meta-networking/recipes-support/bridge-utils/bridge-utils.inc |    1 -
 1 file changed, 1 deletion(-)
meta-networking/recipes-support/bridge-utils/bridge-utils.inc +0 -1
index bcdc04a..e06c32e 100644
@@ -20,7 +20,6 @@ ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl"
 EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
 
 do_install_append () {
-    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
     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

Merged, thanks.
-J.

Quoted 26 lines · [[oe] [PATCH][meta-networking] bridge-utils: fix the no brctl error when…

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;

In fact, no need to rename brctl by calling mv, since update-alternatives will handle it

---
 meta-networking/recipes-support/bridge-utils/bridge-utils.inc |    1 -
 1 file changed, 1 deletion(-)
meta-networking/recipes-support/bridge-utils/bridge-utils.inc +0 -1
index bcdc04a..e06c32e 100644
@@ -20,7 +20,6 @@ ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl"
 EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
 
 do_install_append () {
-    mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
     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
-Joe MacDonald.
:wq