Bug 213964 - www/firefox make sound options mutually exclusive
Summary: www/firefox make sound options mutually exclusive
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-01 04:08 UTC by tigersharke
Modified: 2016-11-24 11:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tigersharke 2016-11-01 04:08:36 UTC
When Firefox is built with both alsa and pulseaudio options enabled, although it successfully builds there is no audio produced via Firefox.  This is an issue with some type of conflict between alsa and pulseaudio.  If alsa is selected but pulseaudio is not, audio output from Firefox works as expected.

I suggest a change from checkboxes in the audio section to the mutually exclusive radio buttons. I believe this would be a modification to Makefile.options

from

OPTIONS_MULTI+=         AUDIO
OPTIONS_MULTI_AUDIO=    ALSA PULSEAUDIO

to

OPTIONS_SINGLE+=         AUDIO
OPTIONS_SINGLE_AUDIO=    ALSA PULSEAUDIO
Comment 1 Jan Beich freebsd_committer freebsd_triage 2016-11-10 15:34:45 UTC
(In reply to tigersharke from comment #0)
> although it successfully builds there is no audio produced via Firefox. 

Try updating past bug 211684 fix.

> conflict between alsa and pulseaudio.

Firefox just prefers PulseAudio if already installed by checking if dlopen() succeeds. ALSA requires hacks on FreeBSD and even on Linux is poorly maintained.

https://bugzilla.mozilla.org/show_bug.cgi?id=1247056

> If alsa is selected but pulseaudio is not, audio output from Firefox works as expected.

The third (hidden) option uses OSS directly if you deinstall alsa-lib after build. SNDIO (see bug 212028) is another option.

> I suggest a change from checkboxes in the audio section to the mutually
> exclusive radio buttons. I believe this would be a modification to
> Makefile.options

Which one would be the default? I'm inclined to turn off ALSA. ;)