[buildd-tools-devel] Bug#714149: sbuild: Let users push additional packages to the build dependencies dummy archive

Emanuele Aina emanuele.aina at collabora.com
Wed Jun 26 10:43:34 UTC 2013


Package: sbuild
Version: 0.64.0-1
Severity: wishlist
Tags: patch

When building related set of packages most people resort to set up a local
archive to enable the newly built packages to depend on locally built
dependencies for which the needed version has not hit the main archive yet.

Since sbuild already sets up a dummy archive for build dependencies, it could
also allow users to specify a list of packages that should be pushed there.

To do so I've added an --add-extra-package option that accepts a debfile and
can be used multiple times. It already allowed me to locally build packages
which depend on stuff not yet in the archive without any additional setup.

The git repo (`add-extra-package` branch) with the patches is at
http://cgit.collabora.com/git/user/em/sbuild/log/?h=add-extra-package

I also took the chance to refactor a bit the dummy archive handling and split
it out of the ResolverBase class. Even if not strictly needed it allowed me to
have a clear idea of the involved pieces and I think that the result is a bit
easier to understand and more flexible.

Comments and suggestions welcome, I'm not very proficient in Perl. :)



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-rc5-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sbuild depends on:
ii  adduser         3.113+nmu3
ii  apt-utils       0.9.8.2
ii  libsbuild-perl  0.64.0-1
ii  perl            5.14.2-21
ii  perl-modules    5.14.2-21

Versions of packages sbuild recommends:
ii  debootstrap  1.0.52
ii  fakeroot     1.19-2

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.14-2

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-add-extra-package.mbox
Type: text/x-diff
Size: 46065 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20130626/2e86321b/attachment-0001.diff>


More information about the Buildd-tools-devel mailing list