From owner-freebsd-ports@FreeBSD.ORG Tue Apr 3 18:15:29 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id B0D4B1065676 for ; Tue, 3 Apr 2012 18:15:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 08B52151037; Tue, 3 Apr 2012 18:15:14 +0000 (UTC) Message-ID: <4F7B3E31.9040307@FreeBSD.org> Date: Tue, 03 Apr 2012 11:15:13 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Chris Rees References: <4F74152F.4090302@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: How useful is %%DATADIR%%, anyway? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2012 18:15:29 -0000 On 4/3/2012 9:15 AM, Chris Rees wrote: > On 29 March 2012 07:54, Doug Barton wrote: >> On 3/23/2012 1:14 PM, Chris Rees wrote: >>> Just as a thought, I decided to try stripping out all mentions of >>> %%DATADIR%%, %%DOCSDIR%% etc from pkg-plist, and replacing them with >>> PORTDOCS=*, PORTDATA=* in the Makefiles etc. >> >> How much time does creating the dynamic plists take for ports with >> larger numbers of docs/data, vs. the static lists; and how many ports >> would be adversely affected, if any? > > Well... running find on a directory tree doesn't take very long if all > we're doing is grabbing filenames, vs a 7% speedup of a ports csup (a > gross estimate of course, and portsnap compression will probably at > least partially eliminate this!). Worth remembering that the find is > only done on ports that are installed, rather than csup which is done > on *every* port. Sorry, wasn't asking for speculation, I was curious if you'd actually tested it. :) Doug