Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867898 - sys-apps/s6-linux-init-1.0.8.0[sysv-utils] conflicts with sys-apps/openrc-0.44.10
Summary: sys-apps/s6-linux-init-1.0.8.0[sysv-utils] conflicts with sys-apps/openrc-0.4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Samuel Holland
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2022-09-01 18:33 UTC by hoelbezier
Modified: 2022-10-10 12:20 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
OpenRC and s6-linux-init ebuilds diff (inits.diff,802 bytes, patch)
2022-09-01 18:33 UTC, hoelbezier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hoelbezier 2022-09-01 18:33:18 UTC
Created attachment 802564 [details, diff]
OpenRC and s6-linux-init ebuilds diff

sys-apps/s6-linux-init-1.0.8.0 has a use flag that allows it to provide sysvinit replacement scripts. However, this will conflict with sys-apps/openrc-0.44.10, since this one either provides the same scripts (with the sysv-utils use flag), or depends on sys-apps/sysvinit (without the sysv-utils flag).

Since s6-linux-init may be used as an init system with openrc as a service manager, this should not be, and s6-linux-init should be added as a possible dependency of openrc should the sysv-utils flag not be set.

I have included patches to several ebuilds in that regard.

In the long term, however, I believe a more sustainable solution would be to have a virtual/init package which would depend on one of several possible inits (sysvinit, openrc[sysv-utils], systemd[sysv-utils] or s6-linux-init[sysv-utils]). sys-apps/openrc could then just depend on that virtual package when it is not installed with the sysv-utils flag.
Comment 1 Larry the Git Cow gentoo-dev 2022-10-10 12:20:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4b0a14d2f16ba537f7995cd0c3b9a839eff85e2

commit c4b0a14d2f16ba537f7995cd0c3b9a839eff85e2
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-09-13 13:34:53 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-10-10 12:20:08 +0000

    sys-apps/openrc: make the package work with sys-apps/s6-linux-init system
    
    sys-apps/s6-linux-init is an alternative init system which can be used
    together with openrc as a service manager. This commit changes
    dependencies in such a way that makes installation of s6-linux-init with
    openrc possible.
    
    Closes: https://bugs.gentoo.org/867898
    Suggested-by: Hoël Bézier <hoelbezier@riseup.net>
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-apps/openrc/{openrc-0.44.10.ebuild => openrc-0.44.10-r1.ebuild} | 5 ++++-
 sys-apps/openrc/{openrc-0.45.1.ebuild => openrc-0.45.1-r1.ebuild}   | 5 ++++-
 sys-apps/openrc/{openrc-0.45.2.ebuild => openrc-0.45.2-r1.ebuild}   | 5 ++++-
 sys-apps/openrc/openrc-9999.ebuild                                  | 5 ++++-
 4 files changed, 16 insertions(+), 4 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ab35c1fce98e426d0509e5643edd23ac5346703

commit 2ab35c1fce98e426d0509e5643edd23ac5346703
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-09-13 13:15:31 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-10-10 12:20:07 +0000

    sys-apps/s6-linux-init: add blocker with sys-apps/openrc
    
    s6-linux-init cannot be installed together with sys-apps/openrc in the
    same time when both set sysv-utils use flag as they both install same
    files.
    
    Bug: https://bugs.gentoo.org/867898
    Suggested-by: Hoël Bézier <hoelbezier@riseup.net>
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-apps/s6-linux-init/s6-linux-init-1.0.8.0.ebuild | 1 +
 1 file changed, 1 insertion(+)