Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 22:05:35 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: "make search" oddity
Message-ID:  <20040708210535.GA57010@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040708202313.GA11771@millerlite.local.mark-and-erika.com>
References:  <20040708172916.GB15679@millerlite.local.mark-and-erika.com> <20040708192245.GA11705@happy-idiot-talk.infracaninophile.co.uk> <20040708202313.GA11771@millerlite.local.mark-and-erika.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 08, 2004 at 04:23:14PM -0400, Mark Frank wrote:
> * On Thu, Jul 08, 2004 at 08:22:45PM +0100 Matthew Seaman wrote:
> > On Thu, Jul 08, 2004 at 01:29:16PM -0400, Mark Frank wrote:
> > > This isn't a life or death situation but it's the first time I've
> > > noticed this oddity.  I've always used "make search name=3D" from
> > > /usr/ports to find a particular port to install but it seemed to fail
> > > finding phpMyAdmin.
> > >=20
> > > This is on a 5.2.1-RELEASE-p9 box where I cvsup the ports tree nightl=
y.
> =20
> > Actually, yes,the search capability in ports was updated and expanded
> > quite a bit recently.  Read all about it in the /usr/ports/CHANGES
> > file.
> >=20
> > You can now do:
> >=20
> >     % make search icase=3D1 name=3Dphpmyadmin display=3Dname,path,maint
> >     Port:   phpMyAdmin-2.5.7.1
> >     Path:   /usr/ports/databases/phpmyadmin
> >     Maint:  m.seaman@infracaninophile.co.uk
>=20
> I've (now) read /usr/ports/CHANGES but the behavior for me isn't
> matching.
>=20
> 	# pwd
> 	/usr/ports
>=20
> 	# make search icase=3D1 name=3Dphpmyadmin display=3Dname,path,maint
>=20
> 	# make search icase=3D1 name=3DphpMyAdmin display=3Dname,path,maint
> 	Port:   phpMyAdmin-2.5.7.1
> 	Path:   /usr/ports/databases/phpmyadmin
> 	Maint:  m.seaman@infracaninophile.co.uk
>=20
>=20
> Am I being dense here?

Most odd.  The search target works by substituting the values you give
on the make command line into an awk script, which pulls the data out
of /usr/ports/INDEX (or INDEX-5 on 5.x) and formats it as required.
It's all in /usr/ports/Mk/bsd.port.subdir.mk

Do you have PORTSEARCH_IGNORECASE defined in your environment or in
/etc/make.conf ?  Not that that would make any difference to the
result above, as using icase on the command line will override that
value.

Hmmm... what awk(1) program is first on your path?  And if it isn't
the default version supplied with the system (/usr/bin/awk -- in 4.10
this is actually GNU Awk 3.0.6) does it support 'IGNORECASE'?  There's
this little snippet in the awk(1) man page:

                   NOTE: In versions of gawk prior  to  3.0,  IGNORECASE  o=
nly
                   affected  regular  expression  operations.   It now affe=
cts
                   string comparisons as well.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA7bcfiD657aJF7eIRAucNAKCLftbXGVlnC8j+BRXz/F6umBYMBACeMos2
/CEUJj5abkgzs+N3LwOG860=
=j6oD
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--



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