Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

Steve Langasek
Refined patch, now with test cases included.

This patch has been uploaded to Ubuntu for precise.

Thanks,
--
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[hidden email]                                     [hidden email]

build-deps-all-like-multiarch-foreign (10K) Download Attachment
signature.asc (845 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

Julian Andres Klode-4
On Thu, Apr 05, 2012 at 09:26:40PM -0700, Steve Langasek wrote:
> Refined patch, now with test cases included.
>
> This patch has been uploaded to Ubuntu for precise.

Have you talked to the dpkg developers about this? There is at
least dpkg-checkbuilddeps which checks build dependencies, and
I think dpkg also does build-time dependency handling in some
other tools. And as dpkg is one level lower than APT, I think
they should be asked first before doing something like this.

--
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

attachment0 (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

Nick Leverton
Hi,

TL;DR  Dpkg does the useful thing, apt-get build-dep doesn't.

I've just been getting a setup working for Debian cross-building.
At work I use OpenEmbedded which is a time consuming pain in
the neck.  I hope to get to a work flow that can replace crappy
embedded vendor toolchains but for the moment I'm following Wookie's
recipe at https://wiki.debian.org/CrossToolchains which complements
his talk at Cambridge mini-debconf.  To the extent that there is any
maintainer-supported user-level cross building support in Debian, this
seems to be it from my reading.

However this bug is a significant blocker to that work process.
Several of the basic Priority Essential packages won't cross-build
with target != host because of the current bug.

dpkg-checkbuilddeps already allows Arch:all Multi-Arch:none packages to
satisfy build-depends.  I've built apt with the patch here and this allows
"apt-get build-dep" to do the useful thing also.  Both the failures in
the attached log go away with this patch to apt.

Please therefore can this patch be applied and released ?

Many thanks

Nick Leverton

apt-build-dep.log (619 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

Nick Leverton
On Fri, Nov 21, 2014 at 12:50:54AM +0000, Nick Leverton wrote:
> embedded vendor toolchains but for the moment I'm following Wookie's

Err s/Wookie/Wookey/ *ahem* sorry.

Nick


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]
Archive: https://lists.debian.org/20141121010548.GC12212@...

Reply | Threaded
Open this post in threaded view
|

Bug#666772: apt cross-build-dep handling should be liberal with Arch: all packages

Johannes Schauer
In reply to this post by Nick Leverton
Hi,

Quoting Nick Leverton (2014-11-21 01:50:54)

> TL;DR  Dpkg does the useful thing, apt-get build-dep doesn't.
>
> I've just been getting a setup working for Debian cross-building.
> At work I use OpenEmbedded which is a time consuming pain in
> the neck.  I hope to get to a work flow that can replace crappy
> embedded vendor toolchains but for the moment I'm following Wookie's
> recipe at https://wiki.debian.org/CrossToolchains which complements
> his talk at Cambridge mini-debconf.  To the extent that there is any
> maintainer-supported user-level cross building support in Debian, this
> seems to be it from my reading.
>
> However this bug is a significant blocker to that work process.
> Several of the basic Priority Essential packages won't cross-build
> with target != host because of the current bug.
>
> dpkg-checkbuilddeps already allows Arch:all Multi-Arch:none packages to
> satisfy build-depends.

I don't think dpkg behaves different than apt here. Can you give the example?

Maybe you are running into dpkg bug #710769?

> I've built apt with the patch here and this allows "apt-get build-dep" to do
> the useful thing also.  Both the failures in the attached log go away with
> this patch to apt.
>
> Please therefore can this patch be applied and released ?

Treating Architecture:all packages implicitly as Multi-Arch:foreign would be
wrong for many Architecture:all packages. Here two examples of Architecture:all
packages that can NOT be marked Multi-Arch:foreign (without further work):

 - haskell-devscripts #769377
 - dh-ocaml #769379

If apt would treat all Architecture:all packages as Multi-Arch:foreign then
these two packages would have a wrong Multi-Arch annotation. This shows that
marking packages as Multi-Arch:foreign must be done with care and not in an
automated fashion.

cheers, josch


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]
Archive: https://lists.debian.org/20141121055836.6173.54215@hoothoot