Received: by mail.netbsd.org (Postfix, from userid 605) id 52DE884E6F; Mon, 6 Jul 2020 10:21:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D0E8484E6E for ; Mon, 6 Jul 2020 10:21:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id iNb0melRL7Oh for ; Mon, 6 Jul 2020 10:21:01 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 544BA84DE1 for ; Mon, 6 Jul 2020 10:21:01 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4702EFB28; Mon, 6 Jul 2020 10:21:01 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_159403086114890" MIME-Version: 1.0 Date: Mon, 6 Jul 2020 10:21:01 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/bootstrap To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20200706102101.4702EFB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_159403086114890 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Mon Jul 6 10:21:01 UTC 2020 Modified Files: pkgsrc/bootstrap: bootstrap Log Message: bootstrap: Enable support for building mksh. Over time, and as they are tested, platforms will be migrated over to shells/mksh ($need_mksh) instead of shells/pdksh ($need_ksh) when a bootstrap shell is required. Once mksh is selected, it takes precedence over pdksh. Our shells/pdksh has been unmaintained for many years and has known issues, shells/mksh is expected to provide a portable, fast, and well maintained alternative. To generate a diff of this commit: cvs rdiff -u -r1.283 -r1.284 pkgsrc/bootstrap/bootstrap Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_159403086114890 Content-Disposition: inline Content-Length: 1926 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/bootstrap/bootstrap diff -u pkgsrc/bootstrap/bootstrap:1.283 pkgsrc/bootstrap/bootstrap:1.284 --- pkgsrc/bootstrap/bootstrap:1.283 Mon Jun 29 12:38:03 2020 +++ pkgsrc/bootstrap/bootstrap Mon Jul 6 10:21:01 2020 @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.283 2020/06/29 12:38:03 jperkin Exp $ +# $NetBSD: bootstrap,v 1.284 2020/07/06 10:21:01 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks # All rights reserved. @@ -871,6 +871,11 @@ yes) ;; esac +# mksh and ksh are mutually exclusive, prefer mksh while we transition to it. +case "$need_mksh" in +yes) need_ksh=no ;; +esac + case "$quiet" in yes) configure_quiet_flags="--quiet" @@ -1174,6 +1179,20 @@ echo_msg "Building libnbcompat" copy_src $pkgsrcdir/pkgtools/libnbcompat/files libnbcompat run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --enable-bsd-getopt --enable-db && $bmake $make_quiet_flags -j$make_jobs)" +# bootstrap mksh if necessary +case "$need_mksh" in +yes) echo_msg "Bootstrapping mksh" + copy_src $pkgsrcdir/shells/mksh/files mksh + run_cmd "(cd $wrkdir/mksh && env $BSTRAP_ENV CC=\"${CC}\" $shprog Build.sh -r)" + run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/mksh/mksh $wrkdir/bin/mksh" + echo "TOOLS_PLATFORM.sh?= $prefix/bin/mksh" >> ${TARGET_MKCONF} + echo "TOOLS_PLATFORM.sh?= $wrkdir/bin/mksh" >> ${BOOTSTRAP_MKCONF} + echo_msg "Rebootstrapping bmake for mksh" + bmakexargs="$bmakexargs --with-defshell=$wrkdir/bin/mksh" + bootstrap_bmake + ;; +esac + # bootstrap ksh if necessary case "$need_ksh" in yes) echo_msg "Bootstrapping ksh" @@ -1351,6 +1370,9 @@ yes) fi ;; esac +case "$need_mksh" in +yes) build_package "shells/mksh";; +esac case "$need_ksh" in yes) build_package "shells/pdksh";; esac --_----------=_159403086114890--