[packages/libplist] - fix building with python 3.8 - rel 5

baggins baggins at pld-linux.org
Sat Nov 2 21:52:12 CET 2019


commit 5f241af9a1b9bf3dc61991cb54a418fe6a36b64f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 2 21:50:36 2019 +0100

    - fix building with python 3.8
    - rel 5

 libplist.spec    |  6 +++++-
 python-3.8.patch | 16 ++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/libplist.spec b/libplist.spec
index 31c52ba..06bc29c 100644
--- a/libplist.spec
+++ b/libplist.spec
@@ -11,12 +11,13 @@ Summary:	Library for manipulating Apple Property Lists
 Summary(pl.UTF-8):	Biblioteka do manipulowania Apple Property Lists
 Name:		libplist
 Version:	2.0.0
-Release:	4
+Release:	5
 License:	LGPL v2.1+
 Group:		Libraries
 # Source0Download: http://www.libimobiledevice.org/
 Source0:	http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
 # Source0-md5:	16fb70d869f66e23cbe140109e78b650
+Patch0:		python-3.8.patch
 URL:		http://www.libimobiledevice.org/
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake
@@ -146,6 +147,7 @@ Plik nagłówkowy Cythona dla wiązania Pythona do biblioteki libplist.
 
 %prep
 %setup -q
+%patch0 -p1
 
 touch cython/*.py[xh]
 
@@ -171,6 +173,8 @@ cd ..
 topdir=$(pwd)
 install -d build-py3
 cd build-py3
+export PYTHON_EXTRA_LIBS=$(python3-config --libs --embed)
+export PYTHON_LDFLAGS=$(python3-config --libs --embed)
 ../%configure \
 	PYTHON=%{__python3} \
 	--disable-silent-rules
diff --git a/python-3.8.patch b/python-3.8.patch
new file mode 100644
index 0000000..19917d1
--- /dev/null
+++ b/python-3.8.patch
@@ -0,0 +1,16 @@
+--- libplist-2.0.0/m4/ac_python_devel.m4~	2015-01-31 20:18:32.000000000 +0100
++++ libplist-2.0.0/m4/ac_python_devel.m4	2019-11-02 21:47:11.479855891 +0100
+@@ -169,10 +169,10 @@
+ 	# Check for Python library path
+ 	#
+ 	AC_MSG_CHECKING([for Python library path])
+-	if type $PYTHON-config; then
+-		PYTHON_LDFLAGS=`$PYTHON-config --ldflags`
+-	fi
+ 	if test -z "$PYTHON_LDFLAGS"; then
++		if type $PYTHON-config; then
++			PYTHON_LDFLAGS=`$PYTHON-config --ldflags`
++		fi
+ 		# (makes two attempts to ensure we've got a version number
+ 		# from the interpreter)
+ 		py_version=`$PYTHON -c "from distutils.sysconfig import *; \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libplist.git/commitdiff/5f241af9a1b9bf3dc61991cb54a418fe6a36b64f



More information about the pld-cvs-commit mailing list