[Yum-devel] [PATCH] yum: install foreign arch

seth vidal skvidal at linux.duke.edu
Tue Aug 1 11:57:29 UTC 2006


On Tue, 2006-08-01 at 01:07 -0500, Ken MacLeod wrote:
> It turned out to be much easier than I expected to support a foreign
> architecture.  Guided by a FIXME in yum/config.py (FIXME make this
> configurable??), I added 'arch' as a config option in yum.conf.  It
> defaults to rpmUtils.arch.getCanonArch().
> 
> I removed the score() function and canonArch module variable from
> rpmUtils/arch.py.  Neither had any callers in yum or yum-utils.
> canonArch was being initialized at module load time (so couldn't be
> configured) and score() is just a wrapper around archDifference using
> canonArch.
> 
> A little more detail is in the ChangeLog.
> 
> I've tested this with both a native install and a foreign install.
> Attached below is a 'ppc' yum.conf you can use to test with.  Note the
> repo has $releasever replaced with '5'.  _getsysver doesn't like it
> when the installroot is missing the 'distroverpkg'.

What is the usage case for this patch? You won't be able to run the
scriptlets for the packages so why would we want to install them?

-sv





More information about the Yum-devel mailing list