From 3c93f3c698c1ff444384b37f90e942243c1a7bbb Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Sun, 12 Apr 2015 09:16:28 +0200 Subject: [PATCH] lib/configure: Also accept host tuples without vendor string Based on patch from https://bugs.gentoo.org/show_bug.cgi?id=425022 --- lib/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configure b/lib/configure index 3783f57..7d4cec8 100755 --- a/lib/configure +++ b/lib/configure @@ -44,7 +44,7 @@ if [ -z "$HOST" ] ; then fi [ -n "$RELEASE" ] && rel="${RELEASE}" # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. -host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` +host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\2/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo " $host $rel $cpu $sys" -- 2.39.2