On Wed, Dec 27, 2017 at 04:12:49AM +0100, Marc Espie wrote:
> On Tue, Dec 26, 2017 at 05:51:51PM +0100, Jeremie Courreges-Anglas wrote:
> > On Tue, Dec 26 2017, Scott Cheloha <scottchel...@gmail.com> wrote:
> > > Hey,
> > >
> > > I just did a full ports fetch and I pulled down at least 40GB:
> > >
> > > $ du -h /usr/ports/distfiles | tail -n 1
> > > 40.5G     /usr/ports/distfiles
> > 
> > bulk(8) already documents "50GB for distfiles and 50GB for packages".
> 
> I think dropping duplicate information, namely simplifying ports(7) makes
> more sense.
> 
> Yeah, yeah, yeah, ports/infrastructure is not in the manpath for reasons,
> but dpb is in ports/infrastructure anyway, so .Xr bulk is not a problem.
> 
> Heck it already .Xr dpb.

Any particular simplification in mind?

Strawman diff attached.  Most of the information dropped is already in
bulk(8) in some form.

--
Scott Cheloha

Index: share/man/man7/ports.7
===================================================================
RCS file: /cvs/src/share/man/man7/ports.7,v
retrieving revision 1.115
diff -u -p -r1.115 ports.7
--- share/man/man7/ports.7      3 Nov 2017 12:22:10 -0000       1.115
+++ share/man/man7/ports.7      27 Dec 2017 04:05:31 -0000
@@ -435,47 +435,8 @@ normally as
 In particular, it can take advantage of machine clusters (same architecture
 and same installation), and of multi-core machines.
 .Pp
-A few remarks may save a lot of time:
-.Bl -bullet
-.It
-The default limits in
-.Xr login.conf 5
-are inappropriate for bulk builds.
-.Va maxproc , openfiles , datasize
-should be cranked way up, especially for parallel builds.
-For instance, a lot of C++-based ports will require a
-.Va datasize
-over 1G.
-.It
-Cluster builds should have shared
-.Ev PORTSDIR
-and local
-.Ev WRKOBJDIR .
-If possible, dedicated
-.Ev WRKOBJDIR
-partitions mounted
-.Sq noatime,async
-will help.
-.It
-As far as possible, the log directory should be local to the machine running
-.Xr dpb 1 .
-.It
-A full bulk will fetch over 20G of distfiles and create over 17G of packages.
-The largest work directories are about 10G each.
-.It
-Take notice of
-.Ev CHECKSUM_PACKAGES
-in
-.Xr bsd.port.mk 5 .
-This can be set to
-.Sq ftp
-during official package builds to compute partial sha256 checksum files.
-.Pp
-At the end of the build, just
-.Bd -literal -offset indent
-cd ${PORTSDIR}/packages/${MACHINE_ARCH}/cksums && cat * >sha256
-.Ed
-.El
+For more detailed information, see
+.Xr bulk 8 .
 .Sh NETWORK CONFIGURATION
 The variables pertaining to network access have been marshalled into
 .Pa ${PORTSDIR}/infrastructure/templates/network.conf.template .

Reply via email to