From e502031171013f659405a80490845ef8f95c3c91 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Mar 2010 20:43:31 +1100 Subject: build: fixed samba_deps.py for python 2.4 --- buildtools/wafsamba/samba_deps.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index d6b68f7c64..cc013eed6b 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -556,6 +556,17 @@ def calculate_final_deps(bld, tgt_list): break if not changed: break + + # we now need to make corrections for any library loops we broke up + # any target that depended on the target of the loop and doesn't + # depend on the source of the loop needs to get the loop source added + for type in ['BINARY']: + for t in tgt_list: + if t.samba_type != type: continue + for loop in loops: + if loop in t.final_libs and loops[loop] not in t.final_libs: + t.final_libs.add(loops[loop]) + debug('deps: removed duplicate dependencies') -- cgit