Patchwork [1/1] iproute2: Fix alternative link for ip command

login
register
mail settings
Submitter Cristian Iorga
Date July 17, 2013, 10:16 a.m.
Message ID <969F26A8BAB325438E7EB80D3C3134FB16C05F2D@IRSMSX105.ger.corp.intel.com>
Download mbox | patch
Permalink /patch/53847/
State New
Headers show

Comments

Cristian Iorga - July 17, 2013, 10:16 a.m.
OK.

-----Original Message-----
From: Yi Zhao [mailto:yi.zhao@windriver.com] 
Sent: Wednesday, July 17, 2013 12:07 PM
To: openembedded-core@lists.openembedded.org
Cc: Iorga, Cristian
Subject: [PATCH 1/1] iproute2: Fix alternative link for ip command

In busybox the default location of symbolic link for command ip is /sbin/ip. But in iproute2, the alternatvie link for ip is /bin/ip.
It will cause an error when running update-alternatives:
Cannot register alternative ip to /bin/ip since it is already registered to /sbin/ip.

[YOCTO #4855]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta/recipes-connectivity/iproute2/iproute2.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.7.9.5

Patch

diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index fb233eb..3db21db 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -31,7 +31,7 @@  FILES_${PN}-dbg += "${libdir}/tc/.debug"
 
 ALTERNATIVE_${PN} = "ip"
 ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
-ALTERNATIVE_LINK_NAME[ip] = "${base_bindir}/ip"
+ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
 ALTERNATIVE_PRIORITY = "100"
 
 PARALLEL_MAKE = ""