buildtools: Work around a . being in the target name when building python3 helpers
[nivanova/samba-autobuild/.git] / buildtools / wafsamba / samba_deps.py
index 6976a9a81d02eb67c24b4931d821b43dc1bedaa0..978a5e9afe6f28d3c8129c2910cfb02b0ac4d223 100644 (file)
@@ -229,6 +229,7 @@ def add_init_functions(self):
 
     if modules == []:
         sname = sname.replace('-','_')
+        sname = sname.replace('.','_')
         sname = sname.replace('/','_')
         cflags.append('-DSTATIC_%s_MODULES=%s' % (sname, sentinel))
         if sentinel == 'NULL':
@@ -343,7 +344,7 @@ def check_group_ordering(bld, tgt_list):
                 ret = False
 
     return ret
-
+Build.BuildContext.check_group_ordering = check_group_ordering
 
 def show_final_deps(bld, tgt_list):
     '''show the final dependencies for all targets'''
@@ -1140,7 +1141,7 @@ def check_project_rules(bld):
 
     debug("deps: check_duplicate_sources: %f" % (time.clock() - tstart))
 
-    if not check_group_ordering(bld, tgt_list):
+    if not bld.check_group_ordering(tgt_list):
         Logs.error("Bad group ordering - aborting")
         sys.exit(1)