Subject: Re: REQUIRES= is broken with ldd having non-NetBSD-like output
To: Alistair Crooks <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 02/10/2005 04:17:04
> 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 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?

Anyone want to test this with ldd on other platforms?

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links