summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-02-02 15:53:44 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-02-02 15:53:44 +0000
commitef6f179583069f8dc33219fc5d32753f28733162 (patch)
treee22afc64fa6a1bb876959cc1b3bb3000f1a2e2c2 /bootstrap/bootstrap
parent98c547ec46a3cfb2a5aa281cf416d149ed296b5e (diff)
downloadpkgsrc-ef6f179583069f8dc33219fc5d32753f28733162.tar.gz
Use pkgsrc awk on ChromeOS.
Since Chrome 64, /usr/bin/awk has been a version of mawk that is permanently in restricted mode. Notably, this means it cannot run pipes, which pkgsrc requires. Use nawk.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 9e8aa08d577..7c18e5126b6 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.245 2017/12/09 00:33:36 sevan Exp $
+# $NetBSD: bootstrap,v 1.246 2018/02/02 15:53:44 bsiegert Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -707,10 +707,13 @@ Linux)
root_group=root
fi
need_bsd_install=no
+ CHROMEOS_RELEASE_NAME!= awk -F = '$$1 == "CHROMEOS_RELEASE_NAME" { print $$2 }' /etc/lsb-release
# Debian/Ubuntu's awk is mawk, and mawk does not understand
# some regexp used in pkgsrc/mk.
if [ -f /etc/debian_version ]; then
need_awk=yes
+ elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then
+ need_awk=yes
else
need_awk=no
fi