Bug 161886 - soffice should not set LD_LIBRARY_PATH
soffice should not set LD_LIBRARY_PATH
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: openoffice.org (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Caolan McNamara
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-28 01:06 EDT by dann
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.9.115-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-07 16:13:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description dann 2005-06-28 01:06:08 EDT
Description of problem:
The /usr/lib/openoffice.org1.9.104/program/soffice script sets LD_LIBRARY_PATH
before invoking the soffice.bin binary. 
soffice.bin does not need the LD_LIBRARY_PATH, running
/usr/lib/openoffice.org1.9.104/program/soffice.bin from the shell works.

This causes lots lots of extra sytems calls during start up in order to 
find shared libraries. This can be easily verified by changing the line in
/usr/lib/openoffice.org1.9.104/program/soffice that reads
"$sd_prog/$sd_binary" "$@"
to
strace -o /tmp/soffice.out "$sd_prog/$sd_binary" "$@"

The number of lines in soffice.out decreases from 34000 to 9400 if
LD_LIBRARY_PATH is set to be empty ... 

This should impact the startup time, but I don't know how to measure that.

Version-Release number of selected component (if applicable):
openoffice.org-1.9.104-2
Comment 1 Caolan McNamara 2005-06-28 04:26:44 EDT
At the moment one or two libraries, e.g. libsndfile and libportaudio do not have
an rpath of $ORIGIN yet and still require the LD_LIBRARY_PATH. But yes, it's
best to get rid of LD_LIBRARY_PATH
Comment 2 Caolan McNamara 2005-07-05 03:54:26 EDT
Will sort out all remaining LD_LIBRARY_PATH requiring libraries and do this for
>= 1.9.114-2
Comment 3 Caolan McNamara 2005-07-07 16:13:58 EDT
done in 1.9.115-1 rawhide

Note You need to log in before you can comment on or make changes to this bug.