Subject: Re: [grant@NetBSD.org: CVS commit: pkgsrc/mk]
To: None <tech-pkg@NetBSD.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 01/07/2004 06:50:17
On Tue, Jan 06, 2004 at 11:18:06AM -0500, Jan Schaumann wrote:

> > could someone please verify that this change works on Darwin 7.x? if
> > so, I'll request it be pulled up to the 2003Q4 branch.
> 
> Got an example package that would test this?  That way, I wouldn't have
> to understand what you're doing. ;-)

well, you don't even need to build anything.. all I need to know is
whether the output of this is sane:

(otool -L /usr/pkg/bin/perl /usr/pkg/bin/c2ph 2>/dev/null || true) | \
awk '/compatibility version/ { print $1 }' | sort -u

what we want is the shlibs that the listed files are linked against,
but ignoring files which aren't shared objects. previously, awk was
printing $1 anyway (the name with a : appended, because of the "error"
returned by otool), which was wrong.

grant.