[Yum] yum and custom arch types.

seth vidal skvidal at fedoraproject.org
Fri Aug 27 03:12:21 UTC 2010


On Thu, 2010-08-26 at 16:16 -0500, Matthew Sellers wrote:
> Hi All,
> 
> I have been creating some packages with custom arch types to
> distinguish their build optimizations creating a packages with the
> following theme:
> 
> 1. mypackage-version.fc12.core2.rpm  # a package built for FC12 with
> core2 optimizations.
> 
> These foreign arch types are easily configured on a new system by
> updating /etc/rpmrc:
> 
> arch_compat: x86_64: amd64 athlon noarch core2
> 
> ...and also customizing /usr/lib/rpm/platforms/<my platform name> for
> build options.  This all works great until I try to use yum:
> 
>  yum localinstall Package-1.2.1-1.opt.fc13.core2.rpm
> Loaded plugins: presto, priorities, refresh-packagekit
> Setting up Local Package Process
> Examining Package-1.2.1-1.opt.fc13.core2.rpm: Package-1.2.1-1.opt.fc13.core2
> Cannot add package Package-1.2.1-1.opt.fc13.core2.rpm to transaction.
> Not a compatible architecture: core2
> Nothing to do
> 
> 
> So my quick questions:
> 
> 
>  I can get this to work by hacking rpmUtils/arch.py and adding:
> 
> "x86_64": "core2",   # arches dict() in arch.py
> 
> but this does not seem like the right way :-)   Can anybody comment on
> the procedure to get foreign "new" architectures fully recognized by
> yum?  Im sure im just missing something simple.


that's probably about it. There's no one to one correlation between rpm
and yum arches mainly b/c of the whole multilib "fun"

It is a place worth working on though.

-sv




More information about the Yum mailing list