pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap Add nawk as a bootstrap tool. Reorder the b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e07549794ac0
branches:  trunk
changeset: 516105:e07549794ac0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jul 14 14:27:00 2006 +0000

description:
Add nawk as a bootstrap tool.  Reorder the builds so that nawk and sed
are built just after bmake so that they may be used in the configure
scripts for later bootstrap tools.

diffstat:

 bootstrap/bootstrap |  50 ++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 38 insertions(+), 12 deletions(-)

diffs (178 lines):

diff -r 1455deb30e66 -r e07549794ac0 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Fri Jul 14 14:23:06 2006 +0000
+++ b/bootstrap/bootstrap       Fri Jul 14 14:27:00 2006 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.56 2006/07/13 21:37:30 jlam Exp $
+# $NetBSD: bootstrap,v 1.57 2006/07/14 14:27:00 jlam Exp $
 #
 #
 # Copyright (c) 2001-2002 Alistair G. Crooks.  All rights reserved.
@@ -35,7 +35,7 @@
 #
 #set -x
 
-BOOTSTRAP_VERSION=20060713
+BOOTSTRAP_VERSION=20060714
 
 ignorecasecheck=no
 ignoreusercheck=no
@@ -309,6 +309,7 @@
        need_pax=yes
        need_mtree=no
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        check_prog mtreeprog mtree
@@ -319,6 +320,7 @@
        need_pax=yes
        need_mtree=no
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        check_prog tarprog tar
@@ -340,6 +342,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        machine_arch=`uname -p`
@@ -349,6 +352,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=yes
+       need_awk=yes
        need_sed=yes
        set_opsys=no
        ;;
@@ -365,6 +369,7 @@
        need_pax=yes
        get_abi "IRIX"
        opsys=IRIX
+       need_awk=yes
        need_sed=yes
        set_opsys=yes
        machine_arch=mipseb
@@ -387,6 +392,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        machine_arch=`uname -m | sed -e 's/i.86/i386/'`
@@ -396,6 +402,7 @@
        need_pax=no
        need_mtree=no
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        check_prog paxprog pax
@@ -408,6 +415,7 @@
        need_pax=yes
        need_mtree=no
        need_bsd_install=no
+       need_awk=no
        need_sed=no
        set_opsys=no
        check_prog mtreeprog mtree
@@ -421,6 +429,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=no
+       need_awk=yes
        need_sed=yes
        set_opsys=no
        whoamiprog=/usr/ucb/whoami
@@ -431,6 +440,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=yes
+       need_awk=yes
        need_sed=yes
        need_fixed_strip=yes
        set_opsys=no
@@ -452,6 +462,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=yes
+       need_awk=yes
        need_sed=yes
        set_opsys=no
        # only used for unprivileged builds
@@ -468,6 +479,7 @@
        need_bsd_install=no
        BSTRAP_ENV="INSTALL=/usr/ucb/install $BSTRAP_ENV"
        need_mkdir=yes
+       need_awk=yes
        need_sed=yes
        whoamiprog=/usr/ucb/whoami
        set_opsys=no
@@ -478,6 +490,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=yes
+       need_awk=yes
        need_sed=yes
        set_opsys=no
        ;;
@@ -487,6 +500,7 @@
        need_pax=yes
        need_mtree=yes
        need_bsd_install=yes
+       need_awk=yes
        need_sed=yes
        set_opsys=no
        ;;
@@ -724,6 +738,28 @@
 
 bmake=$prefix/bin/bmake
 
+# bootstrap awk if necessary
+case "$need_awk" in
+yes)   echo_msg "Installing awk"
+       copy_src ../lang/nawk/files awk
+       run_cmd "(cd $wrkdir/awk && $bmake)"
+       run_cmd "$shprog $wrkdir/install-sh -c -o $user -g $group -m 755 $wrkdir/awk/a.out $prefix/bin/nawk"
+       run_cmd "$shprog $wrkdir/install-sh -c -o $user -g $group -m 644 $wrkdir/awk/nawk.1 $mandir/man1/nawk.1"
+       echo "TOOLS_PLATFORM.awk?=              $prefix/bin/nawk" >> ${MKCONF_EXAMPLE}
+       BSTRAP_ENV="AWK=\"$prefix/bin/nawk\" $BSTRAP_ENV"
+       ;;
+esac
+
+# bootstrap sed if necessary
+case "$need_sed" in
+yes)   echo_msg "Installing sed"
+       copy_src ../textproc/nbsed/files sed
+       run_cmd "(cd $wrkdir/sed; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat' LDFLAGS='$LDFLAGS -L../libnbcompat' LIBS='-lnbcompat' $shprog ./configure -C --prefix=$prefix --mandir=$mandir 
--sysconfdir=$sysconfdir --program-transform-name='s,sed,nbsed,' && $bmake && $bmake install)"
+       echo "TOOLS_PLATFORM.sed?=              $prefix/bin/nbsed" >> ${MKCONF_EXAMPLE}
+       BSTRAP_ENV="SED=\"$prefix/bin/nbsed\" $BSTRAP_ENV"
+       ;;
+esac
+
 if [ -z "$fetch_cmd" ]; then
        # bootstrap tnftp
        fetch_cmd="$prefix/bin/ftp"
@@ -769,16 +805,6 @@
        ;;
 esac
 
-# bootstrap sed if necessary
-case "$need_sed" in
-yes)   echo_msg "Installing sed"
-       copy_src ../textproc/nbsed/files sed
-       run_cmd "(cd $wrkdir/sed; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat' LDFLAGS='$LDFLAGS -L../libnbcompat' LIBS='-lnbcompat' $shprog ./configure -C --prefix=$prefix --mandir=$mandir 
--sysconfdir=$sysconfdir --program-transform-name='s,sed,nbsed,' && $bmake && $bmake install)"
-       echo "TOOLS_PLATFORM.sed?=              $prefix/bin/nbsed" >> ${MKCONF_EXAMPLE}
-       BSTRAP_ENV="SED=\"$prefix/bin/nbsed\" $BSTRAP_ENV"
-       ;;
-esac
-
 # bootstrap pkg_install
 echo_msg "Installing pkgtools"
 copy_src ../pkgtools/pkg_install/files pkg_install



Home | Main Index | Thread Index | Old Index