Subject: Re: REQUIRES= is broken with ldd having non-NetBSD-like output
To: Jeremy C. Reed <reed@reedmedia.net>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 02/10/2005 12:39:02
On Thu, Feb 10, 2005 at 04:17:04AM -0800, Jeremy C. Reed wrote:
> > You could always check that the second field is "=>" - I think I just
> > put the number of fields check in to make sure we only got the shared
> > lib entries.
> 
> Okay, that is easier.
> 
> New Linux systems still have problem with strange linux-gate.so.1 entry
> that has no file associated but still has =>.
> 
> The following worked under NetBSD and Linux for me:
> 
>  awk '$2 == "=>" && $3 ~ "/" { print $3}'
> 
> Is it okay if I switch to it?

Sure.
 
> Anyone want to test this with ldd on other platforms?

Right now, PROVIDES and REQUIRES are, I think, for informative
purposes only, so I'm not sure it's that big a deal.

Regards,
Alistair