tech-pkg archive

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

Re: patch for REQUIRES



On Sun, Mar 18, 2012 at 03:44:57PM +0100, Filip Hajny wrote:
> I should have stressed out this is only the case if the said lib is normally 
> present elsewhere in the default search path, which is not the case on NetBSD 
> with libexpat. See partial output of ldd here (on SunOS):
> 
> [root@pkgbuild /tmp/pkgsrc/textproc/expat/work/.destdir]# ldd -s 
> opt/local/bin/xmlwf 
> 
>    find object=libexpat.so.1; required by opt/local/bin/xmlwf
>     search path=/opt/local/lib  (RUNPATH/RPATH from file opt/local/bin/xmlwf)
>     trying path=/opt/local/lib/libexpat.so.1
>     search path=/lib:/usr/lib:/opt/local/lib  (configuration default - 
> /var/ld/ld.config)
>     trying path=/lib/libexpat.so.1
>     trying path=/usr/lib/libexpat.so.1
>         libexpat.so.1 =>         /usr/lib/libexpat.so.1
> 
> So the natural outcome of this is that REQUIRES records libs that are not 
> normally used/linked, just because we're in the stage-install phase still.
>
> I understand now this doesn't happen on NetBSD at all, because (correct me if 
> I'm wrong) NetBSD doesn't have a concept of a default run-time linker search 
> path like crle on Solaris.

So can you give Solaris ldd some flags to suppress looking in the default 
search path?
Or would this break even worse?
 
> >> Objections?
> > 
> > Yes, "works for me"…
> 
> Thanks, I'll get it committed.

Actually, I meant that I object since "it works for me" as-is :)
 Thomas


Home | Main Index | Thread Index | Old Index