pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/bootstrap Allow bootstrapping without cwrappers
details: https://anonhg.NetBSD.org/pkgsrc/rev/2ce0d53d6733
branches: trunk
changeset: 361950:2ce0d53d6733
user: khorben <khorben%pkgsrc.org@localhost>
date: Sat Apr 29 21:40:40 2017 +0000
description:
Allow bootstrapping without cwrappers
Since cwrappers was enabled by default on some platforms, it became
effectively impossible to bootstrap without cwrappers there.
With this change "--cwrappers" needs to be set to "auto", "yes" or "no"
explicitly when used.
No functional change intended without specifying "--cwrappers" (or with
"auto").
Submitted on tech-pkg@ with no objection.
diffstat:
bootstrap/bootstrap | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r d2aa3e91d9d0 -r 2ce0d53d6733 bootstrap/bootstrap
--- a/bootstrap/bootstrap Sat Apr 29 18:33:34 2017 +0000
+++ b/bootstrap/bootstrap Sat Apr 29 21:40:40 2017 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.240 2017/02/11 16:08:31 tron Exp $
+# $NetBSD: bootstrap,v 1.241 2017/04/29 21:40:40 khorben Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
# All rights reserved.
@@ -58,7 +58,7 @@
[ --binary-kit <tarball> ]
[ --binary-macpkg <pkg> ]
[ --compiler <compiler> ]
- [ --cwrappers ]
+ [ --cwrappers <auto|yes|no> ]
[ --full ]
[ --gzip-binary-kit <tarball> ]
[ --help ]
@@ -407,7 +407,7 @@
varbase=
compiler=""
-cwrappers=no
+cwrappers=auto
full=no
make_jobs=1
mk_fragment=
@@ -433,7 +433,8 @@
--compiler) compiler="$2"; shift ;;
--abi=*) abi=`get_optarg "$1"` ;;
--abi) abi="$2"; shift ;;
- --cwrappers) cwrappers=yes ;;
+ --cwrappers=*) cwrappers=`get_optarg "$1"` ;;
+ --cwrappers) cwrappers="$2"; shift ;;
--unprivileged | --ignore-user-check) unprivileged=yes ;;
--prefer-pkgsrc=*)
prefer_pkgsrc=`get_optarg "$1"` ;;
@@ -1086,8 +1087,8 @@
cp ${TARGET_MKCONF} ${BOOTSTRAP_MKCONF}
case "$cwrappers" in
-yes)
- echo "USE_CWRAPPERS= yes" >> ${TARGET_MKCONF}
+yes|no)
+ echo "USE_CWRAPPERS= $cwrappers" >> ${TARGET_MKCONF}
echo "" >> ${TARGET_MKCONF}
;;
esac
Home |
Main Index |
Thread Index |
Old Index