[buildd-tools-devel] Bug#595934: Bug#595934: Bug#595934: sbuild: fails to install provided build-dependencies

Roger Leigh rleigh at codelibre.net
Mon Nov 1 21:42:08 UTC 2010


tags 595934 + patch fixed-upstream pending
thanks

On Mon, Nov 01, 2010 at 08:22:42PM +0000, Roger Leigh wrote:
> On Tue, Sep 07, 2010 at 02:33:41PM +0200, Lucas Nussbaum wrote:
> > sbuild breaks when trying to install build-dependencies that are
> > provided by another package.
> > Example building time 1.7-23:
> > E: Package 'automaken' has no installation candidate
> > automaken is a virtual package provided by: 
> > Using  (no default, using first one)
> 
> sbuild doesn't support the use of virtual build dependencies
> using the "internal" resolver.  It should do when using the
> "aptitude" resolver, but this isn't currently used by the
> buildds (except for experimental).
> 
> The internal resolver had limited (but broken) support for
> hard-coded alternatives, but not package-provided alternatives.
> I've recently ripped out the lot, since it was barely useful
> and non-functional.
> 
> We can in theory implement virtual package resolving in the
> internal resolver.  However, we would need to read and parse
> the entire apt database, dumped with "apt-cache show '.*' or
> equivalent.  I'd have to say, this will be both slow and not
> a very productive use of our time to write, especially when
> the aptitude resolver does this natively already.
> 
> If we do implement this, the main issue is which alternative
> to pick when there are multiple choices.  The first one found,
> first alphabetically, etc.?  Not sure what aptitude does, I
> think apt-get just installs the first.

It turns out this was actually really simple to implement, so
I've gone and done it.  Patch against current git master
branch attached.

If you'd like to try it out yourself, I'd be grateful for
some feedback.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sbuild-InternalBuildDepSatisfier-Resolve-simple-virt.patch
Type: text/x-diff
Size: 3187 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101101/68ea50d9/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Sbuild-Conf-Add-RESOLVE_VIRTUAL-option-to-disable-vi.patch
Type: text/x-diff
Size: 2280 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101101/68ea50d9/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101101/68ea50d9/attachment.pgp>


More information about the Buildd-tools-devel mailing list