Summary: | www-client/firefox-52.9.0: impossible to build with apulse | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey 'L29Ah' Alirzaev <zl29ah> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bircoph |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/15152 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergey 'L29Ah' Alirzaev
2018-09-07 22:36:59 UTC
By the way, with USE=-pulseaudio even though libasound.so is loaded by firefox (as seen in strace), it doesn't try producing sounds with it. (In reply to Sergey 'L29Ah' Alirzaev from comment #1) > By the way, with USE=-pulseaudio even though libasound.so is loaded by > firefox (as seen in strace), it doesn't try producing sounds with it. Okay, nvm, the sound works in youtube at least. (In reply to Sergey 'L29Ah' Alirzaev from comment #2) > Okay, nvm, the sound works in youtube at least. I understand this as "report is invalid, it works for me". If that's wrong, please re-open. But please focus on next ESR version (firefox-60.2.0), 52.x has reached EOL since 3 days. The comments about working alsa have nothing to do with inability to build it w/ apulse. Dependency on media-sound/pulseaudio was motivated by media-sound/apulse not installing PulseAudio headers. This has changed in >=media-sound/apulse-0.1.12 which has "pa-headers" USE flag (enabled by default): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54cd339b91bc2008c8d21797a5f7e1daac12b160 Make this change in DEPEND: - pulseaudio? ( media-sound/pulseaudio ) + pulseaudio? ( || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12[pa-headers] + ) ) ... And check if building www-client/firefox with >=media-sound/apulse-0.1.12[pa-headers] will be successful. I was trying to build against media-sound/apulse[pa-headers] and it failed in configure complaining about pulseaudio's inavailability. 0:08.25 checking for libpulse... no 0:08.25 ERROR: Package libpulse was not found in the pkg-config search path. 0:08.25 ERROR: Perhaps you should add the directory containing `libpulse.pc' 0:08.25 ERROR: to the PKG_CONFIG_PATH environment variable 0:08.25 ERROR: No package 'libpulse' found 0:08.30 *** Fix above errors and then restart with\ 0:08.30 "/usr/bin/gmake -f client.mk build" 0:08.30 gmake: *** [client.mk:127: configure] Error 1 https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/apulse/pressureaudio.nix creates a few .pc files, i'll have a try doing the same. Sergey, I'll try to add libpulse.pc file to apulse this weekend. (In reply to Andrew Savchenko from comment #9) > Sergey, I'll try to add libpulse.pc file to apulse this weekend. Done! See apulse-0.12-r1[sdk]. In SDK mode apulse attempts to replace pulseaudio: headers and pkg-config files are provided, and libraries are installed in the same paths (/usr/$(get_libdir) instead of /usr/$(get_libdir)/apulse). This way the apulse wrapper script is no longer needed. I tested it as binary replacement with firefox-bin and steam — works fine with both. Build with apulse[sdk] was tested with espeak and sox, the latter needs small patching to build and _sometimes_ fails at runtime :/. Can't test with firefox right now, since I have unrelated build problems with rust. Please test if firefox builds and works with apulse[sdk]. You need to remove apulse symlinks generation from pkg_preinst(), though, because in SDK mode library paths are standard. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7914727703f77d6258e9098e9b154a39cddc49c5 commit 7914727703f77d6258e9098e9b154a39cddc49c5 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2020-03-27 22:02:12 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-03-30 11:45:08 +0000 www-client/firefox: allow building with >=media-sound/apulse-0.1.12-r4[sdk] Closes: https://bugs.gentoo.org/665470 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/firefox-74.0-r2.ebuild | 826 ++++++++++++++++++++++++++++++ 1 file changed, 826 insertions(+) |