From 2ff6a3ecb60ec39714f8cfe8266b57633ecb12f2 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 20 Jan 2025 13:26:18 -0300 Subject: [PATCH] docs: doc-cache-generator: Pass the full os.environ so `pkg-config` can be found We want to pass the `PATH` from the current environment. Part-of: --- subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py b/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py index 9eb79c4569..75f62a0bca 100755 --- a/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py +++ b/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py @@ -22,7 +22,6 @@ import os import sys import re import subprocess -import tempfile from pathlib import Path as P from argparse import ArgumentParser @@ -51,7 +50,7 @@ PROJECT_NAME_MAP = { def get_c_flags(dep, buildroot, uninstalled=True): - env = {} + env = os.environ.copy() if uninstalled: env['PKG_CONFIG_PATH'] = os.path.join(buildroot, 'meson-uninstalled') res = subprocess.run(['pkg-config', '--cflags', dep], env=env, capture_output=True)