Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715746 - www-client/firefox-bin - APULSELIB_DIR: /usr/lib64/apulse: syntax error: operand expected (error token is "/usr/lib64/apulse")
Summary: www-client/firefox-bin - APULSELIB_DIR: /usr/lib64/apulse: syntax error: oper...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-01 12:13 UTC by Andrew Church
Modified: 2020-04-01 21:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2020-04-01 12:13:59 UTC
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?
Comment 1 Larry the Git Cow gentoo-dev 2020-04-01 21:14:39 UTC
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(-)