Skip to content

Commit

Permalink
meson: Workaround python 3.12 warning
Browse files Browse the repository at this point in the history
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;
      |                          ^~~~~~~~~~~
```

python/cpython#106560

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5541>
  • Loading branch information
alatiera authored and GStreamer Marge Bot committed Nov 11, 2023
1 parent a238cae commit bbdf6d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions subprojects/gst-editing-services/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bbdf6d4

Please sign in to comment.