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.18:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65c083e2e098
branches:  trunk
changeset: 472032:65c083e2e098
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Apr 02 18:03:01 2004 +0000

description:
Update to 1.18:
- Make kern-GENERIC.tgz part of the default SETS value, so that we get a kernel
  inside the chroot.  If the user removes it from the list, and no /netbsd file
  exists after extraction, create an empty /netbsd kernel.
  This fixes packages that look for a kernel during compilation, like net-snmp.
  Found by cube@.

diffstat:

 pkgtools/pkg_comp/Makefile          |  4 ++--
 pkgtools/pkg_comp/files/pkg_comp.8  |  9 ++++++---
 pkgtools/pkg_comp/files/pkg_comp.sh |  6 ++++--
 3 files changed, 12 insertions(+), 7 deletions(-)

diffs (71 lines):

diff -r 2f6eac10cd34 -r 65c083e2e098 pkgtools/pkg_comp/Makefile
--- a/pkgtools/pkg_comp/Makefile        Fri Apr 02 17:45:51 2004 +0000
+++ b/pkgtools/pkg_comp/Makefile        Fri Apr 02 18:03:01 2004 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2004/03/10 13:32:39 xtraeme Exp $
+# $NetBSD: Makefile,v 1.25 2004/04/02 18:03:01 jmmv Exp $
 
-DISTNAME=      pkg_comp-1.17
+DISTNAME=      pkg_comp-1.18
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 2f6eac10cd34 -r 65c083e2e098 pkgtools/pkg_comp/files/pkg_comp.8
--- a/pkgtools/pkg_comp/files/pkg_comp.8        Fri Apr 02 17:45:51 2004 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.8        Fri Apr 02 18:03:01 2004 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_comp.8,v 1.20 2004/02/21 13:08:31 jmmv Exp $
+.\" $NetBSD: pkg_comp.8,v 1.21 2004/04/02 18:03:01 jmmv Exp $
 .\"
 .\" pkg_comp - Build packages inside a clean chroot environment
 .\" Copyright (c) 2002, 2003, 2004 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
@@ -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 21, 2004
+.Dd April 2, 2004
 .Dt PKG_COMP 8
 .Os
 .Sh NAME
@@ -270,7 +270,10 @@
 A list of binary sets to be extracted inside
 .Sy DESTDIR .
 Defaults to
-.Ql base.tgz comp.tgz etc.tgz text.tgz .
+.Ql base.tgz comp.tgz etc.tgz kern-GENERIC.tgz text.tgz .
+If no kernel is extracted by these sets, an empty
+.Pa /netbsd
+file is created inside the chroot.
 .It SETS_X11
 A list of binary sets of the X Window system.
 This has the same behavior
diff -r 2f6eac10cd34 -r 65c083e2e098 pkgtools/pkg_comp/files/pkg_comp.sh
--- a/pkgtools/pkg_comp/files/pkg_comp.sh       Fri Apr 02 17:45:51 2004 +0000
+++ b/pkgtools/pkg_comp/files/pkg_comp.sh       Fri Apr 02 18:03:01 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: pkg_comp.sh,v 1.19 2004/02/21 13:08:31 jmmv Exp $
+# $NetBSD: pkg_comp.sh,v 1.20 2004/04/02 18:03:01 jmmv Exp $
 #
 # pkg_comp - Build packages inside a clean chroot environment
 # Copyright (c) 2002, 2003, 2004 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
@@ -105,7 +105,7 @@
     : ${AUTO_TARGET:=package}
     : ${BUILD_TARGET:=package}
     : ${DISTRIBDIR:=/var/pub/NetBSD}
-    : ${SETS:=base.tgz comp.tgz etc.tgz text.tgz}
+    : ${SETS:=base.tgz comp.tgz etc.tgz kern-GENERIC.tgz text.tgz}
     : ${SETS_X11:=xbase.tgz xcomp.tgz xcontrib.tgz xfont.tgz xmisc.tgz xserver.tgz}
     : ${REAL_SRC:=/usr/src}
     : ${REAL_SRC_OPTS:=-t null -o ro}
@@ -469,6 +469,8 @@
         tar xzpf $DISTRIBDIR/binary/sets/$s
     done
 
+    [ -f ${DESTDIR}/netbsd ] || touch ${DESTDIR}/netbsd
+
     echo "Making device nodes..."
     cd $DESTDIR/dev
     ./MAKEDEV all



Home | Main Index | Thread Index | Old Index