From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Jörg Vehlow" <joerg.vehlow@emlix.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] staging: allow special handling of initial-recipes also for native
Date: Mon, 23 Nov 2026 15:17:33 +0000 [thread overview]
Message-ID: <aff6acd72c8b1091f168c50e258e46492418012f.camel@linuxfoundation.org> (raw)
In-Reply-To: <75f4cab0-7f18-4a44-8ea6-3ec4bffbc38f@emlix.com>
On Mon, 2026-11-23 at 13:08 +0100, Jörg Vehlow wrote:
> On 23.11.2026 12:52, Richard Purdie wrote:
> > Can you fix the commit message please and perhaps put more of this
> > detail in there?
> >
> > It is a bit of a red flag when the commit message doesn't really match
> > what the code does, it also can cause problems in the future when
> > people look back at why something was done.
> I totally agree with you here, but fail to see where the mismatch is.
> The commit message states that the special handling for initial is also
> applied to initial-native. (ok maybe the verb allow is not the right one)
Firstly, remove the go and rust mentions as those are in core and don't
need this.
Secondly, mention you have an external ada implementation and that
needs a native initial. Saying what is unique about ada to need this
might also help.
I don't need to have seen it, I just want it clear this is something
external to core and relatively unavoidable.
> > The other question this leads to, is whether this is a complete fix or
> > are there other changes needed to make "initial" support work better?
> This is the only fix that was required to oe-core that was required to
> make bitbake exclude these initial packages from the esdk.
Ok, you could also mention that in the commit message since it stop me
worrying there were more patches coming once this was accepted.
> > I really want to see the complete picture of how this is working before
> > we commit to supporting it.
>
> I get that, but currently I cannot provide the recipes, they are loosely
> based in meta-adacore, but instead of using a prebuilt gprbuild they
> build gprbuild in a two step process. Maybe that is what we can focus on
> and I could try to upload a version of meta-adacore with these recipes
> for you if you'd like to understand the use case.
>
> But essentially: gprbuild is built in a two step process, first it is
> build using gnat only (gprbuild-initial-native) and then it is built
> again using the first version as the build tool. Since gprbuild is a
> build tool (comparable to cmake), it must be a native recipe. The
> nativesdk variant and the target variant can then be built from the
> "normal" gprbuild-native.
> But gprbuild-initial-native is never needed in the esdk and it uses the
> same paths as gprbuild-native (just for simplicity) and so it has
> collisions, if both are installed at the same time.
> Similar collisions would happen, if libgcc-initial and libgcc were
> installed at the same time - I guess that is the reason why the initial
> recipes were excluded from the esdk.
> Since the mechanism already exists and is simply not applied for
> initial-native, I figured this is a "bug" in oe, that could be fixed
> without too much background or explaining:
>
> Currently target and nativesdk packages, that end in -initial are not
> installed into the esdk, but native packages are, that feels like an
> inconsistency, that is fixed by this patch. There is not really a lot
> more to it.
That is fine, by "complete picture", I really just need to know if
there are more changes needed and rough idea of why we've not needed
this anywhere else.
Thanks!
Cheers,
Richard
prev parent reply other threads:[~2026-11-23 15:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 5:59 [PATCH] staging: allow special handling of initial-recipes also for native Joerg Vehlow
2026-11-23 11:39 ` [OE-core] " Richard Purdie
2026-11-23 11:46 ` Jörg Vehlow
2026-11-23 11:52 ` Richard Purdie
2026-11-23 12:08 ` Jörg Vehlow
2026-11-23 15:17 ` Richard Purdie [this message]
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=aff6acd72c8b1091f168c50e258e46492418012f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=joerg.vehlow@emlix.com \
--cc=openembedded-core@lists.openembedded.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