* [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
@ 2024-01-22 5:52 Peter Kjellerstedt
2024-01-22 14:02 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-01-22 5:52 UTC (permalink / raw)
To: openembedded-core
Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
disable the warning by removing "virtual-slash from WARN_QA.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/classes-global/insane.bbclass | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 828f618cda..4ab7e4069d 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -34,7 +34,7 @@ WARN_QA ?= " libdir xorg-driver-abi buildpaths \
missing-update-alternatives native-last missing-ptest \
license-exists license-no-generic license-syntax license-format \
license-incompatible license-file-missing obsolete-license \
- 32bit-time \
+ 32bit-time virtual-slash \
"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
@@ -1607,11 +1607,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))
+ # virtual/ is meaningless for these variables
+ if "virtual-slash" in (d.getVar("ALL_QA") or "").split():
+ for k in ['RDEPENDS', 'RPROVIDES']:
+ for var in bb.utils.explode_deps(d.getVar(k + ':' + pn) or ""):
+ if var.startswith("virtual/"):
+ oe.qa.handle_error("virtual-slash", "%s is set to %s, but the substring 'virtual/' holds no meaning in this context. It is suggested to use 'virtual-' instead." % (k, var), d)
issues = []
if (d.getVar('PACKAGES') or "").split():
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
2024-01-22 5:52 [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled Peter Kjellerstedt
@ 2024-01-22 14:02 ` Richard Purdie
2024-01-22 14:10 ` Martin Jansa
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Richard Purdie @ 2024-01-22 14:02 UTC (permalink / raw)
To: Peter Kjellerstedt, openembedded-core
On Mon, 2024-01-22 at 06:52 +0100, Peter Kjellerstedt wrote:
> Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
> virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
> disable the warning by removing "virtual-slash from WARN_QA.
>
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> ---
> meta/classes-global/insane.bbclass | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
Whilst I can understand why you might want to make this configurable,
I'm not sure if is a great idea since people are just going to turn it
off and continue to ignore it :/.
virtual/ in the runtime namespace has never been supported and always
been strongly recommended against.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
2024-01-22 14:02 ` [OE-core] " Richard Purdie
@ 2024-01-22 14:10 ` Martin Jansa
2024-01-22 14:20 ` Peter Kjellerstedt
[not found] ` <17ACB13E58D9A491.7395@lists.openembedded.org>
2 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2024-01-22 14:10 UTC (permalink / raw)
To: Richard Purdie; +Cc: Peter Kjellerstedt, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
On Mon, Jan 22, 2024 at 3:02 PM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2024-01-22 at 06:52 +0100, Peter Kjellerstedt wrote:
> > Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
> > virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
> > disable the warning by removing "virtual-slash from WARN_QA.
> >
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > ---
> > meta/classes-global/insane.bbclass | 13 +++++++------
> > 1 file changed, 7 insertions(+), 6 deletions(-)
>
> Whilst I can understand why you might want to make this configurable,
> I'm not sure if is a great idea since people are just going to turn it
> off and continue to ignore it :/.
>
It also allows to add it to ERROR_QA :).
[-- Attachment #2: Type: text/html, Size: 1229 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
2024-01-22 14:02 ` [OE-core] " Richard Purdie
2024-01-22 14:10 ` Martin Jansa
@ 2024-01-22 14:20 ` Peter Kjellerstedt
[not found] ` <17ACB13E58D9A491.7395@lists.openembedded.org>
2 siblings, 0 replies; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-01-22 14:20 UTC (permalink / raw)
To: Richard Purdie, openembedded-core@lists.openembedded.org; +Cc: Martin Jansa
> -----Original Message-----
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
> Sent: den 22 januari 2024 15:02
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] insane.bbclass: Allow the warning about
> virtual/ to be disabled
>
> On Mon, 2024-01-22 at 06:52 +0100, Peter Kjellerstedt wrote:
> > Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
> > virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
> > disable the warning by removing "virtual-slash from WARN_QA.
> >
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > ---
> > meta/classes-global/insane.bbclass | 13 +++++++------
> > 1 file changed, 7 insertions(+), 6 deletions(-)
>
> Whilst I can understand why you might want to make this configurable,
> I'm not sure if is a great idea since people are just going to turn it
> off and continue to ignore it :/.
>
> virtual/ in the runtime namespace has never been supported and always
> been strongly recommended against.
We do not produce any package feeds and AFAIK in that case virtual/ works
fine for runtime dependencies since it is only a name, just like, e.g.,
virtual-.
We get a gazillion warnings due to this during parsing, and it is not
anything I can solve easily. And since it is just a warning that currently
doesn't affect us, I would like to turn it off for now.
And as Martin mentioned, with my change applied, those who want can turn
the warning into an error. And being able to do that is typically the only
way to actually get rid of all warnings and keep them from coming back.
>
> Cheers,
>
> Richard
//Peter
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <17ACB13E58D9A491.7395@lists.openembedded.org>]
* RE: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
[not found] ` <17ACB13E58D9A491.7395@lists.openembedded.org>
@ 2024-02-10 0:18 ` Peter Kjellerstedt
0 siblings, 0 replies; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-02-10 0:18 UTC (permalink / raw)
To: Peter Kjellerstedt, Richard Purdie,
openembedded-core@lists.openembedded.org
Cc: Martin Jansa
*ping*
//Peter
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Peter Kjellerstedt
> Sent: den 22 januari 2024 15:21
> To: Richard Purdie <richard.purdie@linuxfoundation.org>; openembedded-core@lists.openembedded.org
> Cc: Martin Jansa <martin.jansa@gmail.com>
> Subject: Re: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
>
> > -----Original Message-----
> > From: Richard Purdie <richard.purdie@linuxfoundation.org>
> > Sent: den 22 januari 2024 15:02
> > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-core@lists.openembedded.org
> > Subject: Re: [OE-core] [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled
> >
> > On Mon, 2024-01-22 at 06:52 +0100, Peter Kjellerstedt wrote:
> > > Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
> > > virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
> > > disable the warning by removing "virtual-slash from WARN_QA.
> > >
> > > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > > ---
> > > meta/classes-global/insane.bbclass | 13 +++++++------
> > > 1 file changed, 7 insertions(+), 6 deletions(-)
> >
> > Whilst I can understand why you might want to make this configurable,
> > I'm not sure if is a great idea since people are just going to turn it
> > off and continue to ignore it :/.
> >
> > virtual/ in the runtime namespace has never been supported and always
> > been strongly recommended against.
>
> We do not produce any package feeds and AFAIK in that case virtual/ works
> fine for runtime dependencies since it is only a name, just like, e.g.,
> virtual-.
>
> We get a gazillion warnings due to this during parsing, and it is not
> anything I can solve easily. And since it is just a warning that currently
> doesn't affect us, I would like to turn it off for now.
>
> And as Martin mentioned, with my change applied, those who want can turn
> the warning into an error. And being able to do that is typically the only
> way to actually get rid of all warnings and keep them from coming back.
>
> >
> > Cheers,
> >
> > Richard
>
> //Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-10 0:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 5:52 [PATCH] insane.bbclass: Allow the warning about virtual/ to be disabled Peter Kjellerstedt
2024-01-22 14:02 ` [OE-core] " Richard Purdie
2024-01-22 14:10 ` Martin Jansa
2024-01-22 14:20 ` Peter Kjellerstedt
[not found] ` <17ACB13E58D9A491.7395@lists.openembedded.org>
2024-02-10 0:18 ` Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox