Skip to contentSkip to conversation

util-linux: fix alternatives setting for unshare

PATCH New Chen Qi 1 participant 2 messages Oct 11, 2018

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover util-linux: fix alternatives setting for unshare

*** BLURB HERE ***
The following changes since commit 8a2e53b525ebc4f50c7384af056cbe67a3913282:

libxml2: Make it compatible with externalsrc (2018-10-10 17:59:09 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/util-linux-unshare
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/util-linux-unshare

Chen Qi (1):
util-linux: fix alternatives setting for unshare

 meta/recipes-core/util-linux/util-linux.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 util-linux: fix alternatives setting for unshare

The alternative setting for unshare belongs to the util-linux-unshare package instead of the util-linux package. Fix this problem to avoid a dead symlink /usr/bin/unshare -> /usr/bin/unshare.util-linux on target.

---
 meta/recipes-core/util-linux/util-linux.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/util-linux/util-linux.inc +4 -2
index 45e2203..60ac9c2 100644
@@ -207,7 +207,7 @@ ALTERNATIVE_PRIORITY = "80"
 
 ALTERNATIVE_${PN}  = " \
     dmesg kill more mkswap blockdev pivot_root switch_root \
-    hexdump last lastb logger mesg renice wall unshare \
+    hexdump last lastb logger mesg renice wall \
     setsid chrt flock utmpdump eject nologin taskset fallocate \
     fsfreeze nsenter \
 "
@@ -220,7 +220,6 @@ ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev"
 ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root"
 ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root"
 ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
-ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare"
 ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate"
 ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze"
 ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin"
@@ -292,6 +291,9 @@ ALTERNATIVE_LINK_NAME[sulogin] = "${base_sbindir}/sulogin"
 ALTERNATIVE_util-linux-mountpoint = "mountpoint"
 ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint"
 
+ALTERNATIVE_util-linux-unshare = "unshare"
+ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare"
+
 BBCLASSEXTEND = "native nativesdk"
 
 python do_package_prepend () {
Signature · 1 line
1.9.1