Skip to content

Stop using update-alternatives to manage syslog init script

Markus Lehtonen openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2busybox: don't manage sysv init script with update-alternativesmeta/conf/distro/include/default-providers.inc meta/recipes-core/busybox/busybox.inc+8 -190 replies
2/2sysklogd: don't use update-alternativesmeta/recipes-extended/sysklogd/sysklogd.inc+3 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Stop using update-alternatives to manage syslog init script

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(-)
Signature · 1 line
2.6.6