lib/configure: Also accept host tuples without vendor string
Subsystems (2)
PATCH 1/1 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(-)
lib/configure +1 -1
@@ -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"
Signature · 1 line
2.0.5
Martin Mares
AppliedHello!
Quoted 2 lines
Based on patch from
https://bugs.gentoo.org/show_bug.cgi?id=425022
Thanks, applied. And sorry for the delay.
Have a nice fortnight
Signature · 3 lines
Martin `MJ' Mares <[email protected]> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth To understand a program you must become both the machine and the program.