UsingMach

From FedoraProject

Using Mach to do test builds of Packages for Fedora

This page seems outdated. Mach upstream has released mach-0.9.0 which is included in FC6 extras. FC6 is however not supported by mach...

mach allows you to set up clean build roots from scratch for any distribution or distribution variation supported. In this clean build root you can then easily generate pristine packages. mach is written in python. Currently, mach supports rpm-based distributions that can work with apt for rpm. SethVidal modified mach to work with yum; the current upstream package version 0.4.7 also works with either apt or yum.

You may wish to use the upstream version rather and Seth's packages. You may also wish to look at Mock , which is a rewrite of mach used by Fedora Extras (and available from their respository).

mach -c - collect the results of the build and put them in your current working directory rather than leaving them in /var/tmp

mach -k - do not clean out the chroot of packages before a build. This is useful to test for buildrequires solving a build problem before committing

mach -d - output A LOT of debug information about what's going on.

mach -r $chroot clean - will clean out your chroot. If you see an errorcode 127 from mach, do this and see if it resolves the problem.

Please add additional questions about how to use mach below and let me know what things you'd like to see explained more.

The adventurous can check out the bleeding edge codebase from CVS:
cvs -d :pserver:anonymous@cvs.fedora.redhat.com:/cvs/fedora co extras-buildsys-temp

What is the minimum version of yum required? With 2.1.11-3, I get this error:
That version is VERY old - use yum 2.2.1 - it's in updates-testing and has been used quite a bit with mach.
- DennisGregorovic