All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 0/2 V2] add rconflict for systemd/tiny-init
Date: Thu, 30 May 2019 15:05:43 +0300	[thread overview]
Message-ID: <20190530120543.GC20599@localhost> (raw)
In-Reply-To: <67c4faa0f02f1086c7910499ec4e917a12f090f4.camel@linuxfoundation.org>

On Thu, May 30, 2019 at 12:40:12PM +0100, Richard Purdie wrote:
> On Thu, 2019-05-30 at 14:15 +0300, Adrian Bunk wrote:
> > On Thu, May 30, 2019 at 01:32:18PM +0800, changqing.li@windriver.com
> > wrote:
> > > From: Changqing Li <changqing.li@windriver.com>
> > > 
> > > 
> > > Changqing Li (2):
> > >   tiny-init: add rconflicts
> > >   systemd: add rconflicts
> > > ...
> > 
> > I wonder whether the conflicts between init systems could be handled
> > with
> >     RCONFLICTS_${PN} = "${VIRTUAL-RUNTIME_init_manager}"
> > 
> > This would avoid the problem that all n init systems would need 
> > RCONFLICTS with all n-1 other init systems.
> > 
> > In my testing this seems to work with all supported package managers
> > (including the self-conflict not causing problems).
> 
> I think we can support multiple init systems within one package feed,
> at least to some degree.

This should work with either solution, or do I miss anything?

> I'm also very nervous about the self-conflict, 
> I'm surprised that works with all the package managers as I thought I'd
> seen that fail.

In Debian that's a common pattern for exactly this purpose,
see the last section of [1].

> Was that with rootfs construction or just building the
> packages?

rootfs construction with opkg/deb/rpm [2]

> Cheers,
> 
> Richard

cu
Adrian

[1] https://www.debian.org/doc/debian-policy/ch-relationships.html#virtual-packages-provides
[2] with tar rootfs construction is generally impossible

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



      reply	other threads:[~2019-05-30 12:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30  5:32 [PATCH 0/2 V2] add rconflict for systemd/tiny-init changqing.li
2019-05-30  5:32 ` [PATCH 1/2 V2] tiny-init: add rconflicts changqing.li
2019-05-30  5:32 ` [PATCH 2/2 V2] systemd: " changqing.li
2019-05-30 11:15 ` [PATCH 0/2 V2] add rconflict for systemd/tiny-init Adrian Bunk
2019-05-30 11:40   ` Richard Purdie
2019-05-30 12:05     ` Adrian Bunk [this message]

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=20190530120543.GC20599@localhost \
    --to=bunk@stusta.de \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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.