From ee64e71f69862d5f51fc67f6b0efe89a0b7576ba Mon Sep 17 00:00:00 2001 From: wh201906 Date: Fri, 24 Nov 2023 13:08:46 +0800 Subject: [PATCH] Fix client build with Python 3.12 Caused by upstream bug https://github.com/python/cpython/issues/106560 The fix is like this https://github.com/intel-media-ci/gstreamer/commit/bbdf6d46539061bf171319ae51999f061148ecbc --- client/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/Makefile b/client/Makefile index 06b4258bb..6534f27a0 100644 --- a/client/Makefile +++ b/client/Makefile @@ -273,7 +273,7 @@ ifneq ($(SKIPPYTHON),1) PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null) ifneq ($(PYTHONLDLIBS),) PYTHONLIBLD = $(PYTHONLDLIBS) - PYTHONLIBINC = $(PYTHONINCLUDES) + PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES)) PYTHON_FOUND = 1 else # since python3.8, applications willing to embed python must use -embed: @@ -281,7 +281,7 @@ ifneq ($(SKIPPYTHON),1) PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3-embed 2>/dev/null) ifneq ($(PYTHONLDLIBS),) PYTHONLIBLD = $(PYTHONLDLIBS) - PYTHONLIBINC = $(PYTHONINCLUDES) + PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES)) PYTHON_FOUND = 1 endif endif