Bug#683786: apt-get cross build dependency resolution of arch:all, m-a:none packages
Hi David,
On Sun, Aug 05, 2012 at 01:53:35AM +0200, David Kalnischkies wrote:
> On Sat, Aug 4, 2012 at 7:25 PM, Johannes Schauer <j.schauer@email.de> wrote:
> > tldr: the issue seems solved, dose3 and apt-get only differ on 3 out of
> > 635 source packages. You can probably close this bugreport using your
> > fixed patch.
>
> Thanks for testing! Well appreciated that we have a second tool working on
> these cross-dependencies now around. Gives me personally a little more
> confident that at least not everything is wrong in that code …
> (frankly, I expected worse, given that I have never cross-compiled
> anything, so that my experience in that context is … limited.)
The bad news is, that I do not cross compile anything either and (just
like you) only look at the dependency situation :D So in the worst case,
both of our algorithms produces the same wrong results ^^
Maybe dpkg-checkbuilddeps can *somehow* be used for additional
verification?
> Now I just need to figure out how to get, build and run dose3. If you
> have some doc for this already written somewhere I would welcome a
> pointer, otherwise I presume I should reread your gsoc reports and get
> the info from there. :)
My mentor is currently on his holidays so he can only decide if he likes
my changes to dose3 and then apply them after he returns in a week or
so. Should he apply my patches as I wrote them, then testing cross
build dependency satisfaction will be accomplished using the existing
tool deb-buildcheck but with an additional --host option that tells to
cross compile instead of doing native compilation.
You would then install the package dose-builddebcheck and run:
dose-builddebcheck -v --summary --deb-native-arch=amd64 --deb-foreign-archs=armel,linux-any --host=armel Sid-amd64-armel.bz2 Sid-Sources.bz2
Once he is back and a decision/fixing of my patches has been made and
stuff is in Debian I can give you a heads-up.
Should you need that functionality earlier, you can send me a private
mail and I will send you the patches and tell how to apply and use them.
> > Both source packages build depend on libpng-dev which is a virtual
> > package provided by libpng12-dev which is also selected by apt in
> > its native version.
>
> Attached is a diff for bug-class which should ensure that APT chooses
> by default a host-arch packages (and especially a provider from that
> arch) instead of sometimes ending up using build-arch. Either by just
> not using build-arch if it could use host-arch (only if it needs to of
> course) or by erroring out if no solution exists instead of claiming
> everything is fine and ignoring all problems encountered.
>
>
> Our tests are fine with it and the two mentioned packages seem to be
> fine too (but I could solve build-deps before for both with an empty
> dpkg/status so I may as well just be lucky -- and it is late now in
> Germany, so I am probably even more "lucky" in overlooking new bugs
> than usual …). I will give it more thoughts until Monday - Michael
> should be back then, too.
Over night I was running "apt-get -s -aarmel build-dep" for all
18244 source packages in Debian Sid. I started this before going to bed
(also late in Germany here) so without the patch of your last email. So
as a result, without your last patch, there were only 119 out of those
18244 on which apt-get and dose3 disagreed. Running apt-get build-dep on
all those 18244 packages took 8h.
Now I applied your patch and re-ran apt-get build-dep on those packages
of the remaining 119 that apt-get was not failing on. Two third of those
now fail correctly (at least dose3 believes the same).
It might of course be that your last patch introduces different results
elsewhere so I will now restart the whole process and report back in 8h
with the overall result :)
cheers, josch
Reply to: