From 969e678ed9f907764e6412386432dfbddf493f71 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 20 May 2013 18:14:55 +0200 Subject: Add `--max-silent-time' to `guix build' and `guix package'. * guix/scripts/build.scm (%default-options): Add default `max-silent-time' value. (show-help, %options): Add `--max-silent-time'. (guix-build): Pass `max-silent-time' to `set-build-options'. * guix/scripts/package.scm (%default-options): Add default `max-silent-time' value. (show-help, %options): Add `--max-silent-time'. (guix-package): Pass `max-silent-time' to `set-build-options'. * guix/ui.scm (string->number*): New procedure. * tests/derivations.scm ("build-expression->derivation and max-silent-time"): New test. * doc/guix.texi (Invoking guix package, Invoking guix build): Document `--max-silent-time'. --- doc/guix.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index 54325a5b16..c3aab812e2 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -596,7 +596,8 @@ Use @var{profile} instead of the user's default profile. Show what would be done without actually doing it. @item --no-substitutes -Build instead of resorting to pre-built substitutes. +@itemx --max-silent-time=@var{seconds} +Same as for @command{guix build} (@pxref{Invoking guix build}). @item --verbose Produce verbose output. In particular, emit the environment's build log @@ -1198,6 +1199,10 @@ Do not build the derivations. @item --no-substitutes Build instead of resorting to pre-built substitutes. +@item --max-silent-time=@var{seconds} +When the build or substitution process remains silent for more than +@var{seconds}, terminate it and report a build failure. + @item --cores=@var{n} @itemx -c @var{n} Allow the use of up to @var{n} CPU cores for the build. The special -- cgit v1.2.3