tech-pkg archive

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

Re: patch for REQUIRES

On 18. 3. 2012, at 14:24, Thomas Klausner wrote:

> On Sun, Mar 18, 2012 at 01:55:44PM +0100, Filip Hajny wrote:
>> I'd like to commit the following patch before the freeze, which I have been 
>> using locally for some time. It makes sure that libs provided in a package 
>> are not recorded in REQUIRES of the same package.
> I don't see that happening for me right now.

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 

   find; required by opt/local/bin/xmlwf
    search path=/opt/local/lib  (RUNPATH/RPATH from file opt/local/bin/xmlwf)
    trying path=/opt/local/lib/
    search path=/lib:/usr/lib:/opt/local/lib  (configuration default - 
    trying path=/lib/
    trying path=/usr/lib/ =>         /usr/lib/

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.

>> Objections?
> Yes, "works for me"…

Thanks, I'll get it committed.


Home | Main Index | Thread Index | Old Index