mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02: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
@@ -95,8 +95,7 @@ python populate_packages_updatercd () {
|
||||
return
|
||||
statement = "grep -q -w '/etc/init.d/functions' %s" % path
|
||||
if subprocess.call(statement, shell=True) == 0:
|
||||
mlprefix = d.getVar('MLPREFIX') or ""
|
||||
d.appendVar('RDEPENDS_' + pkg, ' %sinitscripts-functions' % (mlprefix))
|
||||
d.appendVar('RDEPENDS_' + pkg, ' initd-functions')
|
||||
|
||||
def update_rcd_package(pkg):
|
||||
bb.debug(1, 'adding update-rc.d calls to preinst/postinst/prerm/postrm for %s' % pkg)
|
||||
|
||||
@@ -54,3 +54,4 @@ PREFERRED_PROVIDER_nativesdk-openssl ?= "nativesdk-openssl"
|
||||
PREFERRED_PROVIDER_pkgconfig ?= "pkgconfig"
|
||||
PREFERRED_PROVIDER_nativesdk-pkgconfig ?= "nativesdk-pkgconfig"
|
||||
PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
|
||||
PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -68,7 +68,7 @@ FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*"
|
||||
FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit ${base_sbindir}/killall5"
|
||||
FILES_sysvinit-sulogin = "${base_sbindir}/sulogin.sysvinit"
|
||||
|
||||
RDEPENDS_${PN} += "sysvinit-pidof initscripts-functions"
|
||||
RDEPENDS_${PN} += "sysvinit-pidof initd-functions"
|
||||
|
||||
CFLAGS_prepend = "-D_GNU_SOURCE "
|
||||
export LCRYPT = "-lcrypt"
|
||||
|
||||
Reference in New Issue
Block a user