From 0393f66f06002154e442f1f41ed4c3b4442b7eb2 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 3 Dec 2011 18:02:39 +0000 Subject: [PATCH] most important usage of dpb upfront, before the exhaustive description of option. Drop a few heavy hints regarding ssh usage. --- infrastructure/man/man1/dpb.1 | 46 +++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/infrastructure/man/man1/dpb.1 b/infrastructure/man/man1/dpb.1 index 56a66b8f6c5..6d04e336ffd 100644 --- a/infrastructure/man/man1/dpb.1 +++ b/infrastructure/man/man1/dpb.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dpb.1,v 1.23 2011/12/02 22:37:36 espie Exp $ +.\" $OpenBSD: dpb.1,v 1.24 2011/12/03 18:02:39 espie Exp $ .\" .\" Copyright (c) 2010 Marc Espie .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 2 2011 $ +.Dd $Mdocdate: December 3 2011 $ .Dt DPB 1 .Os .Sh NAME @@ -45,7 +45,7 @@ with several cores. Its name is an acronym for .Sq distributed ports builder . .Nm -walks ports to figure out dependencies, and starts building ports +walks the ports tree to figure out dependencies, and starts building as soon as it can. .Pp On a clean machine, @@ -54,13 +54,45 @@ will run with sensible defaults if used without options. Note, however, that it will produce logs, lock files, packages, and package installations. .Pp +The file +.Pa build.log +.Po +normally under +.Pa ${PORTSDIR}/log/${ARCH} +.Pc +is of particular interest, as it contains build time summaries. +After a full run of +.Nm , +back-up or remove other logs, but keep the old +.Pa build.log +accessible, so that the next build can be primed with +.Fl b Pa build.log +in order to get a more efficient build that will focus on large ports first. +.Pp .Nm -can take +can be restricted to a subset of the tree by giving it .Ar pkgpath ... -to build as parameters, as +to build as parameters, as per .Xr pkgpath 7 specifications. .Pp +.Nm +supports +.Sq hot-fixes : +if a particular port errors out, it is possible to fix the problem, remove +the corresponding lockfile, and +.Nm +will pick it up without needing to be stopped and restarted. +.Pp +In order to build on a cluster, the ports tree itself should be shared +through NFS, including distfiles and built packages, but the WRKOBJDIR +should be local to each machine. +Option +.Fl h Ar file +is used to specify hosts to use, +.Ar file +can be as simple as a list of hosts to use, one host per line. +.Pp Options are as follows: .Bl -tag -width pkgpathlonger .It Fl A Ar arch @@ -157,6 +189,10 @@ file can also define a start-up script, as STARTUP=path .Ed which will be run at start-up on each machine. +There are no fine-grained options to control +.Xr ssh 1 +options, as those can be specified through virtual host declarations in +.Xr ssh_config 5 . .It Fl I Ar subdirlist List of .Xr pkgpath 7