diff options
author | triaxx <triaxx@pkgsrc.org> | 2019-11-05 13:58:06 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2019-11-05 13:58:06 +0000 |
commit | c1ad923e544b754e0ca1a85a5b199ab266111b29 (patch) | |
tree | d2f3be3dbfb169c752e50696869f95222a6b2deb | |
parent | 7ede1c24515d935aaf6aa1a5fcd9f51bb1f5a241 (diff) | |
download | pkgsrc-c1ad923e544b754e0ca1a85a5b199ab266111b29.tar.gz |
boostrap: need_awk=yes for Arch Linux
Arch uses GNU Awk 5 that breaks some regexps.
-rwxr-xr-x | bootstrap/bootstrap | 11 |
1 files 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 <agc@NetBSD.org> # 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. |