[CentOS] Recompiling source rpms for i386, i686 and x86_64 on the same box?

Fri Jan 14 11:25:35 UTC 2011
Mister IT Guru <misteritguru at gmx.com>

On 13/01/2011 13:33, Ryan Wagoner wrote:
> On Thu, Jan 13, 2011 at 7:31 AM, Mister IT Guru<misteritguru at gmx.com>  wrote:
>> I have an x86_64 box running Xen, so a paravirtualised guest has just
>> been ordered for building a Mock Environment. I'm going to have to run
>> to Google to learn more in the short space of time I have open to me,
>> you guys seems to be nudging me in the right direction.
>>
> Mock is easy to use. You can install it with yum install mock. You
> will want to set the packager and dist variables in
> /etc/mock/centos-5-arch.cfg. As far as building SRPMS the command is
> as simple as
>
> For i386 on a x86_64 box
> setarch i386 mock -r centos-5-i386.cfg
> --resultdir=/home/yourhomedir/mock/ package.srpm
>
> For x86_64
> mock -r centos-5-x86_64.cfg --resultdir=/home/yourhomedir/mock/ package.srpm
>
> Ryan
> ________

This is good news indeed! Okay, I'm going to build my VM for building 
this stuff - I'll be back on the list with any questions as I go through 
this.

-- 
The Solo System Admin - Follow me - I follow you
http://solosysad.blogspot.com/
Latest Entry: Bacula - Building from source
--
Mister IT Guru At Gmx Dot Com