mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
initscripts: don't use update-alternatives
Stop using update-alternatives for managing /etc/init.d/functions. Also, make the initscripts-functions subpackage to (runtime) conflict with lsbinitscripts. [YOCTO #10944] (From OE-Core rev: cdcebd81c872cb7386c658998e27cf24e1d0447c) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c83eb10f70
commit
6ceac4eabf
@@ -43,21 +43,18 @@ SRC_URI_append_arm = " file://alignment.sh"
|
||||
|
||||
KERNEL_VERSION = ""
|
||||
|
||||
inherit update-alternatives
|
||||
DEPENDS_append = " update-rc.d-native"
|
||||
PACKAGE_WRITE_DEPS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
|
||||
|
||||
PACKAGES =+ "${PN}-functions ${PN}-sushell"
|
||||
RDEPENDS_${PN} = "${PN}-functions \
|
||||
RDEPENDS_${PN} = "initd-functions \
|
||||
${@bb.utils.contains('DISTRO_FEATURES','selinux','${PN}-sushell','',d)} \
|
||||
"
|
||||
RPROVIDES_${PN}-functions = "initd-functions"
|
||||
RCONFLICTS_${PN}-functions = "lsbinitscripts"
|
||||
FILES_${PN}-functions = "${sysconfdir}/init.d/functions*"
|
||||
FILES_${PN}-sushell = "${base_sbindir}/sushell"
|
||||
|
||||
ALTERNATIVE_PRIORITY_${PN}-functions = "90"
|
||||
ALTERNATIVE_${PN}-functions = "functions"
|
||||
ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
|
||||
|
||||
HALTARGS ?= "-d -f"
|
||||
|
||||
do_configure() {
|
||||
|
||||
Reference in New Issue
Block a user