summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorZhenbo Gao <zhenbo.gao@windriver.com>2017-07-17 17:13:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 22:51:37 +0100
commit52be83b3c144d898c9a2dd73da330969dc461a2d (patch)
tree0fa30274cec1991c57f563833cdfa4f9b4b9a7cc /meta/recipes-extended
parent8fb8a21b7d4f1fb69f0407f03fd5907d861f7d42 (diff)
downloadpoky-52be83b3c144d898c9a2dd73da330969dc461a2d.tar.gz
lsb: add checking for chkconfig existence when creating the symbolic
remove_initd and remove_initd will be created as the symbolic file of chkconfig, which will be not existed when systemd is configured, so adding the check for the existence of chkconfig before creating the symbolic. (From OE-Core rev: 0417cc64516c47fb4daddc80e41e3f9c6ab927fc) Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/lsb/lsb_4.1.bb10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
index cedf39eb65..c8db1a8156 100644
--- a/meta/recipes-extended/lsb/lsb_4.1.bb
+++ b/meta/recipes-extended/lsb/lsb_4.1.bb
@@ -90,11 +90,13 @@ do_install_append() {
90 install -m 0755 ${WORKDIR}/init-functions ${D}${nonarch_base_libdir}/lsb 90 install -m 0755 ${WORKDIR}/init-functions ${D}${nonarch_base_libdir}/lsb
91 91
92 # create links for LSB test 92 # create links for LSB test
93 if [ "${nonarch_base_libdir}" != "${nonarch_libdir}" ] ; then 93 if [ -e ${sbindir}/chkconfig ]; then
94 install -d ${D}${nonarch_libdir}/lsb 94 if [ "${nonarch_base_libdir}" != "${nonarch_libdir}" ] ; then
95 install -d ${D}${nonarch_libdir}/lsb
96 fi
97 ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/install_initd
98 ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/remove_initd
95 fi 99 fi
96 ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/install_initd
97 ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/remove_initd
98 100
99 if [ "${TARGET_ARCH}" = "x86_64" ]; then 101 if [ "${TARGET_ARCH}" = "x86_64" ]; then
100 if [ "${base_libdir}" != "${base_prefix}/lib64" ]; then 102 if [ "${base_libdir}" != "${base_prefix}/lib64" ]; then