Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 422807 - x11-misc/bumblebee package needs at least one USE flag but no USE flag enabled by default
Summary: x11-misc/bumblebee package needs at least one USE flag but no USE flag enable...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest QA (vote)
Assignee: Vadim A. Misbakh-Soloviov (mva)
URL: http://blog.flameeyes.eu/2009/01/12/t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-21 11:11 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-06-30 11:08 UTC (History)
2 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-21 11:11:15 UTC
Hello,

You're receiving this canned (template-based) bug report because I found an annoyance with a package during my tinderbox run.

The package in question is checking for one out of a series of USE flags to be enabled, likely because these are multiple selectable backends, but it currently does not use the EAPI=1 feature of default USE flags to work out of the box.

You can see in my blog post in the URL field why that's a pro
Comment 1 Reinis Danne 2012-06-21 14:07:34 UTC
Hi!

We are using default useflag were it is applicable:
IUSE="+bbswitch video_cards_nouveau video_cards_nvidia"

The issue is that we have to make sure that at least one of the video cards is enabled also:
REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )"

And this doesn't bode well with default use, since it doesn't make sense to install the package if one doesn't have nv graphics card.

Anyway it could be solved by enabling for example noveau only if none of the two options are set. But I don't think there is an easy way to express that using EAPI=4 features. Would be nice if something like this worked:
REQUIRED_USE="|| ( video_cards_nvidia +video_cards_nouveau )"
Well, for this case it doesn't make much sense anyway.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-21 14:10:39 UTC
Does it fail if you have both enabled? Because you're not expressing that as it is.

And yes one of the two still needs to be defaulted on, otherwise the default config is not working, and that's wrong.
Comment 3 Reinis Danne 2012-06-21 14:50:14 UTC
(In reply to comment #2)
> Does it fail if you have both enabled? Because you're not expressing that as
> it is.

It is not tested with both enabled.

> 
> And yes one of the two still needs to be defaulted on, otherwise the default
> config is not working, and that's wrong.

Imho, it is not more wrong than enabling one at random. If it is really required to set one even if user hasn't done so, then REQUIRED_USE is not usable here.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-21 14:52:31 UTC
Then you might want to make it an exclusive condition... and still it should work out of the box...
Comment 5 Pacho Ramos gentoo-dev 2012-06-21 21:00:44 UTC
Regarging enabling one of them by default I am against it because *in this case* people installing this package must have VIDEO_CARDS variable properly set (if it's empty it shouldn't even need bumblebee)

About making it exclusive, from a installed files point of view (that changed in existing revisions) this package should work with both enabled (or, at least, files won't collide anymore in latest revision and should work fine)
Comment 6 Pacho Ramos gentoo-dev 2012-06-30 11:08:55 UTC
This would also cause that, for example, if we enable nvidia by default, people setting VIDEO_CARDS to "nouveau" will get both enabled if not adding explicitly "-nvidia"