Friday 21 June 2013

Simple(r) sbuild setup

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBAgAGBQJRxPweAAoJEGnv7NPGHSZFSRYP/2KY1HII/DCAYSnBcFDiQXYc
CghOomgNPRQU9tNSxW8SJk/Yre5VlmSn2JAylg2WibTgDK5AD7p4bklrut9Z01ig
N2RkSjrxBzfuluUBV2CKcopUhwAL2Q8bo9KzKtQBF5S0zOYd4lvRzZIiUkD8iz8C
FLZfsmwf/0BGW0CWqo8+d4i6FGfAVN3p3Ma56Q0OY1sPowEswTyk71ony0sR3J5h
OfUptsAjcLjwlx0EIVnFrLN3soqp20V1eqJ8o5MaVAhDUK+YzmKD00DD5WQmuyOL
gGoAm+RfbbWECB0ZjRF2J+FzCTd3DfRna8Tx9t7n08ElmDanwRlBtKTJSMqMWQvO
t9g8uUJXu8KMvvfuS0ZyBw9Q8n1OiYKaLnyggtCm1AJdK4ar1Ce1rTywhFPC6Wrg
aFhkSXKbbn7ApFlOS2rsfURjej6A8ZLSEfYLtFqc1//dFsg6/BzD4hFAh4mQDdrH
urVWRim24LvtE/ZT8DGDndBpYgutBWwa294E9zIuCb9yETrJ31UpGoC4jdLGnRML
VjsJ9b7yI5yY93Ea7V1+SCQ06k03uYYnkuM8OvgMYN+0zbAg9UvRtbAwv99FBcGS
imNwCLYiT0sgE8DmyiVopeku5bpSm8O6/Vb1NdeNfR2UV0+tZQ/CKPNn6VmpCC3f
nS9q3zfiY3c1gTOVG8jJ
=oE5O
-----END PGP SIGNATURE-----
Hey all,

Adding tests to our build process has proven to be a hit'n'miss effort
for a bit - not having a build setup closely resembling the PPA / distro
ones made it so that even if a package went through CI (pbuilder) fine,
it sometimes failed in the PPA due to some intricacies of the setup, or
simply missing dependencies.

I've been happily using an sbuild setup (with apt-cacher-ng and building
on shm - blazing fast!) based on [1] and [2], but the amount of
information you're not generally interested in when you want to just try
a build locally on that Wiki page made it so I couldn't really recommend
going through it to anyone.

I've spent some hours today to prepare a simple (erm... simpler - still
ended up quite big, not nearly as short as with pbuilder-scripts) guide
[3] on how to set it all up.

Thanks Barry for pointing me at all that in the first place!

Hope it helps and speeds up our lives, if only just by a bit.

[1] https://wiki.ubuntu.com/SecurityTeam/BuildEnvironment
[2]
http://www.wefearchange.org/2011/09/sbuild-with-local-newer-dependencies.html
[3] https://wiki.ubuntu.com/SimpleSbuild

Rock on!
--
MichaƂ (Saviq) Sawicz <michal.sawicz@canonical.com>
Canonical Services Ltd.