Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956312 - kde-plasma/powerdevil-6.3.90 won't start under systemd user session with <sys-apps/systemd-257
Summary: kde-plasma/powerdevil-6.3.90 won't start under systemd user session with <sys...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://mail.kde.org/pipermail/distri...
Whiteboard:
Keywords:
Depends on: 956385
Blocks:
  Show dependency tree
 
Reported: 2025-05-19 10:35 UTC by Martin Bednar
Modified: 2025-06-04 19:15 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 Martin Bednar 2025-05-19 10:35:24 UTC
Powerdevil isn't running, 

journalctl --user -xeu plasma-powerdevil output:
May 19 12:06:21 ged (werdevil)[3247]: plasma-powerdevil.service: Failed to apply ambient capabilities (before UID change): Operation not permitted
May 19 12:06:21 ged (werdevil)[3247]: plasma-powerdevil.service: Failed at step CAPABILITIES spawning /usr/libexec/org_kde_powerdevil: Operation not permitted

running manually from terminal "works". As in power management capabilities appear in the desktop, but this isn't a workable solution...
Haven't yet had time to play around with the systemd unit.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-19 10:36:31 UTC
Please include emerge --info. May be the same as https://community.kde.org/Distributions/Packaging_Recommendations#Powerdevil_package_configuration.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-19 10:40:47 UTC
There was a discussion of backporting in https://github.com/systemd/systemd/pull/32937 but I don't see it appearing on the v256-stable branch at all.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-19 10:42:04 UTC
It's probably overdue to stable systemd-257 at this point anyway, just a bit frustrating.
Comment 4 Martin Bednar 2025-05-19 11:44:12 UTC
Updated to systemd 257 (257.5) , powerdevil starts on session startup.

So definitely is the same issue.
Thanks for quick response!
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-21 19:13:00 UTC
Stabilisation is done. What to do next?

* has_version and apply revert condiitonally? ew
* Add artificial dep on systemd in powerdevil
* ???
Comment 6 Martin Bednar 2025-05-21 20:39:43 UTC
Just my $0.02: plasma 6.4 is scheduled for release on 2025-06-17, and the setcap change appears only in https://invent.kde.org/plasma/powerdevil/-/commit/7860551aeaeed400fb8db9f2535bfa493ce06e53 , so 6.4.

Wouldn't stable systemd have propagated to most users by then?
For me this doesn't need to be solved in the package.
Comment 7 Andreas Sturmlechner gentoo-dev 2025-05-25 15:10:32 UTC
We must not forget about split-usr: >=systemd-255 is masked for these systems.
Comment 8 Mike Gilbert gentoo-dev 2025-05-25 16:26:10 UTC
(In reply to Andreas Sturmlechner from comment #7)
> We must not forget about split-usr: >=systemd-255 is masked for these
> systems.

I consider split-usr systems with systemd to be basically unsupported at this point. Happy to implement changes to make that more obvious.
Comment 10 Larry the Git Cow gentoo-dev 2025-05-31 11:43:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=8bd4ed5be948abd2cd00539e0cc48c7987b389d6

commit 8bd4ed5be948abd2cd00539e0cc48c7987b389d6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-05-30 21:55:57 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-05-31 11:43:35 +0000

    kde-plasma/plasma-meta: RDEPEND on >=sys-apps/systemd-257
    
    To avoid running into kde-plasma/powerdevil won't start bug.
    
    Bug: https://bugs.gentoo.org/956312
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-meta/plasma-meta-6.3.91.ebuild      | 2 +-
 kde-plasma/plasma-meta/plasma-meta-6.4.49.9999.ebuild | 2 +-
 kde-plasma/plasma-meta/plasma-meta-9999.ebuild        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2025-06-04 19:15:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=45392543c517b90ae063b895685c29a29b982ed7

commit 45392543c517b90ae063b895685c29a29b982ed7
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-06-04 19:12:55 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-06-04 19:12:55 +0000

    kde-plasma/powerdevil: ewarn in postinst about too old systemd version
    
    Closes: https://bugs.gentoo.org/956312
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/powerdevil/powerdevil-6.3.91.ebuild      | 4 ++++
 kde-plasma/powerdevil/powerdevil-6.4.49.9999.ebuild | 4 ++++
 kde-plasma/powerdevil/powerdevil-9999.ebuild        | 4 ++++
 3 files changed, 12 insertions(+)