How useful is %%DATADIR%%, anyway?

Doug Barton dougb at FreeBSD.org
Tue Apr 3 18:15:29 UTC 2012


On 4/3/2012 9:15 AM, Chris Rees wrote:
> On 29 March 2012 07:54, Doug Barton <dougb at freebsd.org> 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


More information about the freebsd-ports mailing list