From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 8 12:21:20 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42A36A58; Mon, 8 Dec 2014 12:21:20 +0000 (UTC) Received: from cursor.its.uu.se (smtp-out1.uu.se [130.238.7.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AAD4DAFF; Mon, 8 Dec 2014 12:21:18 +0000 (UTC) Received: from e-mailfilter01.sunet.se (e-mailfilter01.sunet.se [192.36.171.201]) by cursor.its.uu.se (Postfix) with ESMTP id 7A67D2B1; Mon, 8 Dec 2014 13:13:45 +0100 (CET) Received: from lyra.its.uu.se (lyra.its.uu.se [130.238.7.73]) by e-mailfilter01.sunet.se (8.14.4/8.14.4/Debian-4) with ESMTP id sB8CDjcs016871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Dec 2014 13:13:45 +0100 Received: from virgata.its.uu.se (virgata.its.uu.se [130.238.7.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lyra.its.uu.se (Postfix) with ESMTPS id 078E839083; Mon, 8 Dec 2014 13:13:43 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.3 lyra.its.uu.se 078E839083 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uu.se; s=centralsmtp; t=1418040824; i=@uu.se; bh=oKpNJRrxjcBHNYt/IPDxUf98CmSNoq/6vzfur5jp23s=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=CjK1M2JfLC4vvwjTuWbkqM67QQbSWow9BVAGSaIfoZgeKEdFxE4xTQQ2APDB2imCZ OL8RaXviC3ihn69flofKunTFPKidMkDXKZVsVJtk0wpeFxG1UQ0PRby7Ehad4yBE5t 1A6RDYyhb/QWVeqRzJTmbMfwWRP6rTnayt0xxh8Y= Received: from jubula (localhost.localdomain [127.0.0.1]) by virgata.its.uu.se (8.13.8/8.13.8) with ESMTP id sB8CDeTC031707; Mon, 8 Dec 2014 13:13:40 +0100 Received: from h-197-74.a213.corp.bahnhof.se (h-197-74.a213.corp.bahnhof.se [85.24.197.74]) by webmail.uu.se (Horde Framework) with HTTP; Mon, 08 Dec 2014 13:13:40 +0100 Message-ID: <20141208131340.16934twbkxmadd6c@webmail.uu.se> Date: Mon, 08 Dec 2014 13:13:40 +0100 From: Erik Trulsson To: Garrett Cooper Subject: Re: Reason for reordering /usr/share/misc/termcap.src for /usr/share/misc/termcap ? References: <44119C94-0459-4942-B79B-11450C8B5664@gmail.com> In-Reply-To: <44119C94-0459-4942-B79B-11450C8B5664@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Bayes-Prob: 0.0001 (Score 0, tokens from: outbound, outbound-uu-se:default, uu-se:default, base:default, @@RPTN) X-Spam-Score: -0.10 () [Tag at 15.00] T_RP_MATCHES_RCVD:-0.1 X-p0f-Info: os=Linux 2.6.x, link=Ethernet or modem X-CanIt-Geo: ip=130.238.7.55; country=SE; region=Uppsala; city=Uppsala; latitude=59.8500; longitude=17.6333; http://maps.google.com/maps?q=59.8500,17.6333&z=6 X-CanItPRO-Stream: outbound-uu-se:outbound (inherits from outbound-uu-se:default, uu-se:default, base:default) X-Canit-Stats-ID: 09Np0dJAB - afa91b7f1b04 - 20141208 X-Antispam-Training-Forget: https://mailfilter.sunet.se/canit/b.php?i=09Np0dJAB&m=afa91b7f1b04&t=20141208&c=f X-Antispam-Training-Nonspam: https://mailfilter.sunet.se/canit/b.php?i=09Np0dJAB&m=afa91b7f1b04&t=20141208&c=n X-Antispam-Training-Spam: https://mailfilter.sunet.se/canit/b.php?i=09Np0dJAB&m=afa91b7f1b04&t=20141208&c=s X-CanIt-Archive-Cluster: PfMRe/vJWMiXwM2YIH5BVExnUnw X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.36.171.201 X-Mailman-Approved-At: Mon, 08 Dec 2014 12:32:32 +0000 Cc: Kirk McKusick , FreeBSD Hackers , dickey@his.com, jkh@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2014 12:21:20 -0000 Quoting Garrett Cooper : > Hi all, > I'm trying to resolve an issue where usr.bin/vi is needed to > preprocess share/termcap every time make buildworld is invoked on > FreeBSD. The termcap file reordering seems to have been done since > the BSD 4.4 Lite sources were imported into FreeBSD: > https://svnweb.freebsd.org/base/projects/building-blocks/share/termcap/Makefile?view=markup#l15 , https://svnweb.freebsd.org/base?view=revision&revision=1638 . I don't have history behind why this should be done (it's unfortunate because it appears to mangle the comment <-> entry mappings, and ultimately this gets put into termcap.db), and I was hoping that someone with additional history could fill in why this is being > done. > Thank you! > It looks like it is done to put the most common (at the time it was written) terminal types early in the reordered termcap file. This presumably so that programs reading termcap would be more likely to find the entry they wanted as quickly as possible. That would have been useful when termcap was just a plain text file, but if you are using termcap.db to look up terminal capabilities then there doesn't seem to be much point to doing such reordering beforehand.