[PATCH 8/9] ppc64le is its own arch treat it as such.

James Antill james at and.org
Wed Feb 12 23:27:14 UTC 2014


From: Dennis Gilmore <dennis at ausil.us>

 ppc64le is ppc64 little endian, it is a completely incompatable arch
to all other 64 bit power builds and can not be multilibbed with ppc.
While it works okay in the default Fedora setup its because Fedora
patches _ppc64_native_is_best to True as soon as its False you get
unexpected results.
 This patch covers things in both setups and makes it clear how it
works.

Signed-off-by: Dennis Gilmore <dennis at ausil.us>
---
 rpmUtils/arch.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py
index 6172b1a..54fa189 100644
--- a/rpmUtils/arch.py
+++ b/rpmUtils/arch.py
@@ -31,7 +31,10 @@ arches = {
     "x86_64": "athlon",
     "amd64": "x86_64",
     "ia32e": "x86_64",
-    
+
+    #ppc64le
+    "ppc64le":  "noarch",
+
     # ppc
     "ppc64p7": "ppc64",
     "ppc64pseries": "ppc64",
@@ -412,7 +415,7 @@ def getBestArch(myarch=None):
     if arch.startswith("sparc64"):
         arch = multilibArches[arch][1]
 
-    if arch.startswith("ppc64") and not _ppc64_native_is_best:
+    if arch.startswith("ppc64") and not _ppc64_native_is_best and arch != "ppc64le":
         arch = 'ppc'
 
     return arch
@@ -430,6 +433,8 @@ def getBaseArch(myarch=None):
 
     if myarch.startswith("sparc64"):
         return "sparc"
+    elif myarch == "ppc64le":
+        return "ppc64le"
     elif myarch.startswith("ppc64") and not _ppc64_native_is_best:
         return "ppc"
     elif myarch.startswith("arm64"):
-- 
1.7.7.6



More information about the Yum-devel mailing list