Blame SOURCES/BZ-1272058-arches.patch

eb5f31
commit 13a1fddf27dd16a70b639630d209c0f16bd5097e
eb5f31
Author: Dennis Gilmore <dennis@ausil.us>
eb5f31
Date:   Wed Feb 12 18:12:54 2014 -0500
eb5f31
eb5f31
     ppc64le is its own arch treat it as such.
eb5f31
    
eb5f31
     ppc64le is ppc64 little endian, it is a completely incompatable arch
eb5f31
    to all other 64 bit power builds and can not be multilibbed with ppc.
eb5f31
    While it works okay in the default Fedora setup its because Fedora
eb5f31
    patches _ppc64_native_is_best to True as soon as its False you get
eb5f31
    unexpected results.
eb5f31
     This patch covers things in both setups and makes it clear how it
eb5f31
    works.
eb5f31
    
eb5f31
    Signed-off-by: Dennis Gilmore <dennis@ausil.us>
eb5f31
eb5f31
diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py
eb5f31
index 6172b1a..54fa189 100644
eb5f31
--- a/rpmUtils/arch.py
eb5f31
+++ b/rpmUtils/arch.py
eb5f31
@@ -31,7 +31,10 @@ arches = {
eb5f31
     "x86_64": "athlon",
eb5f31
     "amd64": "x86_64",
eb5f31
     "ia32e": "x86_64",
eb5f31
-    
eb5f31
+
eb5f31
+    #ppc64le
eb5f31
+    "ppc64le":  "noarch",
eb5f31
+
eb5f31
     # ppc
eb5f31
     "ppc64p7": "ppc64",
eb5f31
     "ppc64pseries": "ppc64",
eb5f31
@@ -412,7 +415,7 @@ def getBestArch(myarch=None):
eb5f31
     if arch.startswith("sparc64"):
eb5f31
         arch = multilibArches[arch][1]
eb5f31
 
eb5f31
-    if arch.startswith("ppc64") and not _ppc64_native_is_best:
eb5f31
+    if arch.startswith("ppc64") and not _ppc64_native_is_best and arch != "ppc64le":
eb5f31
         arch = 'ppc'
eb5f31
 
eb5f31
     return arch
eb5f31
@@ -430,6 +433,8 @@ def getBaseArch(myarch=None):
eb5f31
 
eb5f31
     if myarch.startswith("sparc64"):
eb5f31
         return "sparc"
eb5f31
+    elif myarch == "ppc64le":
eb5f31
+        return "ppc64le"
eb5f31
     elif myarch.startswith("ppc64") and not _ppc64_native_is_best:
eb5f31
         return "ppc"
eb5f31
     elif myarch.startswith("arm64"):
eb5f31
commit 1a1a33f195a6fb6e8738e48fcb6142c53a539b6d
eb5f31
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
eb5f31
Date:   Tue Apr 5 14:54:05 2016 +0200
eb5f31
eb5f31
    Add aarch64 to rpmUtils.arch.arches.
eb5f31
eb5f31
diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py
eb5f31
index a3bade5..d63ec25 100644
eb5f31
--- a/rpmUtils/arch.py
eb5f31
+++ b/rpmUtils/arch.py
eb5f31
@@ -80,6 +80,9 @@ arches = {
eb5f31
     # arm64
eb5f31
     "arm64": "noarch",
eb5f31
 
eb5f31
+    # aarch64
eb5f31
+    "aarch64": "noarch",
eb5f31
+
eb5f31
     # super-h 
eb5f31
     "sh4a": "sh4",
eb5f31
     "sh4": "noarch",