Subject: pkg/19221: mksandbox does not mount $LOCALPATCHES
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/01/2002 10:11:51
>Number:         19221
>Category:       pkg
>Synopsis:       mksandbox does not mount $LOCALPATCHES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 01 10:12:00 PST 2002
>Originator:     Sergey Svishchev
>Release:        1.6G
I used mksandbox to safely build a package on a production box;  it turns out that patches I put in LOCALPATCHES were not applied.

--- bulk/mksandbox  2002/11/20 16:23:09 1.11
+++ bulk/mksandbox  2002/12/01 18:08:09
@@ -129,6 +129,7 @@
 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 $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