diff options
author | khorben <khorben@pkgsrc.org> | 2017-04-29 21:40:40 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2017-04-29 21:40:40 +0000 |
commit | 1f6a20b63814c6457c4d43c8776b03099fe85079 (patch) | |
tree | 65542a953b1cf719c0f64c2d2449877e39eb26f5 | |
parent | 6f2885f05a94c3f6a68b5a4d6df673cfb99a89b8 (diff) | |
download | pkgsrc-1f6a20b63814c6457c4d43c8776b03099fe85079.tar.gz |
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.
-rwxr-xr-x | bootstrap/bootstrap | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 486f5fb55ec..f69fe5e0da3 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -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> # All rights reserved. @@ -58,7 +58,7 @@ usage="Usage: $0 "' [ --binary-kit <tarball> ] [ --binary-macpkg <pkg> ] [ --compiler <compiler> ] - [ --cwrappers ] + [ --cwrappers <auto|yes|no> ] [ --full ] [ --gzip-binary-kit <tarball> ] [ --help ] @@ -407,7 +407,7 @@ sysconfdir= varbase= compiler="" -cwrappers=no +cwrappers=auto full=no make_jobs=1 mk_fragment= @@ -433,7 +433,8 @@ while [ $# -gt 0 ]; do --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 @@ BOOTSTRAP_MKCONF=${wrkdir}/mk.conf 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 |