Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2014 08:58:29 -0800
From:      Mark Peek <mp@FreeBSD.org>
To:        Ian Lepore <ian@FreeBSD.org>, Garrett Cooper <ngie@FreeBSD.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r275601 - projects/building-blocks
Message-ID:  <5485D8B5.90604@FreeBSD.org>
In-Reply-To: <1418054094.1064.147.camel@revolution.hippie.lan>
References:  <201412080743.sB87h3j9044019@svn.freebsd.org> <1418054094.1064.147.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/8/14 7:54 AM, Ian Lepore wrote:
> On Mon, 2014-12-08 at 07:43 +0000, Garrett Cooper wrote:
>> Author: ngie
>> Date: Mon Dec  8 07:43:02 2014
>> New Revision: 275601
>> URL: https://svnweb.freebsd.org/changeset/base/275601
>>
>> Log:
>>    - Document why usr.bin/vi needs to be built as part of bootstrap-tools
 >> ...snip...
>
> Is there any chance someone who understands vi could evaluate what it's
> being used for and perhaps eliminate it?  I know just enough about vi to
> get out of it if I accidentally get in.
>
> When I looked into this a few days ago it appears to be using it to sort
> the data before compiling (an optimization that problably hasn't been
> important to do since the 90s).  Could another existing build tool such
> as awk do the job?

My reading of that code agrees with yours in that it is using 'ex' to 
prioritize some terminal entries in the termcap file. However, it is then 
hashed into a berkeleydb via cap_mkdb which should render the initial 
prioritization useless. Rather than rewriting it I would suggest completely 
removing the reordering and the ex dependency.

Mark



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