Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672254 - sys-apps/dbus-1.10.24 with sys-apps/systemd-239-r2 - wrong path to systemctl
Summary: sys-apps/dbus-1.10.24 with sys-apps/systemd-239-r2 - wrong path to systemctl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-29 20:01 UTC by Sławomir Nizio
Modified: 2019-02-24 09:26 UTC (History)
2 users (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 Sławomir Nizio 2018-11-29 20:01:02 UTC
# qlist -e systemd | grep bin/systemctl
/bin/systemctl


but:

# grep systemctl /usr/lib/systemd/user/dbus.socket
ExecStartPost=-/usr/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus


Both package versions (sys-apps/dbus-1.10.24 and sys-apps/systemd-239-r2) are the lastest stable for amd64 at the moment.



Another issue related to paths (which confirms that the path has been moved and mentions in which version it may have happened): https://bugs.gentoo.org/646542.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-30 07:44:12 UTC
Have you tried rebuilding it?  I'm going to guess it finds the path at build time.
Comment 2 Mike Gilbert gentoo-dev 2018-11-30 15:59:24 UTC
Right, there's a build-time check for it in PATH.

https://cgit.freedesktop.org/dbus/dbus/tree/configure.ac?h=dbus-1.10#n1217

If you build dbus before systemd is installed, it will end up defaulting to /usr/bin/systemctl.

Perhaps we should add IUSE="+split-usr" and force the value by passing SYSTEMCTL="${EPRFFIX}/bin/systemctl" or SYSTEMCTL="${EPREFIX}/usr/bin/systemctl" to configure.
Comment 3 Sławomir Nizio 2018-11-30 20:02:51 UTC
Ah indeed, after the rebuild it's pointing at /bin/systemctl, thanks!
Comment 4 Andreas Sturmlechner gentoo-dev 2019-02-24 09:26:13 UTC
Closing this as dbus already has a slot op on sys-apps/systemd.