Linux Archive

Linux Archive (
-   Fedora Infrastructure (
-   -   remove rhpl.getArch() calls (

David Cantrell 06-04-2008 12:53 AM

remove rhpl.getArch() calls
Attached are my patches to remove rhpl.getArch() calls and use new
functions in iutil. Notes:

1) The new functions are at the end of

2) isX86() returns true for 32-bit and 64-bit x86 processors, but you
can pass bits=[32|64] to test just one subset (this is used in getArch
further down).

2.5) The getArch() function returns a string naming the processor we
are on (but sanitized to match names we need during installation, e.g.
all 32-bit x86 processors are called 'i386', all 64-bit x86 processors
are called 'x86_64', all ppc processors are called 'ppc', and so on
like we use during installation), whereas the isArch() functions just
return true or false if the processor is in that arch family.

3) The iutil.getPPCMachine() function grew a chunk of code because it
was calling another function in rhpl. I just merged it with
getPPCMachine() in

4) Almost all uses of rhpl.getArch() throughout anaconda are to test
to see if we are on s390 or not and do something special. IBM, I hope
you're reading this because the next time you tell me that the s390
platform is some sort of standard, I'm referring to these patches.

5) There are two uses of rhpl.arch.canonArch, one in and one
in Didn't touch do anything about that code in these
patches. Maybe later.

6) Defined an isSparc() and isAlpha() since we have those in rhpl and
use them in anaconda.


David Cantrell <>
Red Hat / Honolulu, HI

Anaconda-devel-list mailing list

All times are GMT. The time now is 04:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.