Blame SOURCES/00274-fix-arch-names.patch

036b9c
From 3b0d3a25576e74c2ac1eb25136ae811bdbdd7c6c Mon Sep 17 00:00:00 2001
036b9c
From: Tomas Orsava <torsava@redhat.com>
036b9c
Date: Thu, 14 Feb 2019 16:08:57 +0100
036b9c
Subject: [PATCH] Upstream uses Debian-style architecture naming. Change to
036b9c
 match Fedora / RHEL
036b9c
036b9c
---
036b9c
 config.sub   |  2 +-
036b9c
 configure.ac | 16 ++++++++--------
036b9c
 2 files changed, 9 insertions(+), 9 deletions(-)
036b9c
036b9c
diff --git a/config.sub b/config.sub
036b9c
index 40ea5df..932128b 100755
036b9c
--- a/config.sub
036b9c
+++ b/config.sub
036b9c
@@ -1045,7 +1045,7 @@ case $basic_machine in
036b9c
 		;;
036b9c
 	ppc64)	basic_machine=powerpc64-unknown
036b9c
 		;;
036b9c
-	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
036b9c
+	ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
036b9c
 		;;
036b9c
 	ppc64le | powerpc64little)
036b9c
 		basic_machine=powerpc64le-unknown
036b9c
diff --git a/configure.ac b/configure.ac
036b9c
index a075ce3..b7f2ee3 100644
036b9c
--- a/configure.ac
036b9c
+++ b/configure.ac
036b9c
@@ -788,9 +788,9 @@ cat >> conftest.c <
036b9c
         alpha-linux-gnu
036b9c
 # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
036b9c
 #  if defined(__ARMEL__)
036b9c
-        arm-linux-gnueabihf
036b9c
+        arm-linux-gnueabi
036b9c
 #  else
036b9c
-        armeb-linux-gnueabihf
036b9c
+        armeb-linux-gnueabi
036b9c
 #  endif
036b9c
 # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
036b9c
 #  if defined(__ARMEL__)
036b9c
@@ -810,7 +810,7 @@ cat >> conftest.c <
036b9c
 #  elif _MIPS_SIM == _ABIN32
036b9c
         mips64el-linux-gnuabin32
036b9c
 #  elif _MIPS_SIM == _ABI64
036b9c
-        mips64el-linux-gnuabi64
036b9c
+        mips64el-linux-gnu
036b9c
 #  else
036b9c
 #   error unknown platform triplet
036b9c
 #  endif
036b9c
@@ -820,22 +820,22 @@ cat >> conftest.c <
036b9c
 #  elif _MIPS_SIM == _ABIN32
036b9c
         mips64-linux-gnuabin32
036b9c
 #  elif _MIPS_SIM == _ABI64
036b9c
-        mips64-linux-gnuabi64
036b9c
+        mips64-linux-gnu
036b9c
 #  else
036b9c
 #   error unknown platform triplet
036b9c
 #  endif
036b9c
 # elif defined(__or1k__)
036b9c
         or1k-linux-gnu
036b9c
 # elif defined(__powerpc__) && defined(__SPE__)
036b9c
-        powerpc-linux-gnuspe
036b9c
+        ppc-linux-gnuspe
036b9c
 # elif defined(__powerpc64__)
036b9c
 #  if defined(__LITTLE_ENDIAN__)
036b9c
-        powerpc64le-linux-gnu
036b9c
+        ppc64le-linux-gnu
036b9c
 #  else
036b9c
-        powerpc64-linux-gnu
036b9c
+        ppc64-linux-gnu
036b9c
 #  endif
036b9c
 # elif defined(__powerpc__)
036b9c
-        powerpc-linux-gnu
036b9c
+        ppc-linux-gnu
036b9c
 # elif defined(__s390x__)
036b9c
         s390x-linux-gnu
036b9c
 # elif defined(__s390__)
036b9c
-- 
036b9c
2.20.1
036b9c