All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>,
	alexis.lothore@bootlin.com,
	 Openembedded-core@lists.openembedded.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: Re: [OE-Core][PATCH v3 4/4] core-image-ptest: append ptest directory to artifacts list
Date: Thu, 15 Jun 2023 10:05:11 +0100	[thread overview]
Message-ID: <05e4d2a9d9f343a8ae08c7db327dc1dd96e89ef9.camel@linuxfoundation.org> (raw)
In-Reply-To: <ZIrNMt5IcnBhTzF9@nuoska>

On Thu, 2023-06-15 at 11:34 +0300, Mikko Rapeli wrote:
> Hi Richard,
> 
> On Thu, Jun 15, 2023 at 08:03:44AM +0100, Richard Purdie wrote:
> > On Sun, 2023-06-11 at 17:16 +0200, Alexander Kanavin wrote:
> > > Doesn't += override the earlier ?=
> > 
> > It depends. If ?= is parsed first, += will append. If the ?= is parsed
> > after +=, the ?= will not happen as the variable has a value.
> > 
> > >  (or ??=), 
> > 
> > += would override ??=
> 
> In which kind of cases would ??= be preferred?
> 
> For basic recipes in oe-core and other layers, setting variables with
> basic assignment and then appending it with += should be enough unless machine
> or other override specific qualifiers are needed :append:machine.
> 
> Using plain :append without any qualifiers is annoying in downstream layers which
> try to fine tune upstream open source meta layers and recipes and still remain compatible
> to apply security and other updates, including full version/branch upgrades. 
> 
> I see some, for me, bad examples of ??= to set initial PACKAGECONFIG, for example.

This is all a big problem area and I've talked about it before. We
can't make one recommendation which will work for every person in every
scenario.

The original intent was that ??= would be widely used and solve some of
the problems. That plan was flawed but we (I?) didn't realise until too
late.

I'd not call ??= with PACKAGECONFIG as bad, it just doesn't do what you
want in some scenarios.

> Downstream layers would need to use PACKAGECONFIG:append to add some feature
> to upstream defaults since += would require to fully control the PACKAGECONFIG
> in a bbappend. I would prefer ?= for that so that a += could be used to add an
> extra non-default feature but keep all the rest in upstream defaults.
> 
> This gets even more tricky with intermediate layers which might want to enable
> features across recipes and layers, e.g. "selinux". Now they'd have to use use :append
> to make sure "selinux" is added to PACKAGECONFIG everywhere and no other upstream defaults
> are changed. And then product layers who 'know better' to for example drop some features
> would need to :remove them explicitly and can't fully overwrite the PACKAGECONFIG with a simple
> assignment in a bbappend. Messy. Staring a lot of "bitbake -e" ouput needed.

I wish I had a magic answer. ?= has it's own set of issues too last
time I sat and thought about all this :( I think the issues come if
someone uses distro overrides from a config file instead of a bbappend.

It needs time spending on it by someone willing to look at all the
different use cases, including the ones they don't use themselves and
come up with some kind of proposal. Personally, I'm willing but I can't
even get through the patch review backlog or autobuilder intermittent
bug queue at the moment :(.

Cheers,

Richard


  reply	other threads:[~2023-06-15  9:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09  6:47 [OE-Core][PATCH v3 0/4] add failed tests artifacts retriever alexis.lothore
2023-06-09  6:47 ` [OE-Core][PATCH v3 1/4] oeqa/core/runner: add helper to know about expected failures alexis.lothore
2023-06-09  6:48 ` [OE-Core][PATCH v3 2/4] oeqa/target/ssh: update options for SCP alexis.lothore
2023-06-09  6:48 ` [OE-Core][PATCH v3 3/4] testimage: implement test artifacts retriever for failing tests alexis.lothore
2023-06-09  6:48 ` [OE-Core][PATCH v3 4/4] core-image-ptest: append ptest directory to artifacts list alexis.lothore
2023-06-09  6:52   ` Mikko Rapeli
2023-06-09  7:24     ` Alexis Lothoré
2023-06-11 15:16       ` Alexander Kanavin
2023-06-11 15:48         ` Alex Kiernan
2023-06-15  7:03         ` Richard Purdie
2023-06-15  8:34           ` Mikko Rapeli
2023-06-15  9:05             ` Richard Purdie [this message]
2023-06-15 21:27               ` Peter Kjellerstedt

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=05e4d2a9d9f343a8ae08c7db327dc1dd96e89ef9.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=Openembedded-core@lists.openembedded.org \
    --cc=alex.kanavin@gmail.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alexis.lothore@bootlin.com \
    --cc=mikko.rapeli@linaro.org \
    --cc=thomas.petazzoni@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.