pkgsrc-Changes archive

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

CVS commit: pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   gdt
Date:           Fri Jul  7 12:53:22 UTC 2023

Modified Files:
        pkgsrc/bootstrap: bootstrap

Log Message:
bootstrap: Use /usr/bin/bash more on SunOS

Document the meanings of bootstrap_foo vs fooprog.

On SunOS, if we find /usr/bin/bash and use it for bootstrap_sh, also
use it for shprog.  Resolves failure to run libarchive's configure on
old SunOS.  (It seems likely libarchive's configure is using modern
constructs that are best avoided, but it is also good to use a better
shell if available.)

Problem and solution from Vivianne Ombretta via pkgsrc-users.  The
explanatory comments are gdt's fault.


To generate a diff of this commit:
cvs rdiff -u -r1.319 -r1.320 pkgsrc/bootstrap/bootstrap

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.319 pkgsrc/bootstrap/bootstrap:1.320
--- pkgsrc/bootstrap/bootstrap:1.319    Tue Jun 27 14:36:41 2023
+++ pkgsrc/bootstrap/bootstrap  Fri Jul  7 12:53:22 2023
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.319 2023/06/27 14:36:41 riastradh Exp $
+# $NetBSD: bootstrap,v 1.320 2023/07/07 12:53:22 gdt Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -393,7 +393,9 @@ checkarg_sane_relative_path() {
 #
 # If we determine that a native version is good enough to use then it is saved
 # and we later write the appropriate TOOLS_PLATFORM variable to mk.conf to
-# override any further processing from mk/tools.
+# override any further processing from mk/tools.  Note that while these are
+# "bootstrap_foo" they are not used during bootstrap, but are stored in
+# TOOLS_PLATFORM.foo in the generated mk.conf.
 #
 bootstrap_awk=
 bootstrap_sed=
@@ -852,6 +854,7 @@ SunOS)
        if [ -x "/usr/bin/bash" ]; then
                bootstrap_sh=${SH:-/usr/bin/bash}
                bootstrap_sh_set=set
+               shprog=$bootstrap_sh
        else
                need_mksh=yes
        fi
@@ -964,6 +967,8 @@ if [ "x$preserve_path" != "xyes" ]; then
        PATH="$overpath:$PATH"
 fi
 
+# These programs are used during the bootstrapping process, as opposed
+# to $bootstrap_foo which are stored in mk.conf as TOOLS_PLATFORM.foo.
 check_prog awkprog awk
 check_prog chmodprog chmod
 if [ -n "$CP" ]; then



Home | Main Index | Thread Index | Old Index