gst-uninstalled: Don't add validate plugins to GST_PLUGIN_PATH
authorAlicia Boya García <aboya@igalia.com>
Fri, 23 Nov 2018 14:42:03 +0000 (15:42 +0100)
committerAlicia Boya García <aboya@igalia.com>
Fri, 23 Nov 2018 14:42:03 +0000 (15:42 +0100)
Validate plugins are automatically scanned from GST_VALIDATE_PLUGIN_PATH
instead. Adding them to GST_PLUGIN_PATH causes race conditions as the
plugins may be loaded before validate itself.

gst-uninstalled.py

index 48f6637..0596535 100755 (executable)
@@ -81,9 +81,12 @@ def get_subprocess_env(options, gst_version):
     targets = json.loads(targets_s.decode())
     paths = set()
     mono_paths = set()
+    srcdir_path = pathlib.Path(options.srcdir)
     for target in targets:
         filename = target['filename']
         root = os.path.dirname(filename)
+        if srcdir_path / "subprojects/gst-devtools/validate/plugins" in (srcdir_path / root).parents:
+            continue
         if filename.endswith('.dll'):
             mono_paths.add(os.path.join(options.builddir, root))
         if typelib_reg.search(filename):