pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_comp Update to 1.14:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0699fff35562
branches:  trunk
changeset: 465921:0699fff35562
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu Jan 08 14:06:15 2004 +0000

description:
Update to 1.14:
- Add the AUTO_TARGET variable.  This specifies the BUILD_TARGET used during
  an automated build of packages (i.e., pkg_comp auto), so that one can use
  'bin-install'.  Suggested by gavan@.
- Fix minor bug so that a libkver package is built during makeroot.

diffstat:

 pkgtools/pkg_comp/Makefile          |   4 ++--
 pkgtools/pkg_comp/files/pkg_comp.8  |  31 +++++++++++++++++++++++--------
 pkgtools/pkg_comp/files/pkg_comp.sh |  10 ++++++----
 3 files changed, 31 insertions(+), 14 deletions(-)

diffs (125 lines):

diff -r 0eecc75f84a2 -r 0699fff35562 pkgtools/pkg_comp/Makefile
--- a/pkgtools/pkg_comp/Makefile        Thu Jan 08 12:59:26 2004 +0000
+++ b/pkgtools/pkg_comp/Makefile        Thu Jan 08 14:06:15 2004 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2004/01/06 19:49:24 jmmv Exp $
+# $NetBSD: Makefile,v 1.19 2004/01/08 14:06:15 jmmv Exp $
 
-DISTNAME=      pkg_comp-1.13
+DISTNAME=      pkg_comp-1.14
 WRKSRC=                ${WRKDIR}
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
diff -r 0eecc75f84a2 -r 0699fff35562 pkgtools/pkg_comp/files/pkg_comp.8
--- a/pkgtools/pkg_comp/files/pkg_comp.8        Thu Jan 08 12:59:26 2004 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.8        Thu Jan 08 14:06:15 2004 +0000
@@ -1,7 +1,7 @@
-.\" $NetBSD: pkg_comp.8,v 1.16 2003/12/19 09:51:55 jmmv Exp $
+.\" $NetBSD: pkg_comp.8,v 1.17 2004/01/08 14:06:15 jmmv Exp $
 .\"
 .\" pkg_comp - Build packages inside a clean chroot environment
-.\" Copyright (c) 2002, 2003, Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
+.\" Copyright (c) 2002, 2003, 2004 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
 .\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
@@ -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 December 19, 2003
+.Dd January 8, 2004
 .Dt PKG_COMP 8
 .Os
 .Sh NAME
@@ -133,13 +133,26 @@
 The default values shown here are those written in the template when
 issuing a maketemplate.
 .Bl -tag -width indent
+.It AUTO_TARGET
+The pkgsrc target to use when building packages in an automated fashion
+(using the
+.Ql auto
+target).
+Should be set to
+.Ql package
+or
+.Ql bin-install ,
+as other values are useless.
+Defaults to
+.Ql package .
 .It BUILD_TARGET
-The target to use when building packages.
+The pkgsrc target to use when building packages.
 It can contain any target supported by the pkgsrc system, but
 reasonable values are:
-.Ql install
+.Ql install ,
+.Ql package
 and
-.Ql package .
+.Ql bin-install .
 Defaults to
 .Ql package .
 .It COPYROOTCFG
@@ -404,9 +417,11 @@
 You should do it with this target because it
 will take care to umount needed mount points.
 .It auto
-This executes several targets automatically, setting
+This executes several targets automatically, using
+.Sy AUTO_TARGET
+as
 .Sy BUILD_TARGET
-to package.
+during the build.
 The order is: makeroot, build and removeroot.
 This is useful to create binary packages of several pkgsrc and their
 dependencies automatically.
diff -r 0eecc75f84a2 -r 0699fff35562 pkgtools/pkg_comp/files/pkg_comp.sh
--- a/pkgtools/pkg_comp/files/pkg_comp.sh       Thu Jan 08 12:59:26 2004 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.sh       Thu Jan 08 14:06:15 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: pkg_comp.sh,v 1.14 2004/01/03 10:45:50 jmmv Exp $
+# $NetBSD: pkg_comp.sh,v 1.15 2004/01/08 14:06:15 jmmv Exp $
 #
 # pkg_comp - Build packages inside a clean chroot environment
 # Copyright (c) 2002, 2003, 2004 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
@@ -47,7 +47,8 @@
                 SETS_X11 USE_XPKGWEDGE REAL_SRC REAL_SRC_OPTS REAL_PKGSRC \
                 REAL_PKGSRC_OPTS REAL_DISTFILES REAL_DISTFILES_OPTS \
                 REAL_PACKAGES REAL_PACKAGES_OPTS REAL_PKGVULNDIR \
-                NETBSD_RELEASE MOUNT_SCRIPT UMOUNT_SCRIPT SYNC_UMOUNT"
+                NETBSD_RELEASE MOUNT_SCRIPT UMOUNT_SCRIPT SYNC_UMOUNT \
+                AUTO_TARGET"
 
 env_clean()
 {
@@ -85,6 +86,7 @@
     : ${DESTDIR:=/var/chroot/pkg_comp/default}
     : ${ROOTSHELL:=/bin/ksh}
     : ${COPYROOTCFG:=no}
+    : ${AUTO_TARGET:=package}
     : ${BUILD_TARGET:=package}
     : ${DISTRIBDIR:=/var/pub/NetBSD}
     : ${SETS:=base.tgz comp.tgz etc.tgz text.tgz}
@@ -401,7 +403,7 @@
     fi
 
     if [ "$NETBSD_RELEASE" != "no" ]; then
-        BUILD_TARGET=install pkg_build pkgtools/libkver
+        pkg_build pkgtools/libkver
         echo "LD_PRELOAD=${LOCALBASE}/lib/libkver.so; export LD_PRELOAD" >> $DESTDIR/etc/shrc
         echo "setenv LD_PRELOAD ${LOCALBASE}/lib/libkver.so" >> $DESTDIR/etc/csh.login
         echo "setenv LD_PRELOAD ${LOCALBASE}/lib/libkver.so" >> $DESTDIR/etc/csh.cshrc
@@ -767,7 +769,7 @@
         ;;
     auto)
         readconf
-        BUILD_TARGET="package"
+        BUILD_TARGET="${AUTO_TARGET}"
         if [ -z "$REAL_PACKAGES" ]; then
             err "this is useless without REAL_PACKAGES"
         fi



Home | Main Index | Thread Index | Old Index