From bc285dbbbead1c340e61bdf869fbc69fd11955f5 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Wed, 8 Jan 2025 11:47:34 -0300 Subject: [PATCH] ges: Fix Xcode-provided Python library name fetching Both INSTSONAME and LDLIBRARY point to the Python interpreter, not to libpythonX.Y.dylib, unlike the pythonX.Y-embed module Xcode provides. Part-of: --- subprojects/gst-editing-services/meson.build | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/subprojects/gst-editing-services/meson.build b/subprojects/gst-editing-services/meson.build index a1f1d0a499..1f4fe57a1b 100644 --- a/subprojects/gst-editing-services/meson.build +++ b/subprojects/gst-editing-services/meson.build @@ -188,13 +188,15 @@ elif build_gir and python.found() pylib_suffix = 'dylib' endif pylib_fnames = [] - # Library name with soversion, non-devel package - if python.has_variable('INSTSONAME') - pylib_fnames += python.get_variable('INSTSONAME') - endif - # Library name without soversion, devel package, framework, etc. - if python.has_variable('LDLIBRARY') - pylib_fnames += python.get_variable('LDLIBRARY') + if host_system != 'darwin' # Ignore system Python (INSTSONAME points to the Python3 executable and not libpython3.9.dylib) + # Library name with soversion, non-devel package + if python.has_variable('INSTSONAME') + pylib_fnames += python.get_variable('INSTSONAME') + endif + # Library name without soversion, devel package, framework, etc. + if python.has_variable('LDLIBRARY') + pylib_fnames += python.get_variable('LDLIBRARY') + endif endif # Manually construct name as a fallback pylib_fnames += [