From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: "Simone Weiß" <simone.p.weiss@posteo.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] classes-global/insane: Add check for "virtual/" in RPROVIDES and RDEPENDS
Date: Wed, 17 Jan 2024 00:29:15 +0100 [thread overview]
Message-ID: <202401162329150cb039e3@mail.local> (raw)
In-Reply-To: <20240114171903.10264-1-simone.p.weiss@posteo.com>
Hello,
This causes warnings for meta-aws:
https://autobuilder.yoctoproject.org/typhoon/#/builders/122/builds/3840/steps/12/logs/warnings
On 14/01/2024 17:19:03+0000, Simone Wei� wrote:
> From: Simone Wei� <simone.p.weiss@posteo.com>
>
> Fixes [YOCTO #14538]
>
> Recipes shouldn't use "virtual/" in RPROVIDES and RDEPENDS. This was
> addressed already in recipes in meta-oe and oe-core. Add a test for
> this in insane.bbclass to ensure no regressions occur.
>
> Signed-off-by: Simone Wei� <simone.p.weiss@posteo.com>
> ---
> meta/classes-global/insane.bbclass | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
> index d625fd82f7..9e8e35e0f7 100644
> --- a/meta/classes-global/insane.bbclass
> +++ b/meta/classes-global/insane.bbclass
> @@ -1606,6 +1606,12 @@ python () {
> if (d.getVar(d.expand('DEPENDS:${PN}'))):
> oe.qa.handle_error("pkgvarcheck", "recipe uses DEPENDS:${PN}, should use DEPENDS", d)
>
> + # virtual/ is meaningless for those variables
> + for k in ['RDEPENDS', 'RPROVIDES']:
> + for var in bb.utils.explode_deps(d.getVar(k + ':' + pn) or ""):
> + if var.startswith("virtual/"):
> + bb.warn("%s is set to %s, the substring 'virtual/' holds no meaning in this context. It is suggested to use the 'virtual-' instead." % (k, var))
> +
> issues = []
> if (d.getVar('PACKAGES') or "").split():
> for dep in (d.getVar('QADEPENDS') or "").split():
> --
> 2.39.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#193617): https://lists.openembedded.org/g/openembedded-core/message/193617
> Mute This Topic: https://lists.openembedded.org/mt/103722088/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-01-16 23:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-14 17:19 [PATCH] classes-global/insane: Add check for "virtual/" in RPROVIDES and RDEPENDS simone.p.weiss
2024-01-16 23:29 ` Alexandre Belloni [this message]
2024-01-17 19:19 ` [OE-core] " Simone Weiß
2024-01-17 21:05 ` Alexandre Belloni
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=202401162329150cb039e3@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=simone.p.weiss@posteo.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