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 /mk | |
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 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 | ||||
-rw-r--r-- | mk/pbulk/pbulk-index.mk | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 9b9b3177882..1fd1e225450 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1922 2007/08/18 00:30:21 joerg Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1923 2007/09/07 15:51:53 rillig Exp $ # # This file is in the public domain. # @@ -801,7 +801,7 @@ ${_MAKEVARS_MK.${_phase_}}: ${WRKDIR} ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET} .endfor -.if make(pbulk-index) || make(pbulk-index-item) +.if make(pbulk-index) || make(pbulk-index-item) || make(pbulk-save-wrkdir) .include "${.PARSEDIR}/pbulk/pbulk-index.mk" .endif diff --git a/mk/pbulk/pbulk-index.mk b/mk/pbulk/pbulk-index.mk index e128f13d09a..d6678c00fea 100644 --- a/mk/pbulk/pbulk-index.mk +++ b/mk/pbulk/pbulk-index.mk @@ -1,4 +1,4 @@ -# $NetBSD: pbulk-index.mk,v 1.2 2007/05/16 16:48:12 joerg Exp $ +# $NetBSD: pbulk-index.mk,v 1.3 2007/09/07 15:51:53 rillig Exp $ # This Makefile fragment is included by bsd.pkg.mk and provides all # variables and targets related to the parallel bulk build @@ -99,3 +99,6 @@ pbulk-index-item: .endfor @printf "\n" .endif + +pbulk-save-wrkdir: + ${PAX} -w -z -f ${INTO:Q} ${WRKDIR} |