From 71fc5be3324e57ea9d8384c660caa05412017cc7 Mon Sep 17 00:00:00 2001 From: james-coder Date: Thu, 5 Mar 2026 21:13:12 -0700 Subject: [PATCH] build(python): resolve pyconfig.h include path breakage Meson\'s python.dependency() defaulted to pkg-config in this environment. With Frida\'s bundled pkg-config plus PKG_CONFIG_LIBDIR, python-3.10.pc cflags were rewritten to /usr/lib/include/... instead of /usr/include/..., causing extension.c to fail with pyconfig.h not found. Switch python dependency discovery to method='system' so include and link flags come from Python\'s system metadata instead of pkg-config. This avoids the pkg-config relocation quirk while preserving normal frida-python build behavior. Validation: - ./configure (default, frida_python enabled) succeeds - make succeeds, including: [348/349] Compiling ... frida/_frida/extension.c.o [349/349] Linking ... frida/_frida/_frida.abi3.so --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index aa96710a..c82d7884 100644 --- a/meson.build +++ b/meson.build @@ -19,7 +19,7 @@ if ndebug == 'true' or (ndebug == 'if-release' and not get_option('debug')) ] endif -python_dep = python.dependency() +python_dep = python.dependency(method: 'system') frida_core_dep = dependency('frida-core-1.0', default_options: [ 'frida_version=' + meson.project_version().replace('.dev', '-dev.'), ])