Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94045 - Change 'mad' USE flag into 'mp3' in all ebuilds
Summary: Change 'mad' USE flag into 'mp3' in all ebuilds
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 01:18 UTC by Gregorio Guidi (RETIRED)
Modified: 2005-07-18 09:21 UTC (History)
8 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 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-26 01:18:34 UTC
Usually the 'mad' useflag has been used in ebuilds having optional mp3 support through the libmad library. The 'mp3' useflag was introduced later, but now that we have it, it makes sense to just use 'mp3' for mp3 support, no matter what library is used for the task.

Note that 'mad' can have a valid use: to decide whether libmad or another library should be used for mp3 support if the package gives the choice. Currently this is the case only for media-sound/xmms, which does the right thing already.

Here are the packages affected:

media-optical herd:
    app-cdr/graveman

games herd:
    games-arcade/stepmania
    games-engines/scummvm
    games-engines/stratagus

gnome herd:
    gnome-base/nautilus
    gnome-extra/gnome-media

kde herd:
    app-cdr/k3b
    kde-base/akode
    kde-base/arts
    kde-base/juk
    kde-base/kdemultimedia
    media-libs/tunepimp
    media-sound/amarok

sound herd:
    media-sound/audacity
    media-sound/beast
    media-sound/bossogg
    media-sound/moc
    media-sound/mpd
    media-sound/mpd-svn
    media-sound/mpfc
    media-sound/normalize
    media-sound/quodlibet
    media-sound/rhythmbox
    media-sound/sox
    media-sound/terminatorx

gstreamer herd:
    media-sound/muine
    media-video/totem

video herd:
    media-video/avidemux
    media-video/avifile
    media-video/gpac
    media-video/mplayer
    media-video/tcvp
    media-video/totem
    media-video/vlc

vapier:
    app-misc/evidence

rizzo:
    media-libs/swfdec
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-26 01:35:59 UTC
Note: xine-lib-1.0.1-r2 has a mad useflag which is used to enable external mad 
instead of internal one. That should be left as it is I think. 
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-26 01:44:23 UTC
For avidemux, the mp3 useflag will be misleading, mad is used for decoding; 
"encode" (aka lame) is used for encoding. 
 
I've renamed it for vlc. 
 
Comment 3 foser (RETIRED) gentoo-dev 2005-05-26 03:41:11 UTC
It's a nice idea and has been around for a while, but this is more than a
mad->mp3 change. It changes the function of USE flags to a goal based form,
which really can collide with the controllable nature of packages we provide
trough USE flags.

I'm not against this, I just want this discussed in a wider context before an
action is taken.
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-26 05:20:24 UTC
(In reply to comment #3) 
> It's a nice idea and has been around for a while, but this is more than a 
> mad->mp3 change. It changes the function of USE flags to a goal based form, 
> which really can collide with the controllable nature of packages we provide 
> trough USE flags. 
 
Indeed. The idea is exactly to follow the trend of having goal-based use flags 
where appropriate, which in this specific case began when the 'mp3' flag was 
introduced a few months ago. 
I filed this bug because in this case there are near to zero conflicts 
involved in the change mad->mp3, and we get as a result that the way to 
enable/disable support for mp3s becomes much more user-friendly and intuitive 
(everyone know what mp3 means, while mad is not a very popular term). 
 
Anyway, note this is not high priority and there's no pressure to implement it 
in given amount of time. 
Comment 5 foser (RETIRED) gentoo-dev 2005-05-26 10:01:54 UTC
There is no such idea ever pushed in any official way & it is inconsistent with
how things are done and as such a bad thing to do ad-hoc. I did not even suggest
it is a better idea than having package bound USE flags. I suggest you propose a
consistent view on USE handling/naming/interpretation and then make a tree wide
usability effort. At this point I'm not about to change known behaviour to
something undefined.
Comment 6 SpanKY gentoo-dev 2005-05-26 19:47:16 UTC
updated evidence / scummvm / stratagus
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-27 09:32:04 UTC
> At this point I'm not about to change known behaviour to  
something undefined.  
  
Ok. But note that there will not be any unified effort towards a more 
consistent flag namespace anytime soon. It's just impossible, given how much 
the current list of global flags is heterogeneous and cluttered (the way 
things are done now cannot be considered consistent). 
 
It makes sense to focus on a small list of flags that are most visible to 
users -- because they are used in more packages, or in more important ones -- 
and try to make them appear consistent to our users when they have to deal 
with them. 
 
Comment 8 Luca Barbato gentoo-dev 2005-05-27 11:41:47 UTC
Please let's discuss that before doing that.

bug marked as NEEDINFO.

Comment 9 Sven Wegener gentoo-dev 2005-05-27 12:51:22 UTC
For example, on mips the mad USE flag is masked because madplay isn't keyworded.
mp3 isn't masked because that would disable all mp3 support. But I'm sure there
are some packages that have optional mp3 support that works on mips. ;) This is
in my oppinion a reason for not changing the flags.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-27 13:17:47 UTC
Hmm actually the problem is with libmad, not madplay anyway. 
 
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-28 06:52:51 UTC
As discussed on irc, i'm changing the severity to enhancement to better 
clarify the purpose of this bug: it's not intended as an enforcement of some 
policy. 
 
Think of of it just as a suggestion for the ebuild maintainers: each 
application listed above can optionally play mp3s, and we have a 'mp3' flag 
that "enables support for reading mp3 files", so probably users would expect 
that the 'mp3' flag will be used in these cases. I'm just proposing that the 
ebuild maintainers make use of it. 
 
As Sven and Diego pointed out, there can be technical or non-technical reasons 
to not do it, so each maintainer is free to reject the proposal if he does not 
deem it appropriate. 
 
Comment 12 Lars Weiler (RETIRED) gentoo-dev 2005-06-10 12:44:41 UTC
media-optical package done.
Comment 13 Stephen Becker (RETIRED) gentoo-dev 2005-07-18 09:21:50 UTC
This bug recently came to my attention, and I should comment before the entire
portage tree goes from mad->mp3.  Sven mentioned in comment 9 that mad is masked
on mips because madplay is not keyworded, but this isn't the real reason.  On
the mips arch, anything that uses libmad is totally broken.  It will just spit
out awful static from the speakers if you try to use any sort of mad output. 
Because of this, I put mad into the mips use.mask, and I changed keywords for
libmad and any ebuild that needs mad to -mips.

However, the mp3 USE flag *is* valid on mips, and we have no reason to mask it.
 If everybody changes their ebuilds such that USE="mp3" is the same as
USE="mad", then you will essentially be totally screwing over multimedia stuff
on mips.  See bug #99403 for an example of how we have already been screwed. 
The use.mask file exists for a purpose.  Please don't take away its function and
force use to put !mips crap for the libmad dep in every package that uses the
mp3 USE flag.