Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111395 - sdl-mixer has smpeg as static dependency, ignoring -mp3
Summary: sdl-mixer has smpeg as static dependency, ignoring -mp3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 13:09 UTC by Arc Riley
Modified: 2005-11-04 10:57 UTC (History)
0 users

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


Attachments
/usr/local/portage/media-libs/sdl-mixer/sdl-mixer-1.2.6-r2.ebuild (sdl-mixer-1.2.6-r2.ebuild,1.29 KB, text/plain)
2005-11-03 13:09 UTC, Arc Riley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arc Riley 2005-11-03 13:09:20 UTC
This is a simple fix to allow people who choose to turn mp3 support off (ie, 
not installing mad/smpeg/etc) while still using sdl-mixer. 
 
This is in order to comply with section 11 of the LGPL, which restricts 
distribution when the software's use and/or distribution is impeded by 
software patents, whereas the MP3 licensing authority allows only cost-free 
decoders to be distributed without royalties and the GPL/LGPL permit for-cost 
distribution.  In countries where their patents are recognized, all GPL/LGPL 
MP3 decoders are therefor not legally permitted to be distributed.
Comment 1 Arc Riley 2005-11-03 13:09:46 UTC
Created attachment 72048 [details]
/usr/local/portage/media-libs/sdl-mixer/sdl-mixer-1.2.6-r2.ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-03 13:48:01 UTC
We are not crippling software because of stupid laws. 
Comment 3 Arc Riley 2005-11-04 05:18:48 UTC
This is *NOT* an issue of crippling software in any way, this is only 
permitting users of sdl-mixer to choose not to compile it with mp3 support. 
 
This patch only has effect if the -mp3 flag is set, that is, if users wish to 
run a system without this proprietary codec installed.  Most games/etc which 
use sdl-mixer use only Ogg Vorbis or PCM audio, and with those games, a version 
of sdl-mixer compiled with -mp3 works perfectly fine. 
 
The current ebuild, which installs MP3 decoding software even when the -mp3 
flag is set, is clearly wrong behavior and is misleading to users who choose to 
set the -mp3 USE variable. 
 
 
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-04 07:09:34 UTC
So what *exactly* did you change?  If it is trivial, a patch against the ebuild
would have been easier.
Comment 5 Arc Riley 2005-11-04 07:14:58 UTC
This is all that was changed: 
 
$ 
diff /usr/portage/media-libs/sdl-mixer/sdl-mixer-1.2.6-r1.ebuild /usr/local/portage/media-libs/sdl-mixer/sdl-mixer-1.2.6-r2.ebuild 
18c18 
<       >=media-libs/smpeg-0.4.4-r1 
--- 
>       mp3? ( >=media-libs/smpeg-0.4.4-r1 ) 
 
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-04 07:44:46 UTC
...and now for the painful question.  Do you have a list of the packages in the
tree that *do* require SDL_mixer to be linked again smpeg?

I don't want to make changes in the name of "choice" that end up breaking other
packages and causing more work for myself and the rest of the games team.
Comment 7 SpanKY gentoo-dev 2005-11-04 07:59:28 UTC
if it was a real issue we would have seen it by now ... the ebuild has
been passing --disable-music-mp3 for users with USE=-mp3 for a while now

this bug is just fixing the DEPEND
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-04 08:01:23 UTC
Also, you'll need a patch for the configure scripts to make it actually allow
one to build without smpeg, so it won't use any system smpeg already on the system.

Essentially, I would say that this is well beyond the scope of what the games
team wants to undertake.  It means countless hours of work verifying each and
every game in the tree that uses SDL_mixer in any way to ensure that they do not
require this support.  If you're willing to put in the work to do this on every
game in the tree currently, then I have no problem adding this support to
SDL_mixer.  I will not, however, agree to dump this kind of a workload on my
fellow developers.

Feel free to REOPEN this with the requested information/patches.
Comment 9 SpanKY gentoo-dev 2005-11-04 08:12:01 UTC
re-opening because wolf is a tool
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-04 08:21:07 UTC
Yup.  I'm a tool.

Sorry about that.  Your explanation wasn't very good on what really needed to be
done and I didn't bother actually looking at what the ebuild was doing.  From
what I read, it sounded like we needed to *add* a way to remove mp3 support from
sdl-mixer.

Sorry about that.  Anyway, I've fixed this in CVS now.  Sorry for being such a
dense asshat.
Comment 11 Arc Riley 2005-11-04 10:14:00 UTC
Thanks.  After 8 months or so, it feels good to no longer have to patch my 
local copy everytime a version bump happens.. :-) 
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-04 10:57:18 UTC
You could have filed the bug months ago... :P