files/firefox-bin.sh (installed to /usr/bin/firefox-bin) contains the following line: export LD_LIBRARY_PATH="${APULSELIB_DIR:${APULSELIB_DIR}:}${MOZILLA_FIVE_HOME}" The intent appears to have been to insert $APULSELIB_DIR at the front of the LD_LIBRARY_PATH directory list if the former is set, but ${NAME:X:Y} is a substring operation in bash, so it sees /usr/lib64/apulse where it expects a numeric value and generates the error: /usr/bin/firefox-bin: line 93: APULSELIB_DIR: /usr/lib64/apulse: syntax error: operand expected (error token is "/usr/lib64/apulse") The correct syntax is (note the "+"): export LD_LIBRARY_PATH="${APULSELIB_DIR:+${APULSELIB_DIR}:}${MOZILLA_FIVE_HOME}" That said, firefox-bin seems to successfully load /usr/lib64/apulse/libpulse.so.0 even without the modification to LD_LIBRARY_PATH, so perhaps it's unneeded?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2725248a9adcbbdd86674c240bb5d8cb0064896b commit 2725248a9adcbbdd86674c240bb5d8cb0064896b Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-04-01 21:11:57 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-04-01 21:14:29 +0000 www-client/firefox-bin: fix invalid expansion in wrapper Closes: https://bugs.gentoo.org/715746 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox-bin/files/firefox-bin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)