From: Andreas Schneider Date: Mon, 17 Dec 2018 20:40:55 +0000 (+0100) Subject: wafsamba: Do not remove BUILTINS as duplicates X-Git-Tag: tdb-1.3.17~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eaa59686bb9707678d3dba2f8e9565b91256235;p=thirdparty%2Fsamba.git wafsamba: Do not remove BUILTINS as duplicates BUILTINS add object files to the target, so we can't remove them as duplicates. The issue e.g happens when tevent wants to link libreplace: 20:04:10 deps removing dups from tevent of type LIBRARY: {'replace'} also in LIBRARY talloc Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index d6b7c0f88d6..f8c38809bd2 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -719,6 +719,11 @@ def reduce_objects(bld, tgt_list): if t.sname in rely_on: dup = dup.difference(rely_on[t.sname]) if dup: + # Do not remove duplicates of BUILTINS + d = next(iter(dup)) + if BUILTIN_LIBRARY(bld, d): + continue + debug('deps: removing dups from %s of type %s: %s also in %s %s', t.sname, t.samba_type, dup, t2.samba_type, l) new = new.difference(dup)