[packages/pdflib] use PYTHONBIN for python lib dir detection instead of fixed "python"

atler atler at pld-linux.org
Sun Jun 30 16:18:21 CEST 2024


commit 19ce5f495dfce7115f88f56db3d14c8ca99f5275
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Jun 30 15:32:42 2024 +0200

    use PYTHONBIN for python lib dir detection instead of fixed "python"

 pdflib-python.patch | 11 +++++++++++
 pdflib.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/pdflib.spec b/pdflib.spec
index f54573b..ac7fea2 100644
--- a/pdflib.spec
+++ b/pdflib.spec
@@ -35,6 +35,7 @@ Patch6:		%{name}-libpng.patch
 Patch7:		format-security.patch
 Patch8:		%{name}-flags.patch
 Patch9:		java-paths.patch
+Patch10:	pdflib-python.patch
 URL:		https://www.pdflib.com/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -159,6 +160,7 @@ Dowiązania pythona dla pdflib.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 %{__libtoolize}
diff --git a/pdflib-python.patch b/pdflib-python.patch
new file mode 100644
index 0000000..c00587c
--- /dev/null
+++ b/pdflib-python.patch
@@ -0,0 +1,11 @@
+--- PDFlib-Lite-7.0.5p3/configure.in.orig	2012-06-06 13:58:57.000000000 +0200
++++ PDFlib-Lite-7.0.5p3/configure.in	2024-06-30 15:16:35.518009402 +0200
+@@ -894,7 +894,7 @@
+ 	if test "$PYTHONBIN" = "nope" ; then
+ 	    WITH_PYTHON=no
+ 	else
+-	    PYTHONLIBDIR=`cat << EOF | python
++	    PYTHONLIBDIR=`cat << EOF | $PYTHONBIN
+ import sys
+ import string
+ print string.join(filter(lambda x: -1 != string.find(x, 'dynload'), sys.path))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pdflib.git/commitdiff/19ce5f495dfce7115f88f56db3d14c8ca99f5275



More information about the pld-cvs-commit mailing list