* [PATCH 0/1] coreutils: fix hostname conflict with other packages
@ 2018-02-09 7:49 Chen Qi
2018-02-09 7:49 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2018-02-09 7:49 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 44ea6ded0e8e73f5258ce55bd1b851e24243b76a:
bitbake: bitbake-user-manual: Commented out Placeholder Paragraph (2018-02-06 18:10:35 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/coreutils-hostname
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/coreutils-hostname
Chen Qi (1):
coreutils: fix hostname conflict with other packages
meta/recipes-core/coreutils/coreutils_8.29.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] coreutils: fix hostname conflict with other packages
2018-02-09 7:49 [PATCH 0/1] coreutils: fix hostname conflict with other packages Chen Qi
@ 2018-02-09 7:49 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2018-02-09 7:49 UTC (permalink / raw)
To: openembedded-core
The hostname utility is also provided by busybox and net-tools. So
use alternatives mechanism to manage it in coreutils. Make its priority
higher than busybox. As hostname is not built by default for coreutils,
we make its priority lower than net-tools.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-core/coreutils/coreutils_8.29.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/coreutils/coreutils_8.29.bb b/meta/recipes-core/coreutils/coreutils_8.29.bb
index 8df8802..0b8acc5 100644
--- a/meta/recipes-core/coreutils/coreutils_8.29.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.29.bb
@@ -52,7 +52,7 @@ bindir_progs = "arch basename chcon cksum comm csplit cut dir dircolors dirname
tr truncate tsort tty unexpand uniq unlink uptime users vdir wc who whoami yes"
# hostname gets a special treatment and is not included in this
-base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdir \
+base_bindir_progs = "cat chgrp chmod chown cp date dd echo false hostname kill ln ls mkdir \
mknod mv pwd rm rmdir sleep stty sync touch true uname stat"
sbindir_progs= "chroot"
@@ -95,6 +95,8 @@ do_install_append() {
inherit update-alternatives
ALTERNATIVE_PRIORITY = "100"
+# Make hostname's priority higher than busybox but lower than net-tools
+ALTERNATIVE_PRIORITY[hostname] = "90"
ALTERNATIVE_${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs} base64 mktemp df"
ALTERNATIVE_${PN}-doc = "base64.1 mktemp.1 df.1 groups.1 kill.1 uptime.1 stat.1 hostname.1"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-09 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-09 7:49 [PATCH 0/1] coreutils: fix hostname conflict with other packages Chen Qi
2018-02-09 7:49 ` [PATCH 1/1] " Chen Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox