Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297013 - media-sound/mpg321-0.2.10.6 refuses to play sound without "-o alsa" even though USE=alsa
Summary: media-sound/mpg321-0.2.10.6 refuses to play sound without "-o alsa" even thou...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-15 10:21 UTC by Erik
Modified: 2009-12-15 12:01 UTC (History)
0 users

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 Erik 2009-12-15 10:21:22 UTC
media-sound/mpg321-0.2.10.6 refuses to play a sound without "-o alsa" on the command line even though both it and media-libs/libao-0.8.8 are built with USE=alsa.

Reproducible: Always

Steps to Reproduce:
1.mpg321 sound.pm3

Actual Results:  
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Directory: //
Playing MPEG stream from sound.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Can't find a suitable libao driver. (Is device in use?)

Expected Results:  
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from sound.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo

[0:43] Decoding of sound.mp3 finished.


This is really stupid. When I have already given alsa as USE-flags to libao and mpg321, why can it not accept that it should use alsa without explicit command line parameters?
Comment 1 Erik 2009-12-15 10:40:35 UTC
I just tried to unpack mpg321 from distfiles, executed ./configure and make, and then I could play a file without giving alsa on the command line. So it really looks like a pure Gentoo bug!
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-12-15 10:58:36 UTC
So, 

Try removing these from the ebuild,

local myao=oss
use alsa && myao=alsa09
--with-default-audio=${myao}

And report back if it's working then. The ./configure kludge might be broken.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-12-15 10:59:14 UTC
Btw, mpg321 has been dead since 2006 when mpg123 became LGPL, so it's also unrecommended player. Just saying.
Comment 4 Erik 2009-12-15 11:08:37 UTC
(In reply to comment #2)
> So, 
> 
> Try removing these from the ebuild,
> 
> local myao=oss
> use alsa && myao=alsa09
> --with-default-audio=${myao}
> 
> And report back if it's working then. The ./configure kludge might be broken.

I did not try to modify the ebuild, but I tried to execute my own build with -o alsa09 and it failed with the same error as the Gentoo build. So it is obviously the alsa09 thing that fails. I have no idea what alsa09 means and why it is used instead of alsa in the ebuild.

I suppose that I will just use mpg123 instead then. Will mpg321 be removed soon? I tried to follow its homepage link on fresmeat.net, but it was unreachable. and emerge -s mpg321 shows a link to a Debian package page as website.
Comment 5 Erik 2009-12-15 11:22:13 UTC
Indeed media-sound/mpg123-1.9.2 can play files without explicitly telling it on the command line to use alsa. I will just use it instead of mpg321.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-12-15 12:01:55 UTC
+  15 Dec 2009; Samuli Suominen <ssuominen@gentoo.org>                                                                                           
+  mpg321-0.2.10.6.ebuild:                                                                                                                       
+  Remove --with-default-audio so mpg321 will use libao default instead wrt                                                                      
+  #297013.