]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: create unique names when building shared modules
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Jan 2015 23:24:53 +0000 (00:24 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Jan 2015 12:22:33 +0000 (13:22 +0100)
After commit 76fdcf5c15bd904c3686f0c2dd93d27486c61ca4, we could endup
with bin/default/source3/auth/libauth-samba4.so being created two times.
Once by SAMBA3_LIBRARY('auth',...) and once again by SAMBA3_MODULE('auth_samba4', ...).

As a result bin/default/source3/auth/libauth-samba4.so gets randomly
overwritten.

SAMBA3_MODULE('auth_samba4', ...) results in
bin/default/source3/auth/libauth_module_samba4.so now.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10112

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jan 19 04:43:53 CET 2015 on sn-devel-104

(cherry picked from commit 47155641cb48d39d3ee7d8b8962f5ed6b23617d4)

Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-2-test): Tue Jan 27 13:22:33 CET 2015 on sn-devel-104

buildtools/wafsamba/wafsamba.py

index 1319751702f681db7ec0d6032542a4592f0a4fa2..188e5355d4d90324628213bc4e6bc6674a9978da 100644 (file)
@@ -484,6 +484,8 @@ def SAMBA_MODULE(bld, modname, source,
     while realname.startswith(subsystem+"_"):
         realname = realname[len(subsystem+"_"):]
 
+    build_name = "%s_module_%s" % (subsystem, realname)
+
     realname = bld.make_libname(realname)
     while realname.startswith("lib"):
         realname = realname[len("lib"):]
@@ -503,6 +505,7 @@ def SAMBA_MODULE(bld, modname, source,
                       local_include=local_include,
                       global_include=global_include,
                       vars=vars,
+                      bundled_name=build_name,
                       link_name=build_link_name,
                       install_path="${MODULESDIR}/%s" % subsystem,
                       pyembed=pyembed,