From bbdf6d46539061bf171319ae51999f061148ecbc Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 24 Oct 2023 06:10:53 +0300 Subject: [PATCH] meson: Workaround python 3.12 warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we are building againt python 3.12, ignore redundant-decls warning that will come from the python headers. ``` /usr/include/python3.12/longobject.h:10:26: warning: redundant redeclaration of ‘PyLong_Type’ [-Wredundant-decls] 10 | PyAPI_DATA(PyTypeObject) PyLong_Type; | ^~~~~~~~~~~ ``` https://github.com/python/cpython/issues/106560 Part-of: --- subprojects/gst-editing-services/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-editing-services/meson.build b/subprojects/gst-editing-services/meson.build index a33b95f90f..92804c9a88 100644 --- a/subprojects/gst-editing-services/meson.build +++ b/subprojects/gst-editing-services/meson.build @@ -156,9 +156,11 @@ elif build_gir if python.found() # Workaround for https://github.com/mesonbuild/meson/issues/5629 pythonver = python.language_version() - python_dep = dependency('python-@0@-embed'.format(pythonver), version: '>=3', required: false) + python_dep = dependency('python-@0@-embed'.format(pythonver), version: '>=3', + required: false, include_type: 'system') if not python_dep.found() - python_dep = python.dependency(required : get_option('python')) + python_dep = python.dependency(required : get_option('python'), + include_type: 'system') endif else python_dep = dependency('', required: false)