diff options
author | rillig <rillig@pkgsrc.org> | 2007-09-07 15:51:53 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-09-07 15:51:53 +0000 |
commit | 91c415b938802e52fb98a78ae7757ac6247e8268 (patch) | |
tree | 8b6cf0cc1f9ab482f8415ffdc5e4e02d4d6a1b4d /pkgtools/pbulk | |
parent | 0bb792fd1ca80d4c1730684fb071a35e957ebaeb (diff) | |
download | pkgsrc-91c415b938802e52fb98a78ae7757ac6247e8268.tar.gz |
The WRKDIR and PREFIX can be saved in the log directory when a package
doesn't build properly. These options are off by default since they
require much disk space.
Diffstat (limited to 'pkgtools/pbulk')
-rw-r--r-- | pkgtools/pbulk/files/pbulk/pbulk.conf | 9 | ||||
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pkg-build | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/pbulk.conf b/pkgtools/pbulk/files/pbulk/pbulk.conf index 4d11953fa7d..3416ad4cd20 100644 --- a/pkgtools/pbulk/files/pbulk/pbulk.conf +++ b/pkgtools/pbulk/files/pbulk/pbulk.conf @@ -1,4 +1,4 @@ -# $NetBSD: pbulk.conf,v 1.7 2007/08/24 06:32:41 rillig Exp $ +# $NetBSD: pbulk.conf,v 1.8 2007/09/07 15:51:53 rillig Exp $ # The URL where the build report will be made available. This is only # used in the .txt version of the report. @@ -78,6 +78,13 @@ pbuild=@PREFIX@/bin/pbulk-build presolve=@PREFIX@/bin/pbulk-resolve pscan=@PREFIX@/bin/pbulk-scan +# When a package build fails, it is often necessary to have a look at +# the working directory or the installed files. When these options are +# set to "yes", they will be archived in the log directory. +# +keep_wrkdir=no +keep_prefix=no + pkg_up_to_date_script=@PREFIX@/libexec/pbulk/pkg-up-to-date pbuild_script=@PREFIX@/libexec/pbulk/pkg-build pbuild_start_script=@PREFIX@/libexec/pbulk/build-client-start diff --git a/pkgtools/pbulk/files/pbulk/scripts/pkg-build b/pkgtools/pbulk/files/pbulk/scripts/pkg-build index 9c31eb61d50..d47d3aa8d8f 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build +++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build @@ -1,5 +1,5 @@ #!@SH@ -# $NetBSD: pkg-build,v 1.4 2007/08/24 07:17:46 rillig Exp $ +# $NetBSD: pkg-build,v 1.5 2007/09/07 15:51:53 rillig Exp $ # # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. # All rights reserved. @@ -33,6 +33,12 @@ . @PBULK_CONFIG@ cleanup() { + if [ $keep_wrkdir = yes ]; then + ${make} pbulk-save-wrkdir INTO=${bulklog}/${pkgname}/wrkdir.tar.gz + fi + if [ $keep_prefix = yes ]; then + tar cfz ${bulklog}/${pkgname}/prefix.tar.gz ${prefix} + fi ${make} clean > /dev/null 2>&1 || true exit 1 } |