From a9d6f02b4bebc5da64bce83f6a1441c4337087f9 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Jun 18 2019 12:35:27 +0000 Subject: add upsream patch to build wuth python-3.8 --- diff --git a/python-caja_0001-Add-support-for-building-with-Python-3.8.patch b/python-caja_0001-Add-support-for-building-with-Python-3.8.patch new file mode 100644 index 0000000..7502f6e --- /dev/null +++ b/python-caja_0001-Add-support-for-building-with-Python-3.8.patch @@ -0,0 +1,35 @@ +From c032d6863ea488c1dd1c4fdc9215e3f8ed53836c Mon Sep 17 00:00:00 2001 +From: Patrick Monnerat +Date: Mon, 17 Jun 2019 14:13:04 +0200 +Subject: [PATCH] Add support for building with Python 3.8 + +Embedding Python >= 3.8 requires to use the pkgconfig profile python-*-embed. +Try to use it and fallback to non-suffixed name on error. +--- + configure.ac | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 1aacdd2..4e23b59 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -39,8 +39,14 @@ dnl ************************************************** + dnl * Check for Python + dnl ************************************************** + AM_PATH_PYTHON([2.7]) +-PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}]) +-PYTHON_LIB_LOC="`pkg-config python-${PYTHON_VERSION} --variable=libdir`" ++PYTHON_PKG="python-${PYTHON_VERSION}-embed" ++PKG_CHECK_MODULES([PYTHON], [${PYTHON_PKG}],, ++ [ ++ PYTHON_PKG=python-${PYTHON_VERSION} ++ PKG_CHECK_MODULES([PYTHON], [${PYTHON_PKG}]) ++ ] ++) ++PYTHON_LIB_LOC="`pkg-config ${PYTHON_PKG} --variable=libdir`" + PYTHON_ABIFLAGS=`$PYTHON -c 'import sys; exec("try: print (sys.abiflags)\nexcept: pass")'` + AC_SUBST(PYTHON_LIBS) + AC_SUBST(PYTHON_CFLAGS) +-- +2.21.0 +