On Sun, Feb 17, 2008 at 08:09:06PM +0200, Antti Harri wrote:
> Fix attached, by Johan Kiviniemi.
>
> Index: check-lib-depends
> ===================================================================
> RCS file: /cvs/ports/infrastructure/package/check-lib-depends,v
> retrieving revision 1.13
> diff -u -r1.13 check-lib-depends
> --- check-lib-depends 27 Oct 2007 22:15:28 -0000 1.13
> +++ check-lib-depends 17 Feb 2008 17:57:53 -0000
> @@ -397,9 +397,9 @@
> my $n = shellquote($source->retrieve($item));
> my $cmd;
> if ($main::opt_o) {
> - open($cmd, "ldd -f 'NEEDED lib%o.so.%m.%n\\n' $n|");
> + open($cmd, "-|", "ldd", "-f", "NEEDED lib%o.so.%m.%n\n", $n);
> } else {
> - open($cmd, "objdump -p $n 2>/dev/null|");
> + open($cmd, "-|", "objdump", "-p", $n);
> }
> my @l;
> while(my $line = <$cmd>) {
Unfortunately, this fix is incomplete. Notice the 2>/dev/null ?
That's the reason why I haven't yet fixed it properly on my side...