public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
To: Qi.Chen@windriver.com, openembedded-core@lists.openembedded.org
Cc: thomas.petazzoni@bootlin.com, Quentin Schulz <quentin.schulz@cherry.de>
Subject: Re: [OE-core] [PATCH] meta: simplify conditional operations with bb.utils.filter
Date: Mon, 27 Apr 2026 13:01:56 +0200	[thread overview]
Message-ID: <290b6b60-068a-44f8-b82f-bcc8b38b91e0@bootlin.com> (raw)
In-Reply-To: <66648f7c-755a-4aa1-a6cd-2900c91cbec9@windriver.com>

Hello,

(...)

> 
> VAR_1 = bb.utils.filter(VAR_2, ....)
> 
> When you do this, this gives people an impression that VAR1 and VAR2 are 
> conceptually related.
> 
> For example, PACKAGECONFIG & DISTRO_FEATURES both control the way 
> recipes are built, they are switches for recipes, and they are related. 
> Many PACKAEGECONFIG items' names are selected to be the same with 
> DISTRO_FEAETURES, e.g., pam, acl., because they are the most reasonable 
> names.

I see what you mean now, thanks!

> But if you look at ERROR_QA, the items names really have no relations 
> with DISTRO_FEATURES. The usrmerge QA check was actually checking 
> filesystem hierarchy. If we consider the possible sbin -> bin merge in 
> the future, the QA check name should be something like 
> "filesystem-hierarchy-check".

Indeed.

> 
> To be clear, I'm not against *all* parts of this patch. For example, you 
> have:
> 
>   PACKAGECONFIG ?= "\
> -    ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', 
> d)} \
> +    ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
>   "
> 
> And I think it's a correct change.
> 
> I think the problematic ones are ERROR_QA and RDEPENDS.

Well, PACKAGECONFIG is also related to runtime, not only build-time. 
What I mean is you can specify additional runtime dependencies in the 
PACKAGECONFIG declaration/definition [1], so one could argue that 
RDEPENDS and PACKAGECONFIG are not so conceptually distant as the 
ERROR_QA and DISTRO_FEATURES example.

> Regards,
> Qi

Thanks for the review, and for the clarification as well.

[1] 
https://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGECONFIG
-- 
Best regards,
João Marcos Costa


      reply	other threads:[~2026-04-27 11:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-24 15:17 [PATCH] meta: simplify conditional operations with bb.utils.filter João Marcos Costa
2026-04-24 15:40 ` [OE-core] " Quentin Schulz
2026-04-27  8:38   ` Joao Marcos Costa
2026-04-27 10:45     ` Quentin Schulz
2026-04-27 10:53       ` Joao Marcos Costa
2026-04-27  8:49 ` ChenQi
2026-04-27  9:30   ` Joao Marcos Costa
2026-04-27 10:05     ` ChenQi
2026-04-27 11:01       ` Joao Marcos Costa [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=290b6b60-068a-44f8-b82f-bcc8b38b91e0@bootlin.com \
    --to=joaomarcos.costa@bootlin.com \
    --cc=Qi.Chen@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=quentin.schulz@cherry.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox