Skip to content

Commit

Permalink
ppc64le is its own arch treat it as such.
Browse files Browse the repository at this point in the history
 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 <[email protected]>
  • Loading branch information
ausil authored and james-antill committed Feb 12, 2014
1 parent 6e4a68c commit 13a1fdd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rpmUtils/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"x86_64": "athlon",
"amd64": "x86_64",
"ia32e": "x86_64",


#ppc64le
"ppc64le": "noarch",

# ppc
"ppc64p7": "ppc64",
"ppc64pseries": "ppc64",
Expand Down Expand Up @@ -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
Expand All @@ -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"):
Expand Down

0 comments on commit 13a1fdd

Please sign in to comment.