summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_comp/files
diff options
context:
space:
mode:
authorseb <seb>2007-10-27 17:11:24 +0000
committerseb <seb>2007-10-27 17:11:24 +0000
commit34da693ae3e4d91797e5968b582841f7ceb4f7ab (patch)
treee2f4b56dd7a1e49262b22dd20a71c2308a023c97 /pkgtools/pkg_comp/files
parente91a759be1dfcfc5699a0dcc476c0dc062e91c70 (diff)
downloadpkgsrc-34da693ae3e4d91797e5968b582841f7ceb4f7ab.tar.gz
Update to version 1.30.
Approved by MAINTAINER, jmmv@. Add option -N: with the expection of pkgtools/libkver (see manual page about NETBSD_RELEASE) avoid installation of default packages as well as INSTALL_PACKAGES and BUILD_PACKAGES during the creation of the chroot. Note: This is useful for running pbulk in a sandbox created by pkg_comp as binary packages , possibly very low in the build dependencies tree like pkgtools/digest, won't be built by pkg_comp while creating the sandbox hence pbulk won't have to rebuild nearly all packages otherwise already up-to-date. The maintainer notes that this seems like abusing pkg_comp to just create sandboxes. And well... yes indeed!
Diffstat (limited to 'pkgtools/pkg_comp/files')
-rw-r--r--pkgtools/pkg_comp/files/pkg_comp.813
-rw-r--r--pkgtools/pkg_comp/files/pkg_comp.sh17
2 files changed, 22 insertions, 8 deletions
diff --git a/pkgtools/pkg_comp/files/pkg_comp.8 b/pkgtools/pkg_comp/files/pkg_comp.8
index b4be783b0f0..89000070211 100644
--- a/pkgtools/pkg_comp/files/pkg_comp.8
+++ b/pkgtools/pkg_comp/files/pkg_comp.8
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_comp.8,v 1.30 2006/02/10 23:41:20 salo Exp $
+.\" $NetBSD: pkg_comp.8,v 1.31 2007/10/27 17:11:24 seb Exp $
.\"
.\" pkg_comp - Build packages inside a clean chroot environment
.\" Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org>
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd February 10, 2006
+.Dd October 27, 2007
.Dt PKG_COMP 8
.Os
.Sh NAME
@@ -41,6 +41,7 @@
.Ar conf_file
.Oc
.Op Fl n
+.Op Fl N
.Ar target
.Op Ar pkg_name ...
.Sh DESCRIPTION
@@ -78,6 +79,14 @@ Avoid installation of
and
.Va BUILD_PACKAGES
during the creation of the chroot.
+.It Fl N
+With the exception of pkgtools/libkver ( see
+.Va NETBSD_RELEASE )
+avoid installation of default packages as well as
+.Va INSTALL_PACKAGES
+and
+.Va BUILD_PACKAGES
+during the creation of the chroot.
.El
.Ss What to use it for?
You can use
diff --git a/pkgtools/pkg_comp/files/pkg_comp.sh b/pkgtools/pkg_comp/files/pkg_comp.sh
index 69034048bde..6cd95638951 100644
--- a/pkgtools/pkg_comp/files/pkg_comp.sh
+++ b/pkgtools/pkg_comp/files/pkg_comp.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: pkg_comp.sh,v 1.32 2006/06/17 12:18:24 seb Exp $
+# $NetBSD: pkg_comp.sh,v 1.33 2007/10/27 17:11:24 seb Exp $
#
# pkg_comp - Build packages inside a clean chroot environment
# Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org>
@@ -172,7 +172,7 @@ warn()
#
usage()
{
- echo "usage: $ProgName [-(c|C) conf_file] [-n] target [pkg_names]" 1>&2
+ echo "usage: $ProgName [-(c|C) conf_file] [-n] [-N] target [pkg_names]" 1>&2
exit 1
}
@@ -528,9 +528,9 @@ makeroot()
trap "echo \"*** Process aborted ***\" ; fsumount ; exit 1" INT QUIT
makeroot_libkver
- makeroot_digest
+ [ "$Nflag" = "no" ] && makeroot_digest
- if [ "$USE_GCC3" = "yes" ]; then
+ if [ "$USE_GCC3" = "yes" -a "$Nflag" = "no" ]; then
if [ -z "`echo $BUILD_PACKAGES $INSTALL_PACKAGES | grep gcc3`" ]; then
AVOID_GCC3=yes pkg_build lang/gcc3
fi
@@ -648,7 +648,7 @@ makeroot_x11()
echo "export XAPPLRESDIR=${LOCALBASE}/lib/X11/app-defaults" >> $DESTDIR/etc/profile
echo "setenv XAPPLRESDIR ${LOCALBASE}/lib/X11/app-defaults" >> $DESTDIR/etc/csh.login
fi
- pkg_build pkgtools/x11-links
+ [ "$Nflag" = "no" ] && pkg_build pkgtools/x11-links
fi
}
@@ -888,13 +888,14 @@ pkg_removeroot()
confdir="$HOME/pkg_comp"
# Parse options
-args=`getopt c:C:n $*`
+args=`getopt c:C:nN $*`
if [ $? != 0 ]; then
usage
fi
set -- $args
conffile=
nflag=no
+Nflag=no
while [ $# -gt 0 ]; do
case "$1" in
-c)
@@ -910,6 +911,10 @@ while [ $# -gt 0 ]; do
-n)
nflag=yes
;;
+ -N)
+ nflag=yes
+ Nflag=yes
+ ;;
--)
shift; break
;;