All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: is there a virtual/sysvinit to prevent hard-depends on	sysvinit?
Date: Fri, 18 Feb 2011 11:12:48 +0100	[thread overview]
Message-ID: <4D5E4620.5040901@opendreambox.org> (raw)
In-Reply-To: <AANLkTinKjwaC=aqTE2ouKF1VN-iHccUdOSwLG7CnV=ET@mail.gmail.com>

On 02/17/2011 09:15 PM, AJ ONeal wrote:
> Is there a virtual/sysvinit?

I don't think so, because IMAGE_INIT_MANAGER is probably sufficient for
most other cases. In case it's going to be added, I think it should be
called virtual/init.

Fwiw, I'm currently evaluating upstart, too. I'm using COMBINED_FEATURES
to conditionally enable upstart, because it requires some minimum kernel
version, e.g.:

IMAGE_INIT_MANAGER ?= "${@base_contains('COMBINED_FEATURES', 'upstart',
'upstart upstart-sysvcompat util-linux-ng-blkid', 'sysvinit
sysvinit-pidof', d)}"

I've created a short-lived branch to show how I currently intend to
handle the coexistence of sysvinit and upstart in recipes (last 3 commits):

http://git.opendreambox.org/?p=obi/openembedded.git;a=shortlog;h=refs/heads/upstart

How do you handle that?

> task-proper-tools depends on sysvinit, which conflicts with upstart.
> 
> How could I specify that it should depend on a virtual package?

virtual/init could be provided by busybox, so if task-proper-tools
depended on that, it wouldn't achive its purpose.

You could use "${@base_contains('COMBINED_FEATURES', 'upstart',
'upstart', 'sysvinit', d)}", which isn't the best solution either,
considering that other init replacements like systemd might get added in
the future.

Regards,
Andreas




  reply	other threads:[~2011-02-18 10:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 20:15 is there a virtual/sysvinit to prevent hard-depends on sysvinit? AJ ONeal
2011-02-18 10:12 ` Andreas Oberritter [this message]
2011-02-18 10:35 ` Henning Heinold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5E4620.5040901@opendreambox.org \
    --to=obi@opendreambox.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.