[buildd-tools-devel] Bug#693222: Bug#693222: sbuild: set --build-dep-resolver (possibly other options) per chroot or distribution

Roger Leigh rleigh at codelibre.net
Wed Nov 14 16:14:39 UTC 2012


On Wed, Nov 14, 2012 at 12:35:22PM +0000, Simon McVittie wrote:
> Official buildds handle this by having separate unstable, experimental and
> backports buildds with their own configuration, and setting
> $build_dep_resolver = 'aptitude' on the experimental and backports buildds.
> 
> When using a personal sbuild to ensure that the uploaded/tested binaries
> match what would have been produced by a buildd (which is how I do all of
> my uploads), it would be useful to be able to switch between modes a
> little more gracefully than setting --build-dep-resolver for every
> experimental or backports build.
> 
> Perhaps something like this? (this is how I anticipate the default would look)
> 
>     $build_dep_resolver = 'apt';
>     $distribution_build_dep_resolvers = {
>         experimental => 'aptitude',
> 	'squeeze-backports' => 'aptitude',
> 	'wheezy-backports' => 'aptitude',
> 	'jessie-backports' => 'aptitude',
>     };

With schroot 1.6 in testing/unstable, I've added the ability to
add arbitrary additional metadata to the chroot configuration.
So you can, for example, do this:

    [unstable-amd64-sbuild]
    type=btrfs-snapshot
    ...
    sbuild.resolver=aptitude
    sbuild.distribution=experimental

That is to say, that we move the distribution-specific defaults
into the chroot definition for that distribution, and then have
sbuild use these as the defaults (unless overridden on the
command-line).  This would be a general solution to the
distribution-specific configuration stuff in buildd and sbuild.

We can certainly add something like your suggestion above,
since we already do it for $mailto and in buildd.  But if you
think that the above is an acceptable solution, it would
serve as a more general solution to the problem overall, as
well as being somewhat more extensible--you can add others
to suit your needs without having to have support for them
in sbuild directly.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Buildd-tools-devel mailing list