churchyard / rpms / python3

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