Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144548 Details for
Bug 220953
[PATCH]: Add better support for the multitude of sparc arches
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
add sparc support
yum-sparc.patch (text/plain), 3.26 KB, created by
Dennis Gilmore
on 2006-12-29 15:42:07 UTC
(
hide
)
Description:
add sparc support
Filename:
MIME Type:
Creator:
Dennis Gilmore
Created:
2006-12-29 15:42:07 UTC
Size:
3.26 KB
patch
obsolete
>? yum-sparc.patch >Index: rpmUtils/arch.py >=================================================================== >RCS file: /cvsroot/yum/cvs/yum/rpmUtils/arch.py,v >retrieving revision 1.13 >diff -u -r1.13 arch.py >--- rpmUtils/arch.py 23 Oct 2005 16:03:42 -0000 1.13 >+++ rpmUtils/arch.py 27 Dec 2006 18:09:39 -0000 >@@ -5,7 +5,10 @@ > > # dict mapping arch -> ( multicompat, best personality, biarch personality ) > multilibArches = { "x86_64": ( "athlon", "x86_64", "athlon" ), >- "sparc64": ( "sparc", "sparc", "sparc64" ), >+ "sparcv8": ( "sparc", "sparcv8", "sparc64" ), >+ "sparcv9": ( "sparc", "sparcv9", "sparc64" ), >+ "sparc64": ( "sparc", "sparcv9", "sparc64" ), >+ "sparc64v": ( "sparc", "sparcv9v", "sparc64v" ), > "ppc64": ( "ppc", "ppc", "ppc64" ), > "s390x": ( "s390", "s390x", "s390" ), > "ia64": ( "i686", "ia64", "i686" ) >@@ -38,7 +41,9 @@ > "s390": "noarch", > > # sparc >- "sparc64": "sparcv9", >+ "sparc64v": "sparc64", >+ "sparc64": "sparcv9v", >+ "sparcv9v": "sparcv9", > "sparcv9": "sparcv8", > "sparcv8": "sparc", > "sparc": "noarch", >@@ -120,12 +125,22 @@ > # this returns a list of archs that are compatible with arch given > if not thisarch: > thisarch = getCanonArch() >- >+ > archlist = [thisarch] > while arches.has_key(thisarch): > thisarch = arches[thisarch] > archlist.append(thisarch) >- >+ >+ if archlist[0] == "sparc64": >+ archlist.remove("sparcv9v") >+ if archlist[0] == "sparcv8": >+ archlist.insert(0,"sparc64") >+ if archlist[0] == "sparcv9": >+ archlist.insert(0,"sparc64") >+ if archlist[0] == "sparcv9v": >+ archlist.insert(0,"sparc64") >+ archlist.insert(0,"sparc64v") >+ > return archlist > > >@@ -190,6 +205,32 @@ > if vendor.find("GenuineIntel") != -1: > return "ia32e" > return arch >+ >+def getCannonSPARCArch(arch): >+ if arch != "sparc64": >+ return arch >+ >+ type = None >+ f = open("/proc/cpuinfo", "r") >+ lines = f.readlines() >+ f.close() >+ >+ for line in lines: >+ if line.find("type") != -1: >+ type = line.split(':')[1] >+ break >+ if type is None: >+ return arch >+ >+ if type.find("sun4v") != -1: >+ return "sparc64v" >+ if type.find("sun4u") != -1: >+ return "sparcv9" >+ if type.find("sun4m") != -1: >+ return "sparcv8" >+ return arch >+ >+ > > def getCanonArch(skipRpmPlatform = 0): > if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): >@@ -211,6 +252,8 @@ > return getCanonPPCArch(arch) > if arch == "x86_64": > return getCanonX86_64Arch(arch) >+ if arch.startswith("sparc"): >+ return getCannonSPARCArch(arch) > > return arch > >@@ -228,7 +271,7 @@ > def getBestArch(): > arch = canonArch > >- if arch == "sparc64": >+ if arch.startswith("sparc64"): > arch = "sparc" > > if arch.startswith("ppc64"): >@@ -247,7 +290,7 @@ > if not arches.has_key(myarch): # this is dumb, but <shrug> > return myarch > >- if myarch == "sparc64": >+ if myarch.startswith("sparc64"): > return "sparc" > elif myarch.startswith("ppc64"): > return "ppc"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220953
:
144548
|
144574