mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
sysvinit: Only enable recipe in builds where its applicable
Similarly to systemd, only enable the recipe in builds where sysvinit is configured in DISTRO_FEATURES. This allows the new cleanup mechanism to handle it correctly in existing builds. (From OE-Core rev: 7f85e74d5c53b34e5f470967fdbdbd19fed1929a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -100,3 +100,8 @@ do_install () {
|
|||||||
chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
|
chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
|
||||||
chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
|
chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
|
||||||
}
|
}
|
||||||
|
|
||||||
|
python () {
|
||||||
|
if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
|
||||||
|
raise bb.parse.SkipPackage("'sysvinit' not in DISTRO_FEATURES")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user