summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-03-27 14:07:23 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 09:44:45 +0100
commit4d16bc3c5ee89a63b5ba7eb5e722ea79e03b6043 (patch)
tree9c7b8cee8bd11b2566df738c6887f853f8a21961 /bitbake/lib
parent4d9f4d6ac25f39fe6d5491d05c7a26195bab648b (diff)
downloadpoky-4d16bc3c5ee89a63b5ba7eb5e722ea79e03b6043.tar.gz
bb.build: use relative log links, not absolute
Using symlinks to absolute paths isn't gaining us anything, and can cause problems in situations such as automated build systems when they try to resolve the link, depending on the mechanism used to pull the build artifacts (e.g. nfs). (Bitbake rev: f9cf2671c0ecad153db11bca1aebe151213bfb42) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 736ba24393..95f1dcfcb7 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -291,12 +291,13 @@ def _exec_task(fn, task, d, quieterr):
291 291
292 bb.utils.mkdirhier(tempdir) 292 bb.utils.mkdirhier(tempdir)
293 loglink = os.path.join(tempdir, 'log.{0}'.format(task)) 293 loglink = os.path.join(tempdir, 'log.{0}'.format(task))
294 logfn = os.path.join(tempdir, 'log.{0}.{1}'.format(task, os.getpid())) 294 logbase = 'log.{0}.{1}'.format(task, os.getpid())
295 logfn = os.path.join(tempdir, logbase)
295 if loglink: 296 if loglink:
296 bb.utils.remove(loglink) 297 bb.utils.remove(loglink)
297 298
298 try: 299 try:
299 os.symlink(logfn, loglink) 300 os.symlink(logbase, loglink)
300 except OSError: 301 except OSError:
301 pass 302 pass
302 303