FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

LinkBack Thread Tools
Old 09-18-2012, 02:53 AM
Gaetan Bisson
Default buildstuff: building packages in virtual machines

Hi everyone,

For the past several months, I have been building all my packages in
virtual machines using this set of scripts:


It has served me really well and I am very happy with how it performs.
However, the code is currently limited in many ways, mostly due to me
not caring enough to make it extensible and robust (since I have been
its only user). By advertising these scripts here, I am hoping others
will find them useful and possibly help improve them.

Essentially, from within any directory containing a PKGBUILD, this
package allows you to run, for instance,

arch.build i686 testing community-testing

to have that PKGBUILD built inside a clean (as in: clean chroots) 32-bit
virtual machine with [testing] and [community-testing] enabled on top of
[core], [extra], and [community]. The virtual machine runs entirely from
memory (except for a [base] image mounted as copy-on-write), which makes
the whole process very efficient.

Anyway, if you wish to give it a try, you should:
- have jfsutils installed [1]
- have a KVM-capable Intel CPU [2]
- have a couple gigs available in /var/lib
- have an SSH public key available as ~/.ssh/id_*.pub
- have an HTTP server run on localhost and put proxy.cgi at its root [3]

[1] Or replace jfs by another filesystem in arch.install and fstab.
[2] Or, if not Intel, adapt the modprobe line in arch.build.
[3] Or remove the sed line that mentions proxy.cgi from arch.install.

See the included README file for more information. Other prerequisites
might have slipped my mind, so let me know if you find any shortcomings.

To end on a negative note: I know the code sucks. But, if some of you
are interested, I'd be glad to improve this package with their help, so
feel free to send me any comments and suggestions you might have.


Old 09-20-2012, 11:08 PM
Gaetan Bisson
Default buildstuff: building packages in virtual machines

[2012-09-18 10:17:48 +0200] Thomas Bächler:
> Am 18.09.2012 04:53, schrieb Gaetan Bisson:
> > - have a KVM-capable Intel CPU [2]
> > [2] Or, if not Intel, adapt the modprobe line in arch.build.
> KVM modules are autoloaded now. If KVM is supported by your CPU,
> /dev/kvm should be present without any modprobe lines.

Ah, indeed; that's neat. Thanks.


Thread Tools

All times are GMT. The time now is 01:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org