pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/50306: oss option for firefox
>Number: 50306
>Category: pkg
>Synopsis: oss option for firefox not available
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 05 19:30:00 +0000 2015
>Originator: Onno van der Linden
>Release: NetBSD 7.99.21
>Organization:
None whatsoever
>Environment:
System: NetBSD sheep 7.99.21 NetBSD 7.99.21 (SHEEP) #1: Fri Aug 21 17:58:41 MEST 2015 onno@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
Architecture: i386
Machine: i386
>Description:
html5 sound output in firefox with the pulseaudio default eats a lot of CPU cycles and very often results in "audiostream underrun" and stuttering of the sound on my oldish Asus P4B533 with Pentium 4 @ 2.5GHz
>How-To-Repeat:
use firefox with pulseaudio on a html5 video on my system
>Fix:
yes, tuning pulseaudio is an option but that will take some time.
The quick fix/workaround is to use the code that's already available within
the patches of the package by adding a couple of lines to options.mk
In my /etc/mk.conf I have:
PKG_OPTIONS.firefox=-pulseaudio oss
And after compiling the firefox package I now have a somewhat
decent sound with html5 videos. No, not perfect because
sometimes when switching videos the new video plays without
sound.
--- /usr/pkgsrc/www/firefox/options.mk.orig 2015-09-18 22:26:06.000000000 +0200
+++ /usr/pkgsrc/www/firefox/options.mk 2015-10-04 17:31:57.000000000 +0200
@@ -2,7 +2,7 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
-PKG_SUPPORTED_OPTIONS+= alsa debug debug-info mozilla-jemalloc gnome pulseaudio webrtc
+PKG_SUPPORTED_OPTIONS+= alsa debug debug-info mozilla-jemalloc gnome oss pulseaudio webrtc
PLIST_VARS+= gnome jemalloc debug
.if ${OPSYS} == "Linux"
@@ -25,6 +25,12 @@
CONFIGURE_ARGS+= --disable-alsa
.endif
+.if !empty(PKG_OPTIONS:Moss)
+CONFIGURE_ARGS+= --with-oss
+.else
+CONFIGURE_ARGS+= --without-oss
+.endif
+
.if !empty(PKG_OPTIONS:Mgnome)
.include "../../devel/libgnomeui/buildlink3.mk"
#.include "../../sysutils/gnome-vfs/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index