[arch-dev-public] archbuild: building in a chroot for the lazy

Ray Rashif schivmeister at gmail.com
Fri Aug 20 07:21:11 EDT 2010

On 20 August 2010 19:09, Pierre Schmitz <pierre at archlinux.de> wrote:
> Hi all,
> atm every dev has his own scripts or he just doesn't build his packages
> in a chroot. Even though mkarchroot and makechrootpkg exist they are
> not straight forward to use and you need to configure your chroot
> properly.
> My long term goal is to create easy to use tools which will use the
> exact same build environment for everyone. The first attempt is now in
> testing with devtool-0.9.9.
> In short: All you need to do now is run e.g. extra-i686-build,
> testing-x86_64-build, staging-i686-build etc.. This will do all the
> boring work for you like creating the correct chroot etc..
> In more detail:
> * By default the script will create the chroots in /var/tmp/archbuild.
>  Make sure you have enough disk space here. You might use another dir
>  by using the -r switch.
> * The -c switch will recreate the chroot even if it already exists.
> * You can also build i686 pacakges on x86_64.
> * TUs can use extra-*-build and testing-*-build to build packages for
>  community or community-testing.
> * You user will need the permission to use sudo
> * Set PACKAGER, MAKEFLAGS, SRCDEST, PKGDEST in your ~/.makepkg.conf
> * the first enabled mirror in your mirrorlist will be used for the
>  chroots; local mirrors using file:// are supported.
> This is in early stage and far from ready. So feedback and feature
> request are more than welcome.

Very nice, Pierre!

But yes, you're right, we all have our own scripts to handle these in
one form or another. But thanks to this, now I can delete all the
extra dirs in /chroot and my stupid cheatcodes in ~/.bin like
chrootpkg-testing :)


More information about the arch-dev-public mailing list