Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] QA warning fixes
@ 2011-07-07 17:32 Paul Eggleton
  2011-07-07 17:32 ` [PATCH 1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP Paul Eggleton
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-07-07 17:32 UTC (permalink / raw)
  To: openembedded-core

I found a couple of issues with the recent insane.bbclass changes. The
following patches fix them as well as add a warning fix for something I
noticed when building a kernel with LIRC support.

The following changes since commit f1fc6d084b079dea21ff1a30b815496452042490:

  pulseaudio: add 0.9.23 (2011-07-07 13:44:36 +0100)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/qa-dev-deps
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/qa-dev-deps

Paul Eggleton (3):
  insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP
  insane.bbclass: fix error/warning status being inverted
  kernel.bbclass: prevent QA warning about kernel-module-lirc-dev

 meta/classes/insane.bbclass |    6 +++---
 meta/classes/kernel.bbclass |    4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

-- 
1.7.4.1




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

* [PATCH 1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP
  2011-07-07 17:32 [PATCH 0/3] QA warning fixes Paul Eggleton
@ 2011-07-07 17:32 ` Paul Eggleton
  2011-07-07 17:32 ` [PATCH 2/3] insane.bbclass: fix error/warning status being inverted Paul Eggleton
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-07-07 17:32 UTC (permalink / raw)
  To: openembedded-core

Add the missing check in package_qa_check_rdepends to allow dependencies
from non-development packages on development packages to be skipped.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/insane.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c1db1ca..1cf7014 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -443,7 +443,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, d):
             if "-dbg" in rdepend and "debug-deps" not in skip:
                 error_msg = "%s rdepends on %s" % (pkgname,rdepend)
                 sane = package_qa_handle_error("debug-deps", error_msg, d)
-            if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev"):
+            if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev") and "dev-deps" not in skip:
                 error_msg = "%s rdepends on %s" % (pkgname, rdepend)
                 sane = package_qa_handle_error("dev-deps", error_msg, d)
 
-- 
1.7.4.1




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

* [PATCH 2/3] insane.bbclass: fix error/warning status being inverted
  2011-07-07 17:32 [PATCH 0/3] QA warning fixes Paul Eggleton
  2011-07-07 17:32 ` [PATCH 1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP Paul Eggleton
@ 2011-07-07 17:32 ` Paul Eggleton
  2011-07-07 17:32 ` [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev Paul Eggleton
  2011-07-08 16:34 ` [PATCH 0/3] QA warning fixes Richard Purdie
  3 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-07-07 17:32 UTC (permalink / raw)
  To: openembedded-core

Fix package_qa_handle_error so that it returns the correct values in order
to determine error/warning status.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/insane.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 1cf7014..1567f36 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -112,10 +112,10 @@ def package_qa_handle_error(error_class, error_msg, d):
     package_qa_write_error(error_msg, d)
     if error_class in (d.getVar("ERROR_QA", True) or "").split():
         bb.error("QA Issue: %s" % error_msg)
-        return True
+        return False
     else:
         bb.warn("QA Issue: %s" % error_msg)
-        return False
+        return True
 
 QAPATHTEST[rpaths] = "package_qa_check_rpath"
 def package_qa_check_rpath(file,name, d, elf, messages):
-- 
1.7.4.1




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

* [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev
  2011-07-07 17:32 [PATCH 0/3] QA warning fixes Paul Eggleton
  2011-07-07 17:32 ` [PATCH 1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP Paul Eggleton
  2011-07-07 17:32 ` [PATCH 2/3] insane.bbclass: fix error/warning status being inverted Paul Eggleton
@ 2011-07-07 17:32 ` Paul Eggleton
  2011-07-07 19:08   ` Andreas Mueller
  2011-07-08 16:34 ` [PATCH 0/3] QA warning fixes Richard Purdie
  3 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2011-07-07 17:32 UTC (permalink / raw)
  To: openembedded-core

kernel-module-lirc-dev is not a development package (it's a package for
a kernel module called lirc_dev) so add an INSANE_SKIP that will prevent
it from being flagged up.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/kernel.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 943252a..318f5c2 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -503,3 +503,7 @@ PACKAGES =+ "perf-dbg perf"
 FILES_perf = "${bindir}/* \
               ${libexecdir}"
 FILES_perf-dbg = "${FILES_${PN}-dbg}"
+
+# We don't want a warning for kernel-module-lirc-dev
+INSANE_SKIP_kernel-module-ir-lirc-codec += "dev-deps"
+
-- 
1.7.4.1




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

* Re: [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev
  2011-07-07 17:32 ` [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev Paul Eggleton
@ 2011-07-07 19:08   ` Andreas Mueller
  2011-07-07 19:13     ` Phil Blundell
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Mueller @ 2011-07-07 19:08 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thursday, July 07, 2011 07:32:48 PM Paul Eggleton wrote:
> kernel-module-lirc-dev is not a development package (it's a package for
> a kernel module called lirc_dev) so add an INSANE_SKIP that will prevent
> it from being flagged up.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  meta/classes/kernel.bbclass |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 943252a..318f5c2 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -503,3 +503,7 @@ PACKAGES =+ "perf-dbg perf"
>  FILES_perf = "${bindir}/* \
>                ${libexecdir}"
>  FILES_perf-dbg = "${FILES_${PN}-dbg}"
> +
> +# We don't want a warning for kernel-module-lirc-dev
> +INSANE_SKIP_kernel-module-ir-lirc-codec += "dev-deps"
> +
I just received

| WARNING: QA Issue: kernel-modules rdepends on kernel-module-i2c-dev

So I think a better solution is reworking commit 
2e06a1a843756e9d50291c4533b10096af2d852b e.g. by excluding all kernel *modules* 
from *dev check. 

Andreas



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

* Re: [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev
  2011-07-07 19:08   ` Andreas Mueller
@ 2011-07-07 19:13     ` Phil Blundell
  0 siblings, 0 replies; 7+ messages in thread
From: Phil Blundell @ 2011-07-07 19:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-07-07 at 21:08 +0200, Andreas Mueller wrote:
> So I think a better solution is reworking commit 
> 2e06a1a843756e9d50291c4533b10096af2d852b e.g. by excluding all kernel *modules* 
> from *dev check. 

Yeah, or try to be smarter about determining what exactly is a "dev"
package, e.g. by some sort of flag variable rather than by trying to
guess from the name.

p.





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

* Re: [PATCH 0/3] QA warning fixes
  2011-07-07 17:32 [PATCH 0/3] QA warning fixes Paul Eggleton
                   ` (2 preceding siblings ...)
  2011-07-07 17:32 ` [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev Paul Eggleton
@ 2011-07-08 16:34 ` Richard Purdie
  3 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2011-07-08 16:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-07-07 at 18:32 +0100, Paul Eggleton wrote:
> I found a couple of issues with the recent insane.bbclass changes. The
> following patches fix them as well as add a warning fix for something I
> noticed when building a kernel with LIRC support.
> 
> The following changes since commit f1fc6d084b079dea21ff1a30b815496452042490:
> 
>   pulseaudio: add 0.9.23 (2011-07-07 13:44:36 +0100)
> 
> are available in the git repository at:
>   git://git.openembedded.org/openembedded-core-contrib paule/qa-dev-deps
>   http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/qa-dev-deps
> 
> Paul Eggleton (3):
>   insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP
>   insane.bbclass: fix error/warning status being inverted
>   kernel.bbclass: prevent QA warning about kernel-module-lirc-dev

I've taken the first two patches, thanks. In the third case, I think we
have bigger problems for both -dbg and -dev packages matching in kernel
module space. We should probably disable those two checks for all kernel
modules somehow...

Cheers,

Richard




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

end of thread, other threads:[~2011-07-08 16:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 17:32 [PATCH 0/3] QA warning fixes Paul Eggleton
2011-07-07 17:32 ` [PATCH 1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP Paul Eggleton
2011-07-07 17:32 ` [PATCH 2/3] insane.bbclass: fix error/warning status being inverted Paul Eggleton
2011-07-07 17:32 ` [PATCH 3/3] kernel.bbclass: prevent QA warning about kernel-module-lirc-dev Paul Eggleton
2011-07-07 19:08   ` Andreas Mueller
2011-07-07 19:13     ` Phil Blundell
2011-07-08 16:34 ` [PATCH 0/3] QA warning fixes Richard Purdie

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