public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Stop using update-alternatives to manage syslog init script
@ 2016-11-21 15:07 Markus Lehtonen
  2016-11-21 15:07 ` [PATCH 1/2] busybox: don't manage sysv init script with update-alternatives Markus Lehtonen
  2016-11-21 15:07 ` [PATCH 2/2] sysklogd: don't use update-alternatives Markus Lehtonen
  0 siblings, 2 replies; 3+ messages in thread
From: Markus Lehtonen @ 2016-11-21 15:07 UTC (permalink / raw)
  To: openembedded-core

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-21 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-21 15:07 [PATCH 0/2] Stop using update-alternatives to manage syslog init script Markus Lehtonen
2016-11-21 15:07 ` [PATCH 1/2] busybox: don't manage sysv init script with update-alternatives Markus Lehtonen
2016-11-21 15:07 ` [PATCH 2/2] sysklogd: don't use update-alternatives Markus Lehtonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox