From c1ad923e544b754e0ca1a85a5b199ab266111b29 Mon Sep 17 00:00:00 2001 From: triaxx Date: Tue, 5 Nov 2019 13:58:06 +0000 Subject: boostrap: need_awk=yes for Arch Linux Arch uses GNU Awk 5 that breaks some regexps. --- bootstrap/bootstrap | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index e27a923597b..df9105f58ab 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.271 2019/09/13 20:10:35 rillig Exp $ +# $NetBSD: bootstrap,v 1.272 2019/11/05 13:58:06 triaxx Exp $ # # Copyright (c) 2001-2011 Alistair Crooks # All rights reserved. @@ -747,6 +747,11 @@ Linux) # some regexp used in pkgsrc/mk. if [ -f /etc/debian_version ]; then need_awk=yes + # Arch uses gawk 5 that breaks some regexps. It doesn't provide pax + # anymore. + elif [ -f /etc/arch-release ]; then + need_awk=yes + need_pax=yes elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then need_awk=yes need_sed=yes @@ -754,10 +759,6 @@ Linux) need_awk=no need_sed=no fi - # Arch does not provide pax anymore - if [ -f /etc/arch-release ]; then - need_pax=yes - fi set_opsys=no machine_arch=`uname -m` # Override machine_arch where required. -- cgit v1.2.3