]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: fix dependencies on environment variables for python_fixup
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2014 21:14:23 +0000 (23:14 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:04 +0000 (21:09 +0100)
We now checksum the sourcecode of copy_and_fix_python_path()
and the env variables used by this function.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 7316653a82fea3dfe1ac8aa89003ce15836a11b9)

buildtools/wafsamba/wafsamba.py

index c3a07e6d218c222a4d6c0c4c940ff2fcb79ecf96..46309d549d10c124d6636a3decea666abc445a97 100644 (file)
@@ -741,12 +741,9 @@ def install_file(bld, destdir, file, chmod=MODE_644, flat=False,
         inst_file = file + '.inst'
         bld.SAMBA_GENERATOR('python_%s' % destname,
                             rule=copy_and_fix_python_path,
+                            dep_vars=["PYTHON","PYTHON_SPECIFIED","PYTHONDIR","PYTHONARCHDIR"],
                             source=file,
                             target=inst_file)
-        bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHONARCHDIR"])
-        bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHONDIR"])
-        bld.add_manual_dependency(bld.path.find_or_declare(inst_file), str(bld.env["PYTHON_SPECIFIED"]))
-        bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHON"])
         file = inst_file
     if base_name:
         file = os.path.join(base_name, file)