xlibs hack

Guillem Jover guillem@debian.org
Tue, 17 Aug 2004 00:10:25 +0200


On Mon, Aug 16, 2004 at 06:29:59PM +0200, Robert Millan wrote:
> On Mon, Aug 16, 2004 at 07:41:00AM +0200, Guillem Jover wrote:
> > On Mon, Aug 16, 2004 at 05:14:19AM +0200, Robert Millan wrote:
> > > The following hack prevents common "missing -lfuck" breakage when linking
> > > with xlibs that are only in /usr/X11R6/lib.
> > 
> > That should be debugged properly, is this a bug on the missing
> > script, or a worst one in the dynamic linker?
> 
> AFAIK it's not a bug, but a "feature" :)

I doubt it. :>

> Well actualy I'm not sure, but this problem used to happen on GNU/Hurd too.
> Maybe it's just the xfree86 build system not using the right flags for linking
> libraries in gnu.cf (and this is something I'm not willing to trace).

The problem with the Hurd is the /usr symlink AFAIK.

> > > Since xlibs will eventualy move into a sane directory instead of that shitty
> > > X11R6 thing, i made up a hack to workaround it.  I'll probably merge it to
> > > our hacked xfree86 package.  Please use this instead of adding lots of hacks
> > > here and there to packages that need extra -lfuck flags.
> > 
> > Well depending on the cause it may be acceptable.
> 
> Since I only found this problem with /usr/FOO/lib dirs, and X11 is the only
> package that uses this stupid path, I don't think we'll ever have problems
> with other packages in Debian because of this "feature".

It should respect anything put in /etc/ld.so.conf. And this _may_ come
again once Debian switches to multiarch. =)

regards,
guillem