Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2011 18:59:39 -0400
From:      "b. f." <bf1783@googlemail.com>
To:        phk@FreeBSD.org, svn-src-all@FreeBSD.org
Subject:   Re: svn commit: r226672 - head/tools/tools/sysbuild
Message-ID:  <CAGFTUwOPQr%2B618CxM5Sj0ySrbZa26x=zQ6U-pSVoqk2dhDLXaQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> Author: phk
> Date: Sun Oct 23 19:46:01 2011
> New Revision: 226672
> URL: http://svn.freebsd.org/changeset/base/226672
>
> Log:
>   Add a "-P olddistfiles" facility to prefetch ports distfiles, using an
>   old distfile directory as primary source:
>
>         mkdir /freebsd/ports/distfiles.old
>         mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old
>         sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old
>         rm -rf /freebsd/ports/distfiles.old
>
>   Unfortunately bsd.ports.mk does not attempt to use a hard-link so
>   while this runs you need diskspace for both your old and your "new"
>   distfiles.

With regard to removing old distfiles, if a full Ports tree is assumed
to be available, then ports/Tools/scripts/distclean.sh -f may be used.

With regard to pre-fetching new distfiles, new versions of ports may
have new dependencies, so it would be prudent to run the
"fetch-recursive" target in addition to "checksum".  (Of course, this
is a best effort in batch mode: some new dependencies may be dependent
upon non-default choices for new options that the user may make
later.)

Nits: I think you mean bsd.port.mk(only 1 "s")?  Also, there is a typo
in the comment on line 271: s/checksump/checksum/.

b.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGFTUwOPQr%2B618CxM5Sj0ySrbZa26x=zQ6U-pSVoqk2dhDLXaQ>