From ea13fd435589cbf89bc30eb61896e06ca08ad7ef Mon Sep 17 00:00:00 2001 From: khorben Date: Sat, 29 Apr 2017 21:40:40 +0000 Subject: 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. --- bootstrap/bootstrap | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bootstrap') 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 # All rights reserved. @@ -58,7 +58,7 @@ usage="Usage: $0 "' [ --binary-kit ] [ --binary-macpkg ] [ --compiler ] - [ --cwrappers ] + [ --cwrappers ] [ --full ] [ --gzip-binary-kit ] [ --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 -- cgit v1.2.3