diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2011-08-10 16:57:32 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-11 19:22:06 +0100 |
commit | e8ca7c90467683006f612a06010e662e58768fb4 (patch) | |
tree | ed205cf959cd6d3b3f2e28f21f008623b62ecc1a /meta/recipes-extended | |
parent | 6cfe8c0a147aa235c7d6a2cb87b29a3a975f2eac (diff) | |
download | poky-e8ca7c90467683006f612a06010e662e58768fb4.tar.gz |
chkconfig: remove link for update-alternatives to disambiguate
[YOCTO #936]
"update-alternatives" installed: one in /usr/sbin from chkconfig \
(symlinked to "alternatives"), and the other in /usr/bin \
from update-alternatives-cworth.
It appears for whatever reason that the one from chkconfig is run \
during postinst processing but if you run the script from the command \
line it gets the other one.
this is due to differences in the PATH environment variable.
The following is the sequence to call scripts after kernel booting
inittab
-->rcS
-->./S40networking(PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
-->S98configure(call rpm-postinstall)
#"/usr/sbin" is found prior to "/usr/bin", so update-alternatives from chkconfig is run in this script
-->rc5.d
-->profile(profile:4:PATH="/usr/local/bin:/usr/bin:/bin" profile:15: PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin)
#"/usr/bin/" is found prior to "/usr/sbin", so update-alternatives from update-alternatives-cworth is run in this script
So I remove the symlink (update-alternatives linked to chkconfig). The one from update-alternatives-cworth is left alone.
(From OE-Core rev: f3a52a73251b26ead15abd4910dc82c1011ab852)
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb index 659f964313..6dc8a0e131 100644 --- a/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb +++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb | |||
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" | |||
12 | 12 | ||
13 | DEPENDS = "libnewt popt" | 13 | DEPENDS = "libnewt popt" |
14 | 14 | ||
15 | PR = "r0" | 15 | PR = "r1" |
16 | 16 | ||
17 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" | 17 | SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" |
18 | 18 | ||
@@ -23,4 +23,5 @@ inherit autotools gettext | |||
23 | 23 | ||
24 | do_install_append() { | 24 | do_install_append() { |
25 | mkdir -p ${D}/etc/chkconfig.d | 25 | mkdir -p ${D}/etc/chkconfig.d |
26 | rm -f ${D}/usr/sbin/update-alternatives | ||
26 | } | 27 | } |