Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138811

Summary: mozilla-firefox-bin should use OSS emulation given specific use flags
Product: Gentoo Linux Reporter: Boky <verynotbad>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Boky 2006-07-02 00:18:37 UTC
It is quite annoying that each time another version of firefox-bin is installed, I have to manually edit starter files and add aoss(32), artsdsp(32) or esddsp(32).

Since most modern systems do not use OSS anymore but some plugins (namely Flash) depends on OSS, you get no sound unless you run the binaries with former wrappers.

Solution:
- add use tags "arts", "alsa" and "esd" to firefox-bin (and other related mozilla-*-bin packages)
- patch the "mozilla-lanucher" to call the binary with given wrapper
- use the 32-bit versions when installing on 64-bin system.

In my case (AMD64, firefox 1.5.0.4) I had to add the following to mozilla-launcher:
line 447: MOZ_NO_REMOTE=1 /usr/bin/aoss32 "$mozbin" "$@" &
line 450: /usr/bin/aoss32 "$mozbin" "$@" &
line 589: /usr/bin/aoss32 $mozbin -register || echo "E: Registration process exited with status: $?" >&2

All this can be easily acomplished with a simple sed script on ebuild install.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-02 01:06:23 UTC

*** This bug has been marked as a duplicate of 131237 ***