Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 422819 - media-video/mjpg-streamer: package needs at least one USE flag but no USE flag enabled by default
Summary: media-video/mjpg-streamer: package needs at least one USE flag but no USE fla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest QA
Assignee: ChaosEngine
URL: http://blog.flameeyes.eu/2009/01/12/t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-21 11:19 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-06-28 07:33 UTC (History)
1 user (show)

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


Attachments
new ebuild with default USE flags (mjpg-streamer-0_pre20120621.ebuild,1.88 KB, text/plain)
2012-06-21 15:10 UTC, ChaosEngine
Details

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:19:33 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 ChaosEngine 2012-06-21 11:37:48 UTC
Yes, user must make a sane choice of selecting USE flag and thus providing information of what plugins will be compiled.
There is no default USE flags for plugins and either one of input_* and output_* must be preselected before emerging.

For your tinderbox needs I suggest using:
USE='input_file output_http' emerge mjpg-streamer
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-21 11:42:40 UTC
Ehm no.. you really should have a default.
Comment 3 ChaosEngine 2012-06-21 11:50:13 UTC
Without input/output pluging mjpg-streamer has not functionality.

I'd rather force user (just like yourself) to think about proper USE flags than compile it blindly
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-21 12:10:03 UTC
Ebuilds have to work out of the box, to some extent. The current situation is simply _wrong_. Please fix.
Comment 5 ChaosEngine 2012-06-21 15:10:17 UTC
Created attachment 315923 [details]
new ebuild with default USE flags

enabling default USE flags: +input_file +output_http
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-06-28 07:33:26 UTC
+  28 Jun 2012; Amadeusz Żołnowski <aidecoe@gentoo.org>
+  mjpg-streamer-0_pre20120421.ebuild:
+  Default USE: input_file and output_http.
+