Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?)

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jul 5 18:57:26 UTC 2012


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=svlc' and it finds nothing
> 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

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120705/85ea3989/signature.pgp


More information about the freebsd-hackers mailing list