public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Schmidt, Adriaan" <adriaan.schmidt@siemens.com>
To: "Kiszka, Jan" <jan.kiszka@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RE: [PATCH 0/3] multiarch support
Date: Tue, 7 Feb 2023 14:44:53 +0000	[thread overview]
Message-ID: <AS4PR10MB5318B9ACBAF27FA2470FFA93EDDB9@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <39e4aa23-d2f4-5ee4-38ae-e205bdb6c8ce@siemens.com>

Kiszka, Jan (T CED) <jan.kiszka@siemens.com>, Dienstag, 7. Februar 2023 14:51:
> On 06.02.23 14:36, Schmidt, Adriaan (T CED SES-DE) wrote:
> > Kiszka, Jan (T CED) <jan.kiszka@siemens.com>, Montag, 6. Februar 2023
> 14:01:
> >> On 06.02.23 13:20, Adriaan Schmidt wrote:
> >>> Hi,
> >>>
> >>> this is my first working draft of multiarch support, which extends all
> >> package
> >>> recipes (inheriting dpkg-base) with *-compat and *-native variants.
> >>>
> >>> My current use case/test subject is meta-iot2050, which contains a
> patched
> >>> openssl, needed in the SDK (as -native package), and on the target (as -
> >> compat).
> >>> [1] has this patchseries (plus pre-bitbake2 backporting), if someone
> would
> >> like to test.
> >>> In addition, the compat test from the testsuite works (building hello-
> isar-
> >> compat).
> >>>
> >>> Still missing:
> >>> - not sure if -native also needs IMAGE_INSTALL logic to convert bitbake
> to
> >> debian names
> >>
> >> You mean foo-{compat,native} -> foo:<{compat-arch,host-arch}>? Would be
> >> sweet.
> >
> > I'm already doing it for -compat.
> > With -native, my current use case is the SDK, which is completely in host-
> arch,
> > so we don't *need* to pass it with the individual packages. Also there is
> currently
> > no way of getting "dpkg --add-architecture <host-arch>" in a target image,
> so the
> > only place we can install -native packages is the SDK and the buildchroot
> if we're
> > doing cross builds.
> > So a conversion foo-native -> foo might be convenient (and consistent, so
> foo-native
> > is accepted as part of IMAGE_INSTALL, just as foo-compat), or we make it an
> > explicit foo-native -> foo:<host-arch>.
> >
> 
> What now comes to my mind: What will happen if there are real Debian
> packages that carry any of those suffixes in their name? There is e.g.
> libgdbm-compat4 - that would be only close.

Yes, quick check on my development machin: "dpkg -l *-compat" returns
debhelper-compat, iptables-nftables-compat, oss-compat, and x2goserver-compat.

But that's only a problem if someone wants to rebuild one of those packages,
otherwise they would go into IMAGE_PREINSTALL, which is not modified, and
has packages in "Debian syntax".

In general, with the proposed extension, it could be that bitbake recipes with
names ending in -compat or -native would no longer be allowed. 
I'd have to verify the details, and can check if some kind of workaround is possible.

Adriaan

> Jan
> 
> --
> Siemens AG, Technology
> Competence Center Embedded Linux


  reply	other threads:[~2023-02-07 14:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06 12:20 Adriaan Schmidt
2023-02-06 12:20 ` [PATCH 1/3] bitbake.conf: use PACKAGE_ARCH in overrides Adriaan Schmidt
2023-02-06 12:20 ` [PATCH 2/3] add multiarch support Adriaan Schmidt
2023-02-28  7:58   ` Cedric Hombourger
2023-02-28  8:24     ` Schmidt, Adriaan
2023-02-06 12:20 ` [PATCH 3/3] remove obsolete compat-arch override Adriaan Schmidt
2023-02-06 13:00   ` Jan Kiszka
2023-02-06 13:34     ` Schmidt, Adriaan
2023-02-06 14:22       ` Schmidt, Adriaan
2023-02-06 13:01 ` [PATCH 0/3] multiarch support Jan Kiszka
2023-02-06 13:36   ` Schmidt, Adriaan
2023-02-07 13:50     ` Jan Kiszka
2023-02-07 14:44       ` Schmidt, Adriaan [this message]
2023-02-20  8:54         ` Schmidt, Adriaan

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=AS4PR10MB5318B9ACBAF27FA2470FFA93EDDB9@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM \
    --to=adriaan.schmidt@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /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