Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469190 - xfce-base/xfce4-session-4.10.1 USE=policykit - "Restart" and "Shut Down" fail when sys-apps/systemd is not installed
Summary: xfce-base/xfce4-session-4.10.1 USE=policykit - "Restart" and "Shut Down" fail...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL: http://forum.xfce.org/viewtopic.php?p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 13:57 UTC by tka
Modified: 2014-10-18 21:22 UTC (History)
0 users

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 tka 2013-05-09 13:57:14 UTC
After upgrading xfce-base/xfce4-session from 4.10.0 to 4.10.1, the buttons "Restart" and "Shut Down" are disabled. This happens with USE=policykit set and having sys-apps/systemd not installed. With USE=policykit, the ebuild passes --enable-systemd to configure, and, starting from version 4.10.1, xfce4-session will (try to) use systemd to restart or shut down the system. Without systemd installed, this fails and the buttons are disabled. See URL for more information.

I do not know whether policykit is used by xfce4-session if systemd is not used. Depending on that, the useflag policykit may be renamed to systemd or a separate systemd useflag could be added. At least, if the ebuild passes --enable-systemd to configure, it should depend on sys-apps/systemd.

Reproducible: Always

Steps to Reproduce:
1. Make sure that systemd is not installed
2. Install Xfce with xfce4-session-4.10.1 with USE=policykit
3. Restart your Xfce session
4. Click on "Log Out"

Actual Results:  
The buttons "Restart" and "Shut Down" are disabled.

Expected Results:  
The buttons "Restart" and "Shut Down" (as well as the others) are enabled.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-05-09 14:20:21 UTC
oops, you are right, how stupid #ifdef
this should be runtime detected instead of compile time :-(

+  09 May 2013; Samuli Suominen <ssuominen@gentoo.org>
+  xfce4-session-4.10.1.ebuild:
+  Rename USE="policykit" with USE="systemd" because --enable-systemd is
+  disabling ConsoleKit support wrt #469190 by Timo Kamph