Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] build: Fix profile file names
@ 2013-08-31 22:43 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-08-31 22:43 UTC (permalink / raw)
  To: bitbake-devel

Using the basename of the .bb file is not unique, for example xxx-native
and xxx can overwrite each other. If this happens whilst running, you can
get odd backtraces as one file is parsed as another tries to write out
new data.

Avoid issues by using PN for the output filename instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 91c3a42..a53aba9 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -467,7 +467,7 @@ def exec_task(fn, task, d, profile = False):
             quieterr = True
 
         if profile: 
-            profname = "profile-%s.log" % (os.path.basename(fn) + "-" + task)
+            profname = "profile-%s.log" % (d.getVar("PN", True) + "-" + task)
             try:
                 import cProfile as profile
             except:




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-31 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-31 22:43 [PATCH] build: Fix profile file names Richard Purdie

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