summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-25 14:21:22 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:06 +1000
commit7bb5be1324bbdc3af51ac21820f2f25e7df2fca9 (patch)
tree421a18b6c51eb1a61c42a0e122069603f3ccbd8d /buildtools/wafsamba
parent6c3b69be9bdfc29ad0c0fa2c028fad0be193e042 (diff)
downloadsamba-7bb5be1324bbdc3af51ac21820f2f25e7df2fca9.tar.gz
samba-7bb5be1324bbdc3af51ac21820f2f25e7df2fca9.tar.bz2
samba-7bb5be1324bbdc3af51ac21820f2f25e7df2fca9.zip
build: solaris8 doesn't honor the -f flag to ln.
It's in the man page, but it doesn't work!
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/wafsamba.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 0e82ec7e35..9e7c39581b 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -513,8 +513,8 @@ def ENABLE_TIMESTAMP_DEPENDENCIES(conf):
# handle the creation of links for libraries and binaries
# note that we use a relative symlink path to allow the whole tree
# to me moved/copied elsewhere without breaking the links
-t = Task.simple_task_type('symlink_lib', 'ln -sf ${LINK_SOURCE} ${LINK_TARGET}',
- color='PINK', ext_in='.bin')
+t = Task.simple_task_type('symlink_lib', 'rm -f ${LINK_TARGET} && ln -s ${LINK_SOURCE} ${LINK_TARGET}',
+ shell=True, color='PINK', ext_in='.bin')
t.quiet = True
@feature('symlink_lib')
@@ -542,8 +542,8 @@ def symlink_lib(self):
self.name, tsk.env.LINK_SOURCE, tsk.env.LINK_TARGET)
-t = Task.simple_task_type('symlink_bin', 'ln -sf ${SRC} ${BIN_TARGET}',
- color='PINK', ext_in='.bin')
+t = Task.simple_task_type('symlink_bin', 'rm -f ${BIN_TARGET} && ln -s ${SRC} ${BIN_TARGET}',
+ shell=True, color='PINK', ext_in='.bin')
t.quiet = True
@feature('symlink_bin')
@@ -563,8 +563,8 @@ def symlink_bin(self):
-t = Task.simple_task_type('copy_script', 'ln -sf ${SRC[0].abspath(env)} ${LINK_TARGET}',
- color='PINK', ext_in='.bin', shell=True)
+t = Task.simple_task_type('copy_script', 'rm -f && ln -s ${SRC[0].abspath(env)} ${LINK_TARGET}',
+ shell=True, color='PINK', ext_in='.bin')
t.quiet = True
@feature('copy_script')