Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680226 - sys-auth/polkit USE=systemd should depend on sys-apps/systemd[policykit]
Summary: sys-auth/polkit USE=systemd should depend on sys-apps/systemd[policykit]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-13 12:13 UTC by Hans F. Nordhaug
Modified: 2019-03-16 06:26 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 Hans F. Nordhaug 2019-03-13 12:13:03 UTC
I recently setup up two new PCs with LXQt as desktop environment and systemd as init system. LXQt pulls in sys-auth/polkit-qt which again pulls in sys-auth/polkit.

In this setup systemd will block access to Power Off, Hibernate and so on - permission denied. (Start "lxqt-leave" from the command line to see the relevant log messages.)

I fixed this issue by emerging systemd with the policykit use flag. IMHO I think sys-auth/polkit should require this. Or is there some other reason to not do so?

The patch to the ebuild is trivial so I haven't attached it.
Comment 1 Mike Gilbert gentoo-dev 2019-03-13 14:44:24 UTC
I think that should be fine. sys-apps/systemd has sys-auth/polkit in PDEPEND to avoid the circular dependency problem anyway.
Comment 2 Larry the Git Cow gentoo-dev 2019-03-16 06:26:20 UTC
The bug has been closed via the following commit(s):

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

commit 3f83c5cb2a9fda577ed3d43ddff0eb673a15a05c
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2019-03-16 06:25:51 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2019-03-16 06:26:07 +0000

    sys-auth/polkit: ensure systemd is built with policykit
    
    Closes: https://bugs.gentoo.org/680226
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Michael Palimaka <kensington@gentoo.org>

 sys-auth/polkit/polkit-0.115-r3.ebuild | 142 +++++++++++++++++++++++++++++++++
 1 file changed, 142 insertions(+)