Bug#815999: apt: please add an option to emulate debian buildd behaviour for apt-get build-dep
Control: tag -1 confirmed
On Fri, Feb 26, 2016 at 03:36:38PM +0100, Johannes Schauer wrote:
> Package: apt
> Version: 1.1.10
> Severity: wishlist
>
> Hi,
>
> in Debian, buildds (and also sbuild) mangle build dependencies when
> creating a dummy package for apt. In particular, sbuild removes all
> build dependency alternatives except for the first.
>
> The only exception to this rule is, when subsequent alternatives have
> the same name as the first alternative. In this case, those are also
> added to the OR.
>
> Here is the relevant code in sbuild:
>
> http://sources.debian.net/src/sbuild/0.68.0-1/lib/Sbuild/ResolverBase.pm/#L888
>
> This means:
>
> foo | bar -> foo
> foo | blub | foo -> foo | foo
>
> In practice, this is done such that constructs like:
>
> foo (>> 1) | foo (<< 2)
>
> are not reduced to
>
> foo (>> 1)
>
> But as you can see, the relevant code in sbuild never checks if the
> respective dependencies are versioned or not.
>
> Thanks!
>
> cheers, josch
>
Implemented in
https://github.com/Debian/apt/compare/master...julian-klode:master-pu
Let's see if that breaks anything, and what the Ubuntu guys have to say
about it, as I'd prefer keeping Ubuntu in sync during their feature
freeze.
--
Debian Developer - deb.li/jak | jak-linux.org - free software dev
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.
Reply to: