[buildd-tools-devel] Bug#622832: Bug#622832: sbuild: build-deps not satisfied for "foo (<< 1) | foo (>= 2)"

Roger Leigh rleigh at codelibre.net
Fri Apr 15 08:03:28 UTC 2011


On Fri, Apr 15, 2011 at 02:13:58AM +0200, Jakub Wilk wrote:
> Package: sbuild
> Version: 0.62.2-1
> 
> If a package build-depends on "foo (<< 1) | foo (>= 2)" and only
> "foo (>= 2)" is available, the package fails to build. This used to
> work fine in the past (and still works with
> --build-dep-resolver=internal).
> 
> As far as I can tell, we have currently two packages in the archive
> with such build-dependencies:
> 
> Package: pymvpa
> Build-Depends: […], python-docutils (<< 0.6) | python-docutils (>= 0.6-3~), […]
> 
> Package: sawfish
> Build-Depends: […], texinfo (<< 4.11) | texinfo (>= 4.11.dfsg.1-3), […]

This is a case where we tightened up the resolver behaviour in the
apt and aptitude resolvers.

apt and aptitude can be configured to consider all alternatives with
$resolve_alternatives=1
By default, they strip out all alternatives except for the first one
when building the dependency package.

Internal also considers just the first, but with one exception: if one
of the alternatives was already installed on the system, it would use
that instead of the first.  This made the behaviour of the internal
resolver somewhat dependent upon how clean the chroot environment was;
for apt and aptitude, we make it completely consistent.

The general idea is that when building in unstable, we only ever
use the first alternative, which gives us predictable and consistent
results.  When building for other distributions, e.g. experimental
and backports, they can be configured to use all alternatives.


Regards,
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: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110415/44c45c4a/attachment.pgp>


More information about the Buildd-tools-devel mailing list