Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275335 - x11-apps/xinit-1.0.8-r4 USE="hal" pulls in sys-auth/consolekit
Summary: x11-apps/xinit-1.0.8-r4 USE="hal" pulls in sys-auth/consolekit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 282903 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-24 22:41 UTC by Alex Busenius
Modified: 2009-09-20 09:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild that uses consolekit USE flag instead of hal (xinit-1.0.8-r4.ebuild,2.06 KB, text/plain)
2009-06-24 22:45 UTC, Alex Busenius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Busenius 2009-06-24 22:41:27 UTC
x11-apps/xinit ebuild does some (in my opinion) contra-intuitive USE flag handling, it uses the "hal" flag to enable/disable consolekit:

RDEPEND="x11-apps/xauth
        x11-libs/libX11
        hal? ( sys-auth/consolekit )"
...
<snip>
...
pkg_setup() {
        CONFIGURE_OPTIONS="$(use_with hal consolekit)"
        if use hal; then
                if ! built_with_use sys-apps/dbus X ; then
                        eerror "You MUST build sys-apps/dbus with the X USE flag enabled."
                        die "You MUST build sys-apps/dbus with the X USE flag enabled."
                fi
        fi
}

Reproducible: Always

Steps to Reproduce:
1. USE="hal -consolekit" emerge x11-apps/xinit

Actual Results:  
sys-auth/consolekit gets pulled in

Expected Results:  
Not pull sys-auth/consolekit in, since not requested
Comment 1 Alex Busenius 2009-06-24 22:45:12 UTC
Created attachment 195707 [details]
Ebuild that uses consolekit USE flag instead of hal

I've changed the original ebuild to use the consolekit USE flag and encoded the "if ! built_with_use sys-apps/dbus X" check into an EAPI-2 USE-dependency.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-08-30 09:31:14 UTC
*** Bug 282903 has been marked as a duplicate of this bug. ***
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-20 09:37:36 UTC
I fixed it for 1.0.8-r7 :]