Peter Meier wrote:
> is there any good tutorial to setup a box with mock, so x86_64 and
> i386 can both be installed as well various different distro
> versions?

Hmmm, there's http://fedoraproject.org/wiki/Projects/Mock, but that's
a bit light.  Though I do recall thinking it was easier to make it all
work than I thought it would be when I started using it, but that was
a long time ago and I could be waxing nostalgic. :)

On Fedora or RHEL/CentOS (with the EPEL repo enabled), it should be
more or less:

# yum install mock
# adduser -m -G mock build
# sudo -u build mock -r epel-5-i386 /path/to/srpm

I've not used mock outside of Fedora and CentOS boxes, so I don't know
how well it works with any other distributions.  I do use it to build
packages on x86_64 boxes for i386 as well as building for CentOS on
Fedora and vice versa.  The needed configuration files to do so are
all included in the mock packages in Fedora and EPEL.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Magary's Principle:
    When there is a public outcry to cut deadwood and fat from any
    government bureaucracy, it is the deadwood and the fat that do
    the cutting, and the public's services are cut.

Attachment: pgpIK8jPkFKtu.pgp
Description: PGP signature

Reply via email to