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

Bug 332379

Summary: RFC: add "laptop" USE flag to kde-base/solid
Product: Gentoo Linux Reporter: Soren Harward <stharward>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Soren Harward 2010-08-12 03:12:46 UTC
kde-base/solid includes the program solid-powermanagement, which can suspend/hibernate the computer through HAL.  However, to have this functionality actually work, HAL has to be built with USE="+laptop" so that it pulls in the pm-utils package.  I suggest adding the "laptop" USE flag to the kde-base/solid ebuild, and having the solid ebuild check that if the "laptop" USE flag is requested, that sys-apps/hal has also been built with the laptop flag enabled.  Something like:

RDEPEND="hal? ( laptop? ( sys-apps/hal[+laptop] ) || sys-apps/hal )"

That way, if someone wants HAL but doesn't care about power management, they can still use HAL.  And if someone doesn't want HAL, then it doesn't matter whether the laptop flag is set or not.

Reproducible: Always
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2010-08-13 02:55:42 UTC
considering that the RDEPEND string in the initial report is invalid, I am going to assume that the original reporter meant RDEPEND="hal? ( sys-apps/hal[laptop?] )"
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-01-09 09:31:51 UTC
Closing this as WONTFIX since hal is being deprecated anyway