From: Alexander Bokovoy Date: Wed, 4 Jul 2018 08:47:42 +0000 (+0300) Subject: buildtools/wafsamba: remove ENFORCE_GROUP_ORDERING X-Git-Tag: tdb-1.3.17~1782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f495f64e2ea831cdc5c2a1a4954df738754de72b;p=thirdparty%2Fsamba.git buildtools/wafsamba: remove ENFORCE_GROUP_ORDERING ENFORCE_GROUP_ORDERING is not needed with waf 2.0 anymore Signed-off-by: Alexander Bokovoy Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index ed5ce7fc410..38756cc74f9 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -239,51 +239,6 @@ def SUBST_ENV_VAR(ctx, varname): Build.BuildContext.SUBST_ENV_VAR = SUBST_ENV_VAR -def ENFORCE_GROUP_ORDERING(bld): - '''enforce group ordering for the project. This - makes the group ordering apply only when you specify - a target with --target''' - if Options.options.compile_targets: - @feature('*') - @before('exec_rule', 'apply_core', 'collect') - def force_previous_groups(self): - if getattr(self.bld, 'enforced_group_ordering', False): - return - self.bld.enforced_group_ordering = True - - def group_name(g): - tm = self.bld.task_manager - return [x for x in tm.groups_names if id(tm.groups_names[x]) == id(g)][0] - - my_id = id(self) - bld = self.bld - stop = None - for g in bld.task_manager.groups: - for t in g.tasks_gen: - if id(t) == my_id: - stop = id(g) - debug('group: Forcing up to group %s for target %s', - group_name(g), self.name or self.target) - break - if stop is not None: - break - if stop is None: - return - - for i in xrange(len(bld.task_manager.groups)): - g = bld.task_manager.groups[i] - bld.task_manager.current_group = i - if id(g) == stop: - break - debug('group: Forcing group %s', group_name(g)) - for t in g.tasks_gen: - if not getattr(t, 'forced_groups', False): - debug('group: Posting %s', t.name or t.target) - t.forced_groups = True - t.post() -Build.BuildContext.ENFORCE_GROUP_ORDERING = ENFORCE_GROUP_ORDERING - - def recursive_dirlist(dir, relbase, pattern=None): '''recursive directory list''' ret = []