NetBSD Problem Report #50306

From o.vd.linden@quicknet.nl  Mon Oct  5 19:29:50 2015
Return-Path: <o.vd.linden@quicknet.nl>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A8524A57FE
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Oct 2015 19:29:50 +0000 (UTC)
Message-Id: <20151005182932.GA17076@sheep>
Date: Mon, 5 Oct 2015 20:29:32 +0200
From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Subject: oss option for firefox

>Number:         50306
>Category:       pkg
>Synopsis:       oss option for firefox not available
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 05 19:30:00 +0000 2015
>Closed-Date:    Tue Jan 05 11:44:08 +0000 2016
>Last-Modified:  Tue Jan 05 11:44:08 +0000 2016
>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"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Mon, 05 Oct 2015 19:56:48 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Thu, 31 Dec 2015 07:27:19 +0000
State-Changed-Why:
OSS support are back, and pulseaudio does not consume CPU now.


From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/50306 oss option for firefox not available
Date: Tue, 5 Jan 2016 06:48:52 +0100

 Works fine now. Thanks. Close this one.

 Regards,

 Onno

State-Changed-From-To: feedback->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Tue, 05 Jan 2016 12:44:08 +0100
State-Changed-Why:
Ryo Onodera committed the fix http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/firefox/options.mk.diff?r1=1.27&r2=1.28&f=h
Onno van der Linden reported that it works now.

Thank you


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.