All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] insane.bbclass: maybe no log.do_compile or log.do_install
@ 2012-03-22  9:55 Robert Yang
  2012-03-22  9:55 ` [PATCH 1/1] " Robert Yang
  2012-03-22 17:47 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-03-22  9:55 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 047ce547edd61b0d3b15c22b3492f7595ce2bc66:

  xserver-kdrive: Fix packaging warnings (2012-03-21 23:17:32 +0000)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/insane
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/insane

Robert Yang (1):
  insane.bbclass: maybe no log.do_compile or log.do_install

 meta/classes/insane.bbclass |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)




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

* [PATCH 1/1] insane.bbclass: maybe no log.do_compile or log.do_install
  2012-03-22  9:55 [PATCH 0/1] insane.bbclass: maybe no log.do_compile or log.do_install Robert Yang
@ 2012-03-22  9:55 ` Robert Yang
  2012-03-22 17:47 ` [PATCH 0/1] " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-03-22  9:55 UTC (permalink / raw)
  To: openembedded-core

The insane.bbclass grep in log.do_compile and log.do_install
unconditionally, but there maybe no such logs when mirror the pkg from
sstate cache file. We should check whether the log file exists or not
before grep in it.

Additionally, break the one too long line into two (Add a "\n").

[YOCTO #2153]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/insane.bbclass |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 6298136..fbeb97a 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -612,19 +612,20 @@ python do_package_qa () {
     # Check the compile log for host contamination
     compilelog = os.path.join(logdir,"log.do_compile")
 
-    statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % compilelog
-    if os.system(statement) == 0:
-        bb.warn("%s: The compile log indicates that host include and/or library paths were used.  Please check the log '%s' for more information." % \
-                (pkg, compilelog))
-
+    if os.path.exists(compilelog):
+        statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % compilelog
+        if os.system(statement) == 0:
+            bb.warn("%s: The compile log indicates that host include and/or library paths were used.\n \
+        Please check the log '%s' for more information." % (pkg, compilelog))
 
     # Check the install log for host contamination
     installlog = os.path.join(logdir,"log.do_install")
 
-    statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % installlog
-    if os.system(statement) == 0:
-        bb.warn("%s: The install log indicates that host include and/or library paths were used.  Please check the log '%s' for more information." % \
-                (pkg, installlog))
+    if os.path.exists(installlog):
+        statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % installlog
+        if os.system(statement) == 0:
+            bb.warn("%s: The install log indicates that host include and/or library paths were used.\n \
+        Please check the log '%s' for more information." % (pkg, installlog))
 
     # Scan the packages...
     pkgdest = d.getVar('PKGDEST', True)
-- 
1.7.1




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

* Re: [PATCH 0/1] insane.bbclass: maybe no log.do_compile or log.do_install
  2012-03-22  9:55 [PATCH 0/1] insane.bbclass: maybe no log.do_compile or log.do_install Robert Yang
  2012-03-22  9:55 ` [PATCH 1/1] " Robert Yang
@ 2012-03-22 17:47 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-03-22 17:47 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 03/22/2012 02:55 AM, Robert Yang wrote:
> The following changes since commit 047ce547edd61b0d3b15c22b3492f7595ce2bc66:
>
>    xserver-kdrive: Fix packaging warnings (2012-03-21 23:17:32 +0000)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib robert/insane
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/insane
>
> Robert Yang (1):
>    insane.bbclass: maybe no log.do_compile or log.do_install
>
>   meta/classes/insane.bbclass |   19 ++++++++++---------
>   1 files changed, 10 insertions(+), 9 deletions(-)
>
>
Merged into OE-Core

Thanks
	Sau!

> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

end of thread, other threads:[~2012-03-22 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22  9:55 [PATCH 0/1] insane.bbclass: maybe no log.do_compile or log.do_install Robert Yang
2012-03-22  9:55 ` [PATCH 1/1] " Robert Yang
2012-03-22 17:47 ` [PATCH 0/1] " Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.