From 4d16bc3c5ee89a63b5ba7eb5e722ea79e03b6043 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 27 Mar 2012 14:07:23 -0500 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib') 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): 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 -- cgit v1.2.3-54-g00ecf