Re: Recompiling source rpms for i386, i686 and x86_64 on the same box?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Jan 13, 2011 at 7:31 AM, Mister IT Guru <misteritguru@xxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux