All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2 V2] add rconflict for systemd/tiny-init
@ 2019-05-30  5:32 changqing.li
  2019-05-30  5:32 ` [PATCH 1/2 V2] tiny-init: add rconflicts changqing.li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: changqing.li @ 2019-05-30  5:32 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>


Changqing Li (2):
  tiny-init: add rconflicts
  systemd: add rconflicts

 meta-poky/recipes-core/tiny-init/tiny-init.bb | 1 +
 meta/recipes-core/systemd/systemd_242.bb      | 2 ++
 2 files changed, 3 insertions(+)

-- 
2.7.4



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

* [PATCH 1/2 V2] tiny-init: add rconflicts
  2019-05-30  5:32 [PATCH 0/2 V2] add rconflict for systemd/tiny-init changqing.li
@ 2019-05-30  5:32 ` 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
  2 siblings, 0 replies; 6+ messages in thread
From: changqing.li @ 2019-05-30  5:32 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

add rconflicts since error during do_rootfs:
file /sbin/init conflicts between attempted installs of tiny-init-1.0-r3.i586 and systemd-1:242+0+db2e367bfc-r0.i586

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta-poky/recipes-core/tiny-init/tiny-init.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-poky/recipes-core/tiny-init/tiny-init.bb b/meta-poky/recipes-core/tiny-init/tiny-init.bb
index 4d4e34d..44c8e1b 100644
--- a/meta-poky/recipes-core/tiny-init/tiny-init.bb
+++ b/meta-poky/recipes-core/tiny-init/tiny-init.bb
@@ -28,3 +28,4 @@ do_install() {
 }
 
 FILES_${PN} = "/init ${sysconfdir}/rc.local.sample"
+RCONFLICTS_${PN} = "systemd"
-- 
2.7.4



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

* [PATCH 2/2 V2] systemd: add rconflicts
  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 ` changqing.li
  2019-05-30 11:15 ` [PATCH 0/2 V2] add rconflict for systemd/tiny-init Adrian Bunk
  2 siblings, 0 replies; 6+ messages in thread
From: changqing.li @ 2019-05-30  5:32 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

add rconflicts since error during do_rootfs:
file /sbin/resolvconf conflicts between attempted installs of resolvconf-1.79-r0.noarch and systemd-1:242+0+db2e367bfc-r0.i586
file /sbin/init conflicts between attempted installs of tiny-init-1.0-r3.i586 and systemd-1:242+0+db2e367bfc-r0.i586

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta/recipes-core/systemd/systemd_242.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb
index 93a23dd..90f235b 100644
--- a/meta/recipes-core/systemd/systemd_242.bb
+++ b/meta/recipes-core/systemd/systemd_242.bb
@@ -603,6 +603,8 @@ FILES_udev += "${base_sbindir}/udevd \
 
 FILES_udev-hwdb = "${rootlibexecdir}/udev/hwdb.d"
 
+RCONFLICTS_${PN} = "tiny-init ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolvconf', '', d)}"
+
 INITSCRIPT_PACKAGES = "udev"
 INITSCRIPT_NAME_udev = "systemd-udevd"
 INITSCRIPT_PARAMS_udev = "start 03 S ."
-- 
2.7.4



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

* Re: [PATCH 0/2 V2] add rconflict for systemd/tiny-init
  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 ` Adrian Bunk
  2019-05-30 11:40   ` Richard Purdie
  2 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2019-05-30 11:15 UTC (permalink / raw)
  To: changqing.li; +Cc: openembedded-core

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).

cu
Adrian

-- 

       "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



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

* Re: [PATCH 0/2 V2] add rconflict for systemd/tiny-init
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2019-05-30 11:40 UTC (permalink / raw)
  To: Adrian Bunk, changqing.li; +Cc: openembedded-core

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. 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. Was that with rootfs construction or just building the
packages?

Cheers,

Richard



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

* Re: [PATCH 0/2 V2] add rconflict for systemd/tiny-init
  2019-05-30 11:40   ` Richard Purdie
@ 2019-05-30 12:05     ` Adrian Bunk
  0 siblings, 0 replies; 6+ messages in thread
From: Adrian Bunk @ 2019-05-30 12:05 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

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



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

end of thread, other threads:[~2019-05-30 12:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.