[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rpath problem



On Sun, Aug 14, 2005 at 10:00:49PM +0800, Paul Wise wrote:
> Hi all,

> I'm packaging lufis[1], which will allow me to package captive ntfs, and
> I've come across an issue with lintian/linda complaining about -rpath

> Basically, lufis uses shared libraries from lufs, located
> in /usr/lib/lufs/ on debian (from the lufs-utils package). When I build
> the upstream source, the lufis binary doesn't know where to find these
> shared libraries. In order to tell it where to look, I can either use a
> wrapper script (and set LD_LIBRARY_PATH), or send the -rpath option to
> the linker.

> Lintian/linda complain with the following messages:

> W: lufis: binary-or-shlib-defines-rpath ./usr/bin/lufis /usr/lib/lufs/

> I'm not sure what to do here[2], should I add an override for this, or
> file a bug on lufs-utils?

I would vote for an override, since you're already linking against lufs's
internal shared libraries, so rpathing yourself is no risker than the current
dependancy on them anyway. You can either establish a gentleman's agreement
with the lufs maintainer to not move the libs except on soname change, or --
now that they are user by something other than lufs -- see about getting lufs's
shared objects moved into a location where the normal Debian protections and
promises apply, and you don't need rpath to find the libs.

In short, rpathing breaks the ability of ld-linux.so to pick the best matching
soname by limiting you to searching for that library in that path. Since you're
linking against libraries that ld-linux.so can't see, you have to do
_something_ to produce this limitation.

Your other choise is an LD_LIBRARY_PATH-setting wrapper script, like mozilla
uses. However, I suspect your library usage is more tightly coupled than that,
so it would be more effort than is neccessary for the payout.

-- 
-----------------------------------------------------------
Paul "TBBle" Hampson, MCSE
8th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
Paul.Hampson@Anu.edu.au

"No survivors? Then where do the stories come from I wonder?"
-- Capt. Jack Sparrow, "Pirates of the Caribbean"

License: http://creativecommons.org/licenses/by/2.1/au/
-----------------------------------------------------------

Attachment: pgpKNtPpJAD19.pgp
Description: PGP signature


Reply to: