[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is anyone looking at apt bugs affecting cross-dependencies?



On Fri, May 11, 2012 at 6:59 PM, Wookey <wookey@wookware.org> wrote:
> This apt bug is blocking a lot of cross-builds low in the stack.
> I'm just wondering if it is on anyone's radar and if so how much
> work they feel is involved and when it might get done? If not can
> someone give me some clue as to which bit of code might be involved
> (but I am utterly clueless about apt internals - it's probably eaier
> to fix it than explain to me what to look at)
>
> https://bugs.launchpad.net/ubuntu/+source/apt/+bug/970050

I will give it a look next week than i am back from UDS.

Launchpad-bugs tend to hide themself between Expires and random
machine-related segfaults, so at least for me they are quiet easy
to miss. Feel free to report them in the BTS, i personally tend to
monitor this way more closely, even if not ever bug gets an respond.


> Also, considering bootstrapping. I have a noddy patch to make apt
> not-complain about the extra headers
> (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661537 ) but for

It complains? Really?
Without looking at the code it should just ignore these files and
that should be fine as it doesn't support stages anyway.

> apt-get build-dep <package> to do the right thing for bootstrapping it
> needs to read Build-Depends-StageN instead of Build-Depends for
> <package> then do whatever it normally does. Again, some idea of how
> much work this is (hopefully not much, but I could be wrong), and
> clues where to look in the code would be very helpful.

It's in cmdline/apt-get.cc method DoBuildDep(), but to read other files
we need to change the sources parser which should be in
apt-pkg/deb/debsrcrecords.cc debSrcRecordParser::BuildDepends
a new option defining the stage and we should be good to go.
So it shouldn't be that hard to do… (famous last words).


> There are a couple of other things I want to ask on this subject but
> I'm out of time now. More later :-)

You are welcome. :)

Slightly related: If you have pointers to documentation on how someone
is supposed to be able to crossbuild, sharing would be nice.
As said, i haven't really touched crossbuilding so far…


Best regards

David Kalnischkies


Reply to: