aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
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-28 22:28:00 +0100
commitf9cf2671c0ecad153db11bca1aebe151213bfb42 (patch)
tree4327cf9adc8edb6cdff665fe036e479c7190b1ec /lib/bb/build.py
parent66c63167cd139706100bfa35eb4ca66c98407615 (diff)
downloadbitbake-f9cf2671c0ecad153db11bca1aebe151213bfb42.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). Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 736ba2439..95f1dcfcb 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -291,12 +291,13 @@ def _exec_task(fn, task, d, quieterr):
bb.utils.mkdirhier(tempdir)
loglink = os.path.join(tempdir, 'log.{0}'.format(task))
- logfn = os.path.join(tempdir, 'log.{0}.{1}'.format(task, os.getpid()))
+ logbase = 'log.{0}.{1}'.format(task, os.getpid())
+ logfn = os.path.join(tempdir, logbase)
if loglink:
bb.utils.remove(loglink)
try:
- os.symlink(logfn, loglink)
+ os.symlink(logbase, loglink)
except OSError:
pass