firefox-bin returns an error and won't start. I do not have alsa (or any other sound system) installed. Worked fine with version <= 96 $ firefox-bin XPCOMGlueLoad error for file /opt/firefox/libxul.so: libasound.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM. $ echo $? 255 Reproducible: Always # equery l firefox-bin * Searching for firefox-bin ... [IP-] [ ] www-client/firefox-bin-97.0.2:0/97 # equery u firefox-bin | grep -v l10n -alsa +ffmpeg +gmp-autoupdate -pulseaudio -wayland # emerge --info Portage 3.0.30 (python 3.10.2-final-0, default/linux/x86/17.0, gcc-11.2.0, glibc-2.33-r7, 5.4.28-gentoo-x86 i686) ================================================================= System uname: Linux-5.4.28-gentoo-x86-i686-Intel_Core_i7_9xx_-Nehalem_Core_i7,_IBRS_update-with-glibc2.33 KiB Mem: 3097512 total, 90676 free KiB Swap: 1048572 total, 1048572 free Timestamp of repository gentoo: Mon, 07 Mar 2022 20:45:01 +0000 Head commit of repository gentoo: a0ebdbbb91ad5f44aca1be190090890005f166d1 Timestamp of repository plex-overlay: Thu, 03 Mar 2022 14:21:53 +0000 Head commit of repository plex-overlay: 6d8e3bd633eb1087473ad6bafd41a060ce525edb sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 3.9.9-r1::gentoo, 3.10.2_p1::gentoo dev-lang/rust-bin: 1.58.1::gentoo dev-util/cmake: 3.22.2::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 plex-overlay location: /var/db/repos/plex-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/plex-overlay.git masters: gentoo x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=nehalem -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=nehalem -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi apache2 apng async automount bash-completion bzip2 caja cli coverart crypt curl dbus device-mapper dri dts dvb dvd dvdnav elogind encode evolution exif fame fdk ffmpeg firefox fontconfig fortran gd gdbm gnome-keyring gtk gtk3 gtkhtml hal iconv imap inotify javascript jce jpeg libglvnd libnotify libtirpc lvm2 mad mmx mp2 mp3 mp4 mpeg mpm-worker mysql nautilus ncurses nls nolvm1 nptl nsplugin ntfsprogs offensive ogg openmp pam pcre pcre16 pdo png python python3 readline ruby samba sdl seccomp server smp spell split-usr sse sse2 ssl svg taglib theora threads thumbnail tk truetype udev unicode usb v4l vim-syntax vorbis x264 x265 x86 xattr xml xvid zlib zvbi" ABI_X86="32" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
I've seen iwdevtools report alsa-lib as an unconditional dep, just didn't want to believe in that. My testing has always installed apulse or pulseaudio so haven't hit this yet. Let me try.
So alsa-lib is a mandatory requirement. Trying to remove it via patchelf --remove-needed just results in a disaster and non-working firefox bin. I wonder what's the best way to solve this. Remove "alsa" USE flag and make pulseaudio/apulse mandatory requirements via "pulseaudio? || ( 1 2 )", or make "apulse" USE flag and always depend on alsa-lib. The first option is more widely used in the tree, but since we use patchelf based on USE flag, switching between pulseaudio/apulse is potentially not-detectable.
I emerged alsa-lib and can confirm Firefox starts now, thanks
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a394973cbb5fbacd2699cc49b13a57505c419f2b commit a394973cbb5fbacd2699cc49b13a57505c419f2b Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-03-09 13:03:18 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-03-09 17:19:51 +0000 www-client/firefox-bin: alsa-lib is an unconditional dep - +alsa -pulseaudio should still pull apulse normally, -alsa -pulseaudio won't pull any sound daemons, but alsa-lib is now a mandatory requirement nevertheless. Closes: https://bugs.gentoo.org/834757 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...x-bin-98.0.ebuild => firefox-bin-98.0-r1.ebuild} | 14 ++++---------- www-client/firefox-bin/metadata.xml | 21 +++++++++++---------- 2 files changed, 15 insertions(+), 20 deletions(-)
Just wanted to thank juippis for both the sound decision (ha!) and the exemplary git comment. Sometimes I'm left asking "Why?" or "OK but what does that actually mean for me trying to decide what to do?". This one answered all that and the only reason I needed to open the bug was curiosity as to how it was discovered/reported. And while I'm at it, thanks for all the effort put into making +alsa -pulseaudio work so smoothly. It'd be easy enough to just say "It's a binary, you get what they ship." and be done with it. I'm a beneficiary of all that extra work and remembering the early days of broken upstream alsa-only support, definitely appreciate how incredibly smooth (at least from the user end) things have been lately! =:^)
Glad to hear! A lot of credit for these ebuilds goes to their original author who is of course our Whissi.
Yes, always happy to see more and verbose git commit messages -- they matter!