[SCM] Samba Shared Repository - branch master updated

Andrew Tridgell tridge at samba.org
Wed Apr 14 22:48:46 MDT 2010


The branch, master has been updated
       via  0bda3ba... build: throw a fatal error for duplicate target declarations
       via  daf4ad5... s4-waf: removed a duplicate declaration of python_netbios
      from  34887de... build: ensure we don't recreate library loops in expansions

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 0bda3bae4cd68285e106261ffe79a1da1f778861
Author: Andrew Tridgell <tridge at samba.org>
Date:   Thu Apr 15 14:43:43 2010 +1000

    build: throw a fatal error for duplicate target declarations
    
    We don't want someone to declare two subsystems of the same name but
    with different source files
    
    Pair-Programmed-With: Andrew Bartlett <abartlet at samba.org>

commit daf4ad59057d9a7970393d94a4f1c3dfd1e77d21
Author: Andrew Tridgell <tridge at samba.org>
Date:   Thu Apr 15 14:42:13 2010 +1000

    s4-waf: removed a duplicate declaration of python_netbios

-----------------------------------------------------------------------

Summary of changes:
 buildtools/wafsamba/samba_autoproto.py |    5 ++++-
 buildtools/wafsamba/samba_utils.py     |    8 ++++----
 buildtools/wafsamba/wafsamba.py        |   10 ----------
 source4/libcli/wscript_build           |    7 -------
 4 files changed, 8 insertions(+), 22 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_autoproto.py b/buildtools/wafsamba/samba_autoproto.py
index 2a903d9..edabc7e 100644
--- a/buildtools/wafsamba/samba_autoproto.py
+++ b/buildtools/wafsamba/samba_autoproto.py
@@ -29,8 +29,11 @@ Build.BuildContext.HEIMDAL_AUTOPROTO_PRIVATE = HEIMDAL_AUTOPROTO_PRIVATE
 def SAMBA_AUTOPROTO(bld, header, source):
     '''rule for samba prototype generation'''
     bld.SET_BUILD_GROUP('prototypes')
-    SET_TARGET_TYPE(bld, header, 'PROTOTYPE')
+    relpath = os_path_relpath(bld.curdir, bld.srcnode.abspath())
+    name = os.path.join(relpath, header)
+    SET_TARGET_TYPE(bld, name, 'PROTOTYPE')
     t = bld(
+        name = name,
         source = source,
         target = header,
         on_results=True,
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index bf051af..94975c6 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -16,10 +16,10 @@ def SET_TARGET_TYPE(ctx, target, value):
     '''set the target type of a target'''
     cache = LOCAL_CACHE(ctx, 'TARGET_TYPE')
     if target in cache and cache[target] != 'EMPTY':
-        ASSERT(ctx, cache[target] == value,
-               "Target '%s' re-defined as %s - was %s" % (target, value, cache[target]))
-        debug("task_gen: Skipping duplicate target %s (curdir=%s)" % (target, ctx.curdir))
-        return False
+        Logs.error("ERROR: Target '%s' in directory %s re-defined as %s - was %s" % (target,
+                                                                                     ctx.curdir,
+                                                                                     value, cache[target]))
+        sys.exit(1)
     LOCAL_CACHE_SET(ctx, 'TARGET_TYPE', target, value)
     debug("task_gen: Target '%s' created of type '%s' in %s" % (target, value, ctx.curdir))
     return True
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index dd9cbd6..633484b 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -187,12 +187,6 @@ def SAMBA_LIBRARY(bld, libname, source,
     if link_name:
         t.link_name = link_name
 
-    if autoproto is not None:
-        bld.SAMBA_AUTOPROTO(autoproto, source)
-
-    if public_headers is not None:
-        bld.PUBLIC_HEADERS(public_headers, header_path=header_path)
-
     if pc_files is not None:
         bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
 
@@ -278,10 +272,6 @@ def SAMBA_BINARY(bld, binname, source,
     if subsystem_name is not None:
         bld.TARGET_ALIAS(subsystem_name, binname)
 
-    if autoproto is not None:
-        bld.SAMBA_AUTOPROTO(autoproto, source)
-    if public_headers is not None:
-        bld.PUBLIC_HEADERS(public_headers, header_path=header_path)
 Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY
 
 
diff --git a/source4/libcli/wscript_build b/source4/libcli/wscript_build
index d46fed7..82f0253 100644
--- a/source4/libcli/wscript_build
+++ b/source4/libcli/wscript_build
@@ -41,13 +41,6 @@ bld.SAMBA_SUBSYSTEM('LIBCLI_SMB_COMPOSITE',
 	)
 
 
-bld.SAMBA_PYTHON('python_netbios',
-	source='../../libcli/nbt/pynbt.c',
-	public_deps='LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG',
-	realname='samba/netbios.so'
-	)
-
-
 bld.SAMBA_SUBSYSTEM('LIBCLI_DGRAM',
 	source='dgram/dgramsocket.c dgram/mailslot.c dgram/netlogon.c dgram/browse.c',
 	public_deps='LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON'


-- 
Samba Shared Repository


More information about the samba-cvs mailing list