summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-12-03 18:49:39 +0000
committeragc <agc@pkgsrc.org>2002-12-03 18:49:39 +0000
commitd9242dfee43a9d5ff4657408eee567b633876fb5 (patch)
treefe6f9b4ec4f813f7f4be5ae537088518d5c91d10 /mk
parent68165f26dc077909c10cd75e91aaca26b2569184 (diff)
downloadpkgsrc-d9242dfee43a9d5ff4657408eee567b633876fb5.tar.gz
Apply patches from Sergey Svishchev in PR 19221 to get the correct value
for localpatches and to make that directory available in the sandbox.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/bulk/mksandbox4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
index 3473fbb3f9f..ce6a401c859 100755
--- a/mk/bulk/mksandbox
+++ b/mk/bulk/mksandbox
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mksandbox,v 1.11 2002/11/20 16:23:09 agc Exp $
+# $NetBSD: mksandbox,v 1.12 2002/12/03 18:49:39 agc Exp $
#
#
# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
@@ -129,6 +129,7 @@ packages=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=PACKAGES)`
distfiles=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=DISTDIR)`
localbase=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=LOCALBASE)`
pkg_dbdir=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=PKG_DBDIR)`
+localpatches=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=LOCALPATCHES)`
$mkdirprog $sandbox
cat > $sandbox_script <<EOS
@@ -216,6 +217,7 @@ $mountprog -t null $packages $sandbox/$packages
$mountprog -t null $distfiles $sandbox/$distfiles
echo "$packages $packages rw \\" >> $sandbox_script
echo "$distfiles $distfiles rw \\" >> $sandbox_script
+test -n "$localpatches" && echo "$localpatches $localpatches rw \\" >> $sandbox_script
cat >> $sandbox_script <<EOS
"