Comment 13 for bug 63676

Revision history for this message
Csigaa (csigaa-deactivatedaccount) wrote :

Prevent setting an $LD_LIBRARY_PATH
[quote=/usr/lib/openoffice/program/soffice]
# set search path for shared libraries
add_moz_lib=
for moz_lib_path in $MOZILLA_LIBRARY_PATH /usr/lib /usr/lib/mozilla /usr/lib/mozilla-firefox /usr/lib/mozilla-
thunderbird /opt/mozilla/lib /opt/MozillaFirefox/lib /opt/MozillaThunderbird/lib; do
        test -f $moz_lib_path/libnss3.so && add_moz_lib=":$moz_lib_path" && break;
done
case $sd_platform in

[...]

  *)
# # this is a temporary hack until we can live with the default search paths
# if [ $LD_LIBRARY_PATH ]; then
# SYSTEM_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# export SYSTEM_LD_LIBRARY_PATH
# LD_LIBRARY_PATH="$sd_prog$add_moz_lib":$LD_LIBRARY_PATH
# else
# LD_LIBRARY_PATH="$sd_prog$add_moz_lib"
# fi
# export LD_LIBRARY_PATH
    ;;
esac

[...]

# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/javaldx" ] ; then
    java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
    if [ "$java_ld_library_path" != "" ] ; then
        case $sd_platform in

[...]

            *)
# LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
                ;;
        esac
    fi
fi[/quote]

Nasty workaround, but it works for me.