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

Re: Absolute vs. relative links.



On Sat, Jan 04, 2003 at 12:43:02PM -0800, Jeff Bailey wrote:
> In debian/packages.d/libc-dev.mk:
> 
> ifneq ($(libdir),/lib)
> # Make links absolute, not relative
>         cd $(tmpdir)/$@$(libdir); \
>         for link in `find . -name '*.so' -type l`; do \
>           linksrc=$$(readlink $$link | sed 's%../..%%'); \
>           rm -f $$link; ln -sf $$linksrc $$link; done 
> endif
> 
> This seems to go against section 11.5 of policy, and is also annoying me
> when I'm trying to have my hurd-i386 cross-compiler pick up the right
> libraries.
> 
> Anyone know why it's here?

Section 11.5 of policy :).  That's the .so links.  They're in /usr/lib,
and they're pointing to /lib.  Notice that we make them absolute by
changing "../.." to ""; that works because they're in the form
"../../lib/libm.so.6".

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: