Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760252 - gui-wm/sway should depend on sys-apps/systemd[policykit] with systemd USE enabled
Summary: gui-wm/sway should depend on sys-apps/systemd[policykit] with systemd USE ena...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron Bauman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-16 12:58 UTC by Oleh
Modified: 2021-02-14 10:50 UTC (History)
3 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 Oleh 2020-12-16 12:58:56 UTC
As in Summary, when systemd USE enabled for sway, it needs polkit to be present, otherwise starting sway ( for example by running `sway` in tty ) would fail due to no PolicyKit1 service not present

Reproducible: Always

Steps to Reproduce:
1. remove sys-auth/pokit
2. run `sway` in tty
3. notice start failure
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-12-16 19:56:00 UTC
sys-auth/elogind also has "policykit" USE flag, so possibly gui-wm/sway with USE="elogind" may need the same solution.

-       elogind? ( >=sys-auth/elogind-239 )
+       elogind? ( >=sys-auth/elogind-239[policykit] )

-       systemd? ( >=sys-apps/systemd-239 )
+       systemd? ( >=sys-apps/systemd-239[policykit] )
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-12-19 21:55:04 UTC
ya, it sounds like this is needed, updated 9999 and 1.5.1-r1 to include the polkit flag
Comment 3 Larry the Git Cow gentoo-dev 2020-12-19 21:55:07 UTC
The bug has been closed via the following commit(s):

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

commit 6ec6aa4365aaaa9ab2a579e2d2bdacfddf8e066c
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2020-12-19 21:54:49 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2020-12-19 21:55:03 +0000

    gui-wm/sway: add missing polkit flag to systemd and elogind
    
    Closes: https://bugs.gentoo.org/760252
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 gui-wm/sway/sway-1.5.1-r1.ebuild | 117 +++++++++++++++++++++++++++++++++++++++
 gui-wm/sway/sway-9999.ebuild     |   4 +-
 2 files changed, 119 insertions(+), 2 deletions(-)
Comment 4 Katherine Peeters 2021-02-08 21:20:22 UTC
Hi, I'm using sway[elogind] on a system without PolicyKit. Not only does it work without PolicyKit installed, the new change breaks my system by forcibly pulling in PolicyKit...
Comment 5 Larry the Git Cow gentoo-dev 2021-02-09 22:59:58 UTC
The bug has been referenced in the following commit(s):

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

commit 67040dce09c04b221c6d38ed58091eef12f50fcb
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2021-02-09 22:58:04 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2021-02-09 22:59:52 +0000

    gui-wm/sway: remove policykit flag from elogind dep
    
    Bug: https://bugs.gentoo.org/760252
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 gui-wm/sway/sway-1.5.1-r1.ebuild | 2 +-
 gui-wm/sway/sway-9999.ebuild     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 charles17 2021-02-14 10:50:29 UTC
(In reply to Katherine Peeters from comment #4)
> Hi, I'm using sway[elogind] on a system without PolicyKit. Not only does it
> work without PolicyKit installed, the new change breaks my system by
> forcibly pulling in PolicyKit...
For me, removing sys-auth/polkit leads to bug 770436.  Could you please explain how you get sway started without?