Subject: Re: Mosaic dependency, and a larger picture...
To: None <>
From: Bernd Salbrechter <>
List: tech-pkg
Date: 04/14/1999 10:06:26
In-Reply-To: <>

On Tue, 13 Apr 1999 14:07:03 +0200 (MET DST), Hubert Feyrer
<> wrote:


>  - I thought I mailed out another approach to distfile-cleanout last week, 
>    but it seems this didn't get through (...). The basic idea there is:
>     * cd /usr/pkgsrc
>     * mkdir distfiles/.OLD
>     * mv distfiles/* distfiles/.OLD	# Move all the files aside

Wouldn't it be much cheaper (only one rename) to do:
  * mv distfiles .OLD_distfiles
You have to ajust the names below also.
I'm affiard, if /usr/pkgsrc/distfiles is a filesystem (mountpoint),
it will not work.

>     * make distfile-cleanout		# Move the _neede_ ones back
>     * rm -fr distfiles/.OLD
>    Where the distfile-cleanout target in every package does (pseudo-code): 
>     for $f in ${DISTFILES} ${PATCHFILES} {
>         mkdir .../distfiles/${DIST_SUBDIR} if not there
>         mv .../distfiles/.OLD/$f .../distfiles/$f
>    This is probably a bit slower with all the recursive make(1) calling,
>    but I was able to free several hundred MB of diskspace on my two
>    distfile repositories both at home and here.
>    If there's interrest in that code, let me know. :)

I think it would be nice to have it. But for makeing a CD-image from an
non NetBSD OS it would be nicer to have a list of required distfiles for
each pkgsrc.tgz version. If this list can be produced, join(1) can do
the job much cheaper. What about concatinating all md5-files?