Managing (SysV) init scripts with update-alternatives seems to be a bad idea. Package scriptlets (i.e. preinst/postinst/prerm/postrm) in oe-core are constructed from multiple fragments originating from separate bbclasses. Thus, the exact final scriptlet(s) depend on the inheritance order of the classes and is thus delicate by design. Especially in the case of init scripts we always seem to break some use cases, whatever inheritance order we use. E.g. update-rc.d fails because init script (link) is not yet present or daemon start/stop fails because init script (link) is not yet/anymore present. Also, for reference, no other packages than the syslog packages seem to use update-alternatives for managing init scripts.
This patchset fixes the problem by removing the update-alternatives mechanism from syslog packages and making them conflict with each other so that they cannot be installed on the system at the same time. [YOCTO #10433] The following changes since commit a675b2c89e477af088faee9b3be96eae19a85f0b: sanity.bbclass: fix logging of an error (2016-11-15 15:18:50 +0000) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/fixes-10433 http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-10433 Markus Lehtonen (2): busybox: don't manage sysv init script with update-alternatives sysklogd: don't use update-alternatives meta/conf/distro/include/default-providers.inc | 1 + meta/recipes-core/busybox/busybox.inc | 26 +++++++------------------- meta/recipes-extended/sysklogd/sysklogd.inc | 15 +++------------ 3 files changed, 11 insertions(+), 31 deletions(-) -- 2.6.6 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
