Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 681356

Summary: sys-auth/elogind: Please support minimal install that does not collide with systemd
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Andreas Sturmlechner <asturm>
Status: CONFIRMED ---    
Severity: normal CC: kensington, sven.eden
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-23 06:56:31 UTC
I would appreciate if you could make it possible to install just the libraries and headers, so that I could test whether my packages build against elogind without actually having to remove systemd.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2019-03-25 10:08:11 UTC
I'm not sure if this belongs in the tree or not. What about INSTALL_MASK?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-25 11:19:55 UTC
INSTALL_MASK would not resolve the blocker. Besides, I don't think I'm the only one who would appreciate being able to test his packages, if your goal is indeed to support elogind Gentoo-wide.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-28 16:11:01 UTC
Hmm, how about something as crazy as USE=systemd that builds libraries but connects to systemd's logind?  I suppose they use the same API, so it should work.
Comment 4 Andreas Sturmlechner gentoo-dev 2019-03-30 19:46:41 UTC
Sven, do you think this is feasible at all?
Comment 5 Sven Eden 2019-10-09 14:38:45 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Sven, do you think this is feasible at all?

Libraries and binaries have their own names, the includes are in /usr/include/elogind, and the config is in /etc/elogind.

What would clash are:
- All man pages but
  - /usr/share/man/man1/elogind-inhibit.1
  - /usr/share/man/man7/elogind.*
  - /usr/share/man/man8/elogind.8
  - /usr/share/man/man8/pam_elogind.8
- /bin/loginctl
- /lib/udev/rules.d/*
- /usr/bin/busctl
- /usr/share/bash-completion/completions/loginctl
- /usr/share/dbus-1/system-services/org.freedesktop.login1.service
- /usr/share/dbus-1/system.d/org.freedesktop.login1.conf
- /usr/share/factory/etc/pam.d/*
- /usr/share/polkit-1/actions/org.freedesktop.login1.policy
- /usr/share/zsh/site-functions/_loginctl

The dbus files are important! They must not be installed, or dbus *will* autostart elogind if systemd-login hasn't registered itself already.