File mtpaint-3.50-fix-gcc-version-parsing.patch of Package mtpaint

Index: mtpaint-3.50/configure
===================================================================
--- mtpaint-3.50.orig/configure
+++ mtpaint-3.50/configure
@@ -389,6 +389,7 @@ HAVE_CC_VER()
 	# First 2 parts of GCC or Clang version
 	MT_VN0=${CCVER%%.*}
 	MT_VN1=${CCVER#$MT_VN0}
+	MT_VN1=${MT_VN1:-0}
 	MT_VN0=${MT_VN0%%[!0-9]*}
 	MT_VN1=${MT_VN1#.}
 	MT_VN1=${MT_VN1%%[!0-9]*}
openSUSE Build Service is sponsored by