1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/buildtools/wafsamba
Joe Guo c9fa0a05d9 wafsamba/samba_utils.py: override symlink to allow force link
if bin is not empty and I have been sharing the samba tree into
a Vagrant environment and we run make, we get annoying linking error like this:

     File "~/samba/lib/tevent/wscript", line 130, in build
        installdir='python')
      File "./buildtools/wafsamba/wafsamba.py", line 745, in SAMBA_SCRIPT
        os.symlink(link_src, link_dst)
    FileExistsError: [Errno 17] File exists: '~/samba/lib/tevent/tevent.py' -> '~/samba/bin/default/../python/tevent.py'
    Makefile:7: recipe for target 'all' failed

Override the symlink method to allow force linking.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-02-13 04:15:15 +01:00
..
tests PY3: ensure StringIO usage is py2/py3 compatible 2018-10-23 05:50:27 +02:00
__init__.py waf: Add initial unit test for samba_utils. 2012-02-12 18:44:09 +01:00
configure_file.py third_party:waf: update to upstream 2.0.4 release 2018-09-05 06:37:22 +02:00
generic_cc.py wafsamba: fix generic_cc.py to work with waf 2 2018-09-10 19:28:15 +02:00
pkgconfig.py buildtools/wafsamba: add_manual_dependency needs bytes for value 2018-09-27 01:54:27 +02:00
README build: tidy up the wafsamba rules a bit 2010-04-06 20:27:14 +10:00
samba3.py build: replace SAMBA3_ADD_OPTION with samba_add_onoff_option 2019-02-01 16:08:25 +01:00
samba_abi.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_autoconf.py waf: let CHECK_SIZEOF check for 64 bit also 2019-01-02 14:10:41 +01:00
samba_autoproto.py third_party:waf: update to upstream 2.0.4 release 2018-09-05 06:37:22 +02:00
samba_bundled.py PY3: relative import fixes 2018-10-23 05:50:26 +02:00
samba_conftests.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_cross.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_deps.py wafsamba: Do not remove BUILTINS as duplicates 2018-12-20 12:16:39 +01:00
samba_dist.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_git.py build:wafsamba: Build on waf 1.9 2018-09-05 06:37:21 +02:00
samba_headers.py third_party:waf: update to upstream 2.0.4 release 2018-09-05 06:37:22 +02:00
samba_install.py third_party:waf: update to upstream 2.0.4 release 2018-09-05 06:37:22 +02:00
samba_patterns.py PY3: bytes.maketrans, string.maketrans is a PY2 only function 2018-09-16 06:16:19 +02:00
samba_perl.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_pidl.py wafsamba: fix pidl dependencies to rebuild on pidl changes 2018-12-13 08:52:23 +01:00
samba_python.py buildtools/wafsamba: Ensure default python picked up is python3 2018-12-14 00:51:33 +01:00
samba_third_party.py third_party: Update socket_wrapper to version 1.2.1 2018-11-15 04:50:31 +01:00
samba_utils.py wafsamba/samba_utils.py: override symlink to allow force link 2019-02-13 04:15:15 +01:00
samba_version.py buildtools/wafsamba: Avoid decode when using python2 2019-02-11 07:43:31 +01:00
samba_waf18.py wafsamba: remove unused Build.BuildContext.pre_build overload 2018-11-20 01:33:34 +01:00
samba_wildcard.py waflib: add necessary imports 2018-11-01 05:08:13 +01:00
stale_files.py buildtools/wafsamba: port stale_files to waf 2.0 2018-09-05 06:37:27 +02:00
symbols.py waf-py3: Allow waf build --dup-symbol-check to operate in python3 2018-12-13 01:49:30 +01:00
test_duplicate_symbol.sh selftest: Run waf build --dup-symbol-check under $PYTHON 2018-12-13 01:49:30 +01:00
wafsamba.py wafsamba/samba_utils.py: override symlink to allow force link 2019-02-13 04:15:15 +01:00
wscript wafsamba/replace: move __STDC_WANT_LIB_EXT1__ to CFLAGS 2019-01-29 22:09:07 +01:00

This is a set of waf 'tools' to help make building the Samba
components easier, by having common functions in one place. This gives
us a more consistent build, and ensures that our project rules are
obeyed


TODO:
	see http://wiki.samba.org/index.php/Waf