build:wafsamba: Ensure that check_group_ordering can be overridden
authorThomas Nagy <tnagy@waf.io>
Thu, 19 Nov 2015 00:55:43 +0000 (01:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Nov 2015 07:03:29 +0000 (08:03 +0100)
Group ordering verifications are performed by default in Waf 1.8,
so this method will be redundant. The purpose of this change is
to make it easier to disable check_group_ordering as it contains
code that is very specific to Waf 1.5.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Nov 24 08:03:29 CET 2015 on sn-devel-104

buildtools/wafsamba/samba_deps.py

index 6976a9a81d02eb67c24b4931d821b43dc1bedaa0..2ffe745b8214a135418e387988268ee30820f509 100644 (file)
@@ -343,7 +343,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 +1140,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)