Answering my own question again, but I'm sure it'll help someone.

You need to hack:

/usr/lib/python2.4/site-packages/rpmUtils/arch.py

Look for "uname"

add immediately after:

return "i686"

You have to indent correctly or python spits the dummy. (Quite nice
actually, makes for visually pleasing code).

RPM and YUM now fully operational as is Apache 2.0. (see umlwiki for RPM
NPTLess hack(s))

Seems like RH have hacked at YUM and removed the YUM arch detector in
preference for the RPM detector. Might be someone else too. Python never
rebuilds the YUM version (meaning it's never called - but it's still
there).

Cheers
Phill.

On Mon, 2005-08-08 at 23:16 +1000, Phill Wombat wrote:
> Hi List,
> 
> Everyone is going to have this:
> 
> yum install httpd
> 
> yum proceeds to download the entire FC4/x86_64 distro! even though the
> UML is i386.
> 
> Essentially the issue is related to:
> 
> uname -a
> 
> which is executed by /usr/lib/python2.4/site-packages/yum/archwork.py
> 
> Python gets:
> 
> Linux uml-test.localdomain 2.6.12-bb10-skas0 #1 Sun Aug 7 00:11:09 EST
> 2005 x86_64 x86_64 x86_64 GNU/Linux
> 
> All the x86_64 strings make python think the architecture is x86_64.
> 
> I'm guessing this really needs to be the subject of a patch to give it
> the real/true/virtual? architecture of the UML. You know what I mean....
> 
> I'm still trying to hack away at this one. Anyone know how to mangle yum
> (python)? I've spotted the lines that need changing, but changing them
> doesn't do anything???. I know nothing of python.
> 
> BTW the UML is an i386 machine but the host is x86_64 (did I already
> mention that?).
> 
> Cheers
> Phill.
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to