Dependency loop in docs-xml creation
David Mulder
dmulder at suse.com
Fri Jan 25 23:23:13 UTC 2019
The creation of parameters.all.xml somehow contains a dependency loop.
The code below is a workaround, but I haven't tracked down the cause.
diff --git a/docs-xml/wscript_build b/docs-xml/wscript_build
index 86600ae4a82..5b4cf5690ff 100644
--- a/docs-xml/wscript_build
+++ b/docs-xml/wscript_build
@@ -141,10 +141,10 @@ def smbdotconf_generate_parameter_list(task):
# POSIX file systems aren't required to return sorted content but we want
# smb.conf parameters to be sorted alphabetically
sources = bld.path.ant_glob("smbdotconf/**/*.xml", flat=False)
+parameter_all = 'smbdotconf/parameters.all.xml'
articles = " ".join(sorted([x.path_from(bld.path) for x in sources],
- key=lambda m: m.split(os.sep)[-1]))
+ key=lambda m:
m.split(os.sep)[-1])).replace(parameter_all, '')
-parameter_all = 'smbdotconf/parameters.all.xml'
bld.SAMBA_GENERATOR(parameter_all,
source=articles,
target=parameter_all,
--
David Mulder
SUSE Labs Software Engineer - Samba
dmulder at suse.com
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
More information about the samba-technical
mailing list