Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jul 2012 19:57:20 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Yuri <yuri@rawbw.com>
Cc:        Jonathan Anderson <jonathan.robert.anderson@gmail.com>, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, Mike Meyer <mwm@mired.org>, freebsd-hackers@freebsd.org
Subject:   Re: Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?)
Message-ID:  <4FF5E390.9090205@infracaninophile.co.uk>
In-Reply-To: <4FF5D796.80600@rawbw.com>
References:  <86bojxow6x.fsf@ds4.des.no> <4FF35864.5030109@FreeBSD.org> <CAC8HS2Hx%2BqV1zYSzyM6wYzbyA6BStd3HEwc-VDhv40DHM=qCvw@mail.gmail.com> <CAOjFWZ5ikPz_yDhEQutiXVG354qRHYJTn-M_S4Cx-=YRgFP7eQ@mail.gmail.com> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org> <4FF4BEED.10103@FreeBSD.org> <20120704225519.GB19945@DataIX.net> <4FF4CAD1.8080804@FreeBSD.org> <20120704234104.GA392@DataIX.net> <8E9DECBB-3D1E-4129-A958-9DB0DF69ECC3@kientzle.com> <4FF4E105.50502@FreeBSD.org> <20120704203711.2732b645@bhuda.mired.org> <2EA305F0-87D9-47BE-B3E6-366659BF77AF@kientzle.com> <20120704214216.29085927@bhuda.mired.org> <alpine.BSF.2.00.1207051635550.2537@wojtek.tensor.gdynia.pl> <2336980A-5AAB-4D45-8177-71609A7B31F7@gmail.com> <alpine.BSF.2.00.1207051836130.3799@wojtek.tensor.gdynia.pl> <4FF5D796.80600@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF39DE2E711923C758E1C475B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/07/2012 19:06, Yuri wrote:
> It would be useful to have a command that finds the port name(s) by the=

> command name when needed though.
> Today, for example, while searching for package that has a command
> 'svlc' I do 'cd /usr/ports && make search key=3Dsvlc' and it finds noth=
ing
> instead of finding multimedia/vlc. make search seems to search through
> package names, dependency names, but not command names for some reason.=


make search uses the INDEX, and that doesn't contain any information
about the files installed by ports.

Building a file index might be possible, but it would be several times
the size of the existing INDEX and take correspondingly longer to
generate.  Also, you'ld probably want it as a sqlite database or BDB
file for performance, rather than plain text.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW




--------------enigF39DE2E711923C758E1C475B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/145AACgkQ8Mjk52CukIy0lgCfRBxCB/EatupxbgLAGDc7Kqf4
WLUAnjM3aUT6wZENJ70YLoIVJxCkC8iH
=aZ3B
-----END PGP SIGNATURE-----

--------------enigF39DE2E711923C758E1C475B--



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