rpath problems with texlive
Hi all!
>From lintian:
W: texlive-base-bin: binary-or-shlib-defines-rpath ./usr/bin/ebb /tmp/buildd/texlive-bin-2007/build/source/inst/lib
and it is true, the build log shows many calls to -rpath ...
(see http://wiki.debian.org/RpathIssue)
Now the question: there are several solutions to this:
>From the lintian description:
Info: The binary or shared library sets RPATH. This overrides the normal
library search path, possibly interfering with local policy and causing
problems for multilib, among other issues.
.
The only time a binary or shared library in a Debian package should set
RPATH is if it is linked to private shared libraries in the same package.
In that case, place those private shared libraries in
<tt>/usr/lib/<i>package</i></tt>. Libraries used by binaries in other
packages should be placed in <tt>/lib</tt> or <tt>/usr/lib</tt> as
appropriate, with a proper SONAME, in which case RPATH is unncessary.
.
To fix this problem, look for link lines like:
gcc test.o -o test -Wl,--rpath,/usr/local/lib
or
gcc test.o -o test -R/usr/local/lib
and remove the <tt>-Wl,--rpath</tt> or <t>-R</t> argument. You can also
use the chrpath utility to remove the RPATH.
So we can
- hack the ac/libtool code (uaaahhhhhhhhhhh panic!)
- call chrpath for all the binaries at the end ...
- ignore the lintian warning
Any suggestions? I would opt for chrpath ..
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Università di Siena
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
QUOYNESS (n.)
The hatefulness of words like 'relionus' and 'easiephit'.
--- Douglas Adams, The Meaning of Liff
Reply to: