public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck
@ 2013-02-06 13:25 Martin Jansa
  2013-05-02 10:16 ` Phil Blundell
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-02-06 13:25 UTC (permalink / raw)
  To: openembedded-core

* check also RSUGGESTS, RCONFLICTS, RPROVIDES, RREPLACES

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/insane.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 58fc70c..d285e56 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -908,7 +908,7 @@ python () {
 
     issues = []
     if (d.getVar('PACKAGES', True) or "").split():
-        for var in 'RDEPENDS', 'RRECOMMENDS', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
+        for var in 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RCONFLICTS', 'RPROVIDES', 'RREPLACES', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
             if d.getVar(var):
                 issues.append(var)
     for i in issues:
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck
  2013-02-06 13:25 [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck Martin Jansa
@ 2013-05-02 10:16 ` Phil Blundell
  2013-05-02 10:36   ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Blundell @ 2013-05-02 10:16 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On Wed, 2013-02-06 at 14:25 +0100, Martin Jansa wrote:
> * check also RSUGGESTS, RCONFLICTS, RPROVIDES, RREPLACES

These are already checked by recipe_sanity.bbclass.  There's probably no
need to check them again here.

p.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck
  2013-05-02 10:16 ` Phil Blundell
@ 2013-05-02 10:36   ` Paul Eggleton
  2013-05-02 10:59     ` Phil Blundell
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2013-05-02 10:36 UTC (permalink / raw)
  To: openembedded-core, Phil Blundell

On Thursday 02 May 2013 11:16:30 Phil Blundell wrote:
> On Wed, 2013-02-06 at 14:25 +0100, Martin Jansa wrote:
> > * check also RSUGGESTS, RCONFLICTS, RPROVIDES, RREPLACES
> 
> These are already checked by recipe_sanity.bbclass.  There's probably no
> need to check them again here.

recipe_sanity.bbclass doesn't get used by default - I guess you are enabling 
it explicitly? I wonder if we should either (a) move all the recipe checks to 
recipe_sanity.bbclass and enable it by default, or (b) move any currently 
there and not covered by insane.bbclass to insane.bbclass and delete 
recipe_sanity.bbclass.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck
  2013-05-02 10:36   ` Paul Eggleton
@ 2013-05-02 10:59     ` Phil Blundell
  0 siblings, 0 replies; 4+ messages in thread
From: Phil Blundell @ 2013-05-02 10:59 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On Thu, 2013-05-02 at 11:36 +0100, Paul Eggleton wrote:
> On Thursday 02 May 2013 11:16:30 Phil Blundell wrote:
> > On Wed, 2013-02-06 at 14:25 +0100, Martin Jansa wrote:
> > > * check also RSUGGESTS, RCONFLICTS, RPROVIDES, RREPLACES
> > 
> > These are already checked by recipe_sanity.bbclass.  There's probably no
> > need to check them again here.
> 
> recipe_sanity.bbclass doesn't get used by default - I guess you are enabling 
> it explicitly?

Yeah, or rather, it's used by default in meta-micro.

> I wonder if we should either (a) move all the recipe checks to 
> recipe_sanity.bbclass and enable it by default, or (b) move any currently 
> there and not covered by insane.bbclass to insane.bbclass and delete 
> recipe_sanity.bbclass.

Either of those sounds reasonable enough to me.  I think the original
concept was that recipe_sanity was for errors that you could identify
statically at recipe parse time, and insane.bbclass was for checks
against the output artifacts (that you could only do after compiling and
packaging) but that line does seem to have gotten a bit blurred over
time.

p.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-02 11:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 13:25 [PATCH] insane.bbclass: Add missing R* variables to pkgvarcheck Martin Jansa
2013-05-02 10:16 ` Phil Blundell
2013-05-02 10:36   ` Paul Eggleton
2013-05-02 10:59     ` Phil Blundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox