Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931509 - app-containers/lxc-6.0.0: Package RDEPENDS on sys-apps/dbus, but might only be needed by systemd
Summary: app-containers/lxc-6.0.0: Package RDEPENDS on sys-apps/dbus, but might only b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 19:17 UTC by quad
Modified: 2024-05-08 06:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description quad 2024-05-07 19:17:07 UTC
== Summary ==
I noticed that when updating the LXC package to 6.x on my very minimal Gentoo install (used exclusively as a container host), emerge wanted to pull in sys-apps/dbus.

== Expected behavior ==
LXC 5.x ebuilds did not RDEPEND on dbus and due to this my system had not previously needed the dbus package/service.

== Actual behavior ==
When emerging >=app-containers/lxc-6.0.0-r1, dbus gets pulled in as a dependency, despite not being required previously.

== Proposed solution ==
What I found in LXC release notes and announcements indicated that LXC 6.x switched to using libdbus for dbus communication with systemd, instead of libsystemd.

I suspect that app-containers/lxc only needs to RDEPEND on dbus if the systemd USE flag is set, and the dependency might not be needed for OpenRC installs.

Unfortunately I'm unsure if I have the technical knowledge to verify this and make the necessary changes. So I would appreciate if someone could help verify my theory and if correct, apply the necessary changes to the ebuild or elsewhere.

If I've understood ebuild files correctly this propbably means changing "sys-apps/dbus" to "systemd? ( sys-apps/dbus )". I'm unsure if this would require updating any build scripts or service files as well.

== References ==
ref. LXC 6.x release announcement (Section titled "Switched from systemd’s dbus to dbus-1". I am unable to add a link due to posting from a newly created account)
Comment 1 Joonas Niilola gentoo-dev 2024-05-08 06:45:19 UTC
I've most likely accidentally tested this on openrc with -Ddbus=true set on, which then always links to dbus. Maybe I originally typoed the condition always enabling it or something. I now re-tested and it's optional. Pushing an updated -r2 ebuild which I will stabilize in a week to give time for systemd users to test it.
Comment 2 Larry the Git Cow gentoo-dev 2024-05-08 06:46:45 UTC
The bug has been closed via the following commit(s):

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

commit b3923e6675e2fb19224e6476f564f8ec00a23f84
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-05-08 06:45:28 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-05-08 06:46:42 +0000

    app-containers/lxc: move dbus dependency under 'systemd' use flag
    
    Closes: https://bugs.gentoo.org/931509
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-containers/lxc/lxc-6.0.0-r2.ebuild | 172 +++++++++++++++++++++++++++++++++
 1 file changed, 172 insertions(+)