Firefox 53 (in Sid) requires Pulse Audio for sound

Here you can discuss every aspect of Debian. Note: not for support requests!

Re: Firefox nightly requires Pulse Audio

Postby Segfault » 2017-03-09 13:19

Not FUD. It merely means package maintainers managed to build a working copy of FF without PA - this time.
Segfault
 
Posts: 500
Joined: 2005-09-24 12:24

Re: Firefox nightly requires Pulse Audio

Postby Head_on_a_Stick » 2017-03-09 19:07

^ From the Arch bug report:
heftig wrote:The coming sandbox breaks ALSA. I'll build with --enable-alsa until Firefox 54, at which point libpulse will be a hard depend.

I'm using GNOME anyway in my Arch box so... :mrgreen:
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6672
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Firefox nightly requires Pulse Audio

Postby sjukfan » 2017-03-10 10:48

This annoys me a lot. For a while there I thought they were going to go the right way and let people use it without sound if they wanted but no... <sigh> I guess I'll have to compile it myself then.

For those who CBA to compile themselves this might be an alternative PulseAudio as a minimal unintrusive dumb pipe to ALSA. Hopefully it's not too intrusive and you can run everything but Firefox in ALSA.
Buster amd64, Core 2 Quad Q9550
Stretch amd64, Core 2 Quad Q9400
Sid ppc, PowerPC 7447a
Sid ppc64, PowerPC 970FX
User avatar
sjukfan
 
Posts: 369
Joined: 2010-03-01 19:39

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-10 22:03

It turns out the Sid Debian Firefox source files have an internal mechanism to adjust the build-depends and rules file for backports. You just have to get the 94 Sid source files (apt-get source), increment the changelog (dch -i) and make sure the release in the first line of the changelog is "jessie-backports", regenerate new debian.tar.xz and .dsc files (debuild -S -us -uc), delete the existing extracted source folder, and then re-extract the tweaked version with "dpkg-source -x <your-tweaked-version>.dsc". Then build with "debuild -uc -us". I think it has some internal code to automatically use all your CPU cores for the build, but haven't tested that locally.

You can add the alsa support option to debian/mozconfig.in before the source files are regenerated, if you wish.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-17 23:26

Has anyone tried apulse instead of pulseaudio to see if it fools Firefox 52?

https://bbs.archlinux.org/viewtopic.php?id=187258
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

Re: Firefox nightly requires Pulse Audio

Postby Head_on_a_Stick » 2017-03-18 00:40

stevepusser wrote:Has anyone tried apulse instead of pulseaudio to see if it fools Firefox 52?

https://bbs.archlinux.org/viewtopic.php?id=187258

Code: Select all
Helium: ~/git/apulse/build $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
..                           
-- Checking for modules 'glib-2.0;alsa'
--   No package 'alsa' found
CMake Error at /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:588 (_pkg_check_modules_internal)
  CMakeLists.txt:8 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/empty/git/apulse/build/CMakeFiles/CMakeOutput.log".

https://gist.github.com/Head-on-a-Stick ... 421e137c7a

:(

I can confirm that firefox-esr version 52 (from experimental) will *not* play audio without PulseAudio.

However, Debian has updated version 45 and it may be that this is chosen for the stable release (I hope).
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6672
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-18 05:47

The ALSA dev package is libasound2-dev. There's also a PPA that apulse can be ported from...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

Re: Firefox nightly requires Pulse Audio

Postby Head_on_a_Stick » 2017-03-18 09:30

stevepusser wrote:The ALSA dev package is libasound2-dev

Thank you very much!

I have now compiled and installed apulse in my Debian stretch system and I can confirm that firefox-esr version 52.0.1 will produce sound without PulseAudio installed.

This installation is booting with runit rather than systemd so I will have to try one of my systemd boxes as well.

There's also a PPA that apulse can be ported from...

Thank you again, I will see if I can package this myself :idea:

EDIT: https://bugs.debian.org/cgi-bin/bugrepo ... bug=775098 :)
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6672
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Firefox nightly requires Pulse Audio

Postby Head_on_a_Stick » 2017-03-18 11:32

Head_on_a_Stick wrote:
There's also a PPA that apulse can be ported from...

Thank you again, I will see if I can package this myself

The Ubuntu .deb installs and works in my stretch system.

I have rebuilt the .deb in stretch, just in case:

https://drive.google.com/open?id=0BxKgG ... XhIUGRqc28
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6672
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-18 16:11

I see the developer for apulse, the same guy who created the freshplayer wrapper for pepperflash, is again actively developing it since Firefox started demanding pulseaudio. I'll try building the latest 1.9 release for my Jessie multimedia OBS repo and for the MX repos--just reusing the debian folder from the PPA's 1.6.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

Re: Firefox nightly requires Pulse Audio

Postby andoru » 2017-03-20 23:13

It seems I still have sound in FF (52.0.1, have a mozilla-built package in my ~/bin/ folder) on an ALSA-only Sid install... weird. Not sure how much this is going to last though. I also maintain someone else's PC with a similar installation, and they did have sound problems after updating FF. Fixed it with apulse, thankfully, and I hope we'll be able to circumvent this disastrous decision with it in the future.
After reading the bugzilla thread previously mentioned (https://bugzilla.mozilla.org/show_bug.cgi?id=1345661) I find their reason to stick with PulseAudio quite flaky, like they're desperate for PA ****, so much they start worshipping it. Also that Anthony Jones is a downright patronising wanker.
Someone even suggested moving to different frameworks, like SDL2 sound, or OpenAL, but they didn't even bother to consider that.
I support Universal Basic Income, and so should you, here's why. Another reason why.
Commonly asked questions about UBI
Spread the word!
andoru
 
Posts: 236
Joined: 2014-03-14 16:59

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-21 02:30

If any Jessie users want a Debian repo with apulse, I've added to my multimedia+ repository: viewtopic.php?f=6&t=127574&p=610702#p610702
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

Re: Firefox nightly requires Pulse Audio

Postby Head_on_a_Stick » 2017-03-21 07:06

andoru wrote:It seems I still have sound in FF (52.0.1, have a mozilla-built package in my ~/bin/ folder) on an ALSA-only Sid install... weird.

Try firefox-esr from experimental, that is the version I am using in my stretch system (I can't stand old browsers) and that is the version that has no sound without PA (unless apulse is installed).

https://packages.debian.org/experimental/firefox-esr

@stevepusser, thank you very much! :)
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6672
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Firefox nightly requires Pulse Audio

Postby TonyT » 2017-03-21 11:52

I ran into this problem yesterday after upgrading FF to 52.01 from 51.01. In my research I read that the Release ESD version still has also support. Not sure about beta or other ESD versions. I rolled back to 51.01 for now rather than install PA. I'm running Stretch and MATE, installed piece by piece rather than selecting anything during install. I'd like to move to the beta or experimental versions but don't want PA.
TonyT
 
Posts: 525
Joined: 2006-09-04 11:57

Re: Firefox nightly requires Pulse Audio

Postby stevepusser » 2017-03-21 17:15

TonyT wrote:I ran into this problem yesterday after upgrading FF to 52.01 from 51.01. In my research I read that the Release ESD version still has also support. Not sure about beta or other ESD versions. I rolled back to 51.01 for now rather than install PA. I'm running Stretch and MATE, installed piece by piece rather than selecting anything during install. I'd like to move to the beta or experimental versions but don't want PA.


Let me get this straight...you'd rather use a browser version with known security flaws than use pulseaudio?

Have you considered apulse as an alternative to pulseaudio?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8903
Joined: 2009-10-06 05:53

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable