From: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
To: Johannes Schauer Marin Rodrigues <josch@debian.org>,
Ben Hutchings <ben@decadent.org.uk>
Cc: "debian-kernel@lists.debian.org" <debian-kernel@lists.debian.org>,
"debian-cross@lists.debian.org" <debian-cross@lists.debian.org>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RE: Dependencies of linux-headers-<arch> packages
Date: Thu, 10 Mar 2022 14:13:34 +0000 [thread overview]
Message-ID: <AM9PR10MB4869C3D9F6201540DB9A7D0B890B9@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <ac4b9074134d571de49faa125fff889d052df5a7.camel@decadent.org.uk>
Hi Ben,
> -----Original Message-----
> From: Ben Hutchings <ben@decadent.org.uk>
> Sent: Tuesday, March 8, 2022 1:45 AM
> To: Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>;
> debian-cross@lists.debian.org
> Cc: Kiszka, Jan (T CED) <jan.kiszka@siemens.com>; Hombourger, Cedric (DI SW
> CAS ES EPT OSS) <cedric.hombourger@siemens.com>; debian-
> kernel@lists.debian.org
> Subject: Re: Dependencies of linux-headers-<arch> packages
>
> On Thu, 2022-03-03 at 11:13 +0000, Moessbauer, Felix wrote:
> > Hi,
> >
> > the kernel header packages have a dependency to c/c++ compilers.
> > E.g. the "linux-headers-5.10.0-10-arm64" package depends on gcc-
> > 10:arm64 -> cpp-10:arm64 (on bullseye).
> >
> > This becomes an issue when cross-compiling kernel modules for other
> > target architectures:
> > The linux-headers packages cannot be co-installed due to the not co-
> > installable cpp-<x> packages.
> >
> > By that, cross-compilation of kernel modules for other Debian targets
> > is currently not possible (at least without removing the hosts cpp
> > infrastructure).
> >
> > What is the reason to depend on compilers here?
>
> We want installation of OOT modules to be as simple as possible for those users
> that need it. A dependency makes this more robust.
>
> > Wouldn't be a "recommends" relation be sufficient here?
> > An alternative might also be to depend via `:native`, but I did not
> > check that yet.
> [...]
>
> Using :native would defeat the purpose. But the attached patch
> (untested) might fix the dependencies to allow for cross-compilation.
Many thanks for the patch.
I just (manually) backported that to Debian bullseye, tested it for arm64 and it worked like a charm.
Note: In case no compiler is installed yet, the "build" arch (amd64) compiler is preferred which is good.
Having this would be a huge step forward for image builders like ISAR (putting list in CC) targeting embedded devices.
Also regular Debian users that want to compile OOT modules for other architectures (e.g. for the raspberry pi) do not have to fiddle around with a buildchroot anymore.
BTW: It is also a good workaround until #666743 is resolved (multiarch:foreign compiler interface).
Is there a chance we can get this into bullseye? IMHO, the lessened dependency is not a breaking change.
Cheers, Felix
>
> linux-kbuild does have some support for use in cross-compilation but I don't
> know how well it works now.
>
> Ben.
>
>
> --
> Ben Hutchings
> Q. Which is the greater problem in the world today,
> ignorance or apathy?
> A. I don't know and I couldn't care less.
next parent reply other threads:[~2022-03-10 14:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AM9PR10MB48690CC912740F47726A951D89049@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM>
[not found] ` <ac4b9074134d571de49faa125fff889d052df5a7.camel@decadent.org.uk>
2022-03-10 14:13 ` Moessbauer, Felix [this message]
2022-03-11 13:49 ` Helmut Grohne
2022-03-14 10:33 ` Moessbauer, Felix
2022-03-14 19:19 ` Helmut Grohne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR10MB4869C3D9F6201540DB9A7D0B890B9@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM \
--to=felix.moessbauer@siemens.com \
--cc=ben@decadent.org.uk \
--cc=debian-cross@lists.debian.org \
--cc=debian-kernel@lists.debian.org \
--cc=isar-users@googlegroups.com \
--cc=josch@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox