Easily build Mir's rdepends against local Mir packages

Christopher James Halse Rogers chris at cooperteam.net
Wed Aug 6 23:02:19 UTC 2014


Hey all!

As seen on IRC last night:

18:22 <camako> Seems like we need a way to replicate what the silos are 
doing - building mir, creating packages from it, installing them, and 
then building downstreams... I.e. not just building downstreams using 
mir binaries, but using mir packages......

Fortunately, this has an easy solution!

Using the magic of sbuild, you can build your Mir packages, create a 
repository out of them, and automatically use them to build other 
packages.

First, create a Utopic chroot with ‘mk-sbuild --eatmydata utopic’.

The attached schroot configuration files have the appropriate 
configuration. The 60-,80- files need to go in /etc/schroot/setup.d and 
sbuild-utopic-amd64 goes in /etc/schroot/chroots.d.

You'll need to edit the sbuild-utopic-amd64 config to make 
local.repository point at the sbuild output directory (Mine is set as 
$build_dir='/home/chris/Builds'; in ~/.sbuildrc).

You can now build the Mir packages in your chroot with a command like 
“sbuild -j9 -d utopic mir_0.6.0-0ubuntu1.dsc” and then build (eg) 
qtmir against those packages with “sbuild -j9 -d utopic-local 
qtmir_0.0.0~sillyversionstring.dsc”
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 60add-local-repository
Type: application/x-shellscript
Size: 494 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/mir-devel/attachments/20140807/8885f764/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sbuild-utopic-amd64
URL: <https://lists.ubuntu.com/archives/mir-devel/attachments/20140807/8885f764/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 80dynamic-proxy
Type: application/x-shellscript
Size: 1436 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/mir-devel/attachments/20140807/8885f764/attachment-0001.bin>


More information about the Mir-devel mailing list