/usr/ports symlink + make search

Tom Alsberg alsbergt at cs.huji.ac.il
Tue Jun 15 14:24:26 GMT 2004

On Tue, Jun 15, 2004 at 12:31:19PM +0200, Roman Neuhauser wrote:
> <snip />
> Is that really a regression? It seems to work here, and the check was
> certainly present in the previous version (although not in the same form,
> see below):

That other form really does seem more correct (it does substitution to
get the correct working directory).

> What does make search print for you with this patch applied?
> <snip />
> +           print top; print there, exit; \

Which version of awk do you have there?  Here, with /usr/bin/awk = GNU
Awk 3.0.6, "print there, exit" is an error and it complains.

><snip />
> roman at smradoch /usr/ports 1011:0 > make search name=\^p5-
> 1
> /usr/ports-real
> /usr/ports/

If I change the comma (,) to a semicolon (;), though, I get:

$ make search name=foo 

The sub returning 0 really does seem like a problem, though.

Just to make sure - I'm on FreeBSD 4.10-STABLE.  If you're on
5-CURRENT stuff might be a bit different there, and maybe it works.
But on 4.10, with the default awk, it really seems like a regression
to me.

  -- Tom

  Tom Alsberg - hacker (being the best description fitting this space)
  Web page:	http://www.cs.huji.ac.il/~alsbergt/
DISCLAIMER:  The above message does not even necessarily represent what
my fingers have typed on the keyboard, save anything further.

More information about the freebsd-ports mailing list