s3-waf: Correctly create symlink if SAMBA_BINARY targets are not in the current diectory
authorKai Blin <kai@samba.org>
Sun, 11 Apr 2010 19:59:43 +0000 (21:59 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 12 Apr 2010 07:47:30 +0000 (17:47 +1000)
Many thanks to ita for pointing out the fix.

buildtools/wafsamba/samba_install.py

index df65da1e15be1267497547c85f39f375f4eb6055..6da44932189a125d3a3254bd31eb6f5fcfd68a9a 100644 (file)
@@ -150,7 +150,7 @@ def symlink_bin(self):
 
     blddir = os.path.dirname(self.bld.srcnode.abspath(self.bld.env))
     binpath = self.link_task.outputs[0].abspath(self.env)
-    bldpath = os.path.join(self.bld.env.BUILD_DIRECTORY, self.target)
+    bldpath = os.path.join(self.bld.env.BUILD_DIRECTORY, self.link_task.outputs[0].name)
 
     if os.path.lexists(bldpath):
         old_link = os.readlink(bldpath)