Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2004 17:23:13 +0300
From:      Tom Alsberg <alsbergt@cs.huji.ac.il>
To:        FreeBSD Ports List <freebsd-ports@freebsd.org>
Subject:   Re: /usr/ports symlink + make search
Message-ID:  <20040615142313.GA26302@cs.huji.ac.il>
In-Reply-To: <20040615103119.GA1704@isis.wad.cz>
References:  <20040615083216.GA24712@cs.huji.ac.il> <20040615103119.GA1704@isis.wad.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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 
0
/r+d/ports
/r+d/ports/

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040615142313.GA26302>