[packages/libxml2] fix python module build without libxml2-devel installed
atler
atler at pld-linux.org
Thu Aug 18 23:40:22 CEST 2022
commit 597ff28e544b74cc54525304892a71af5e68d535
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Aug 18 23:39:11 2022 +0200
fix python module build without libxml2-devel installed
drop xml_includes determination now that it's unused
libxml2-python-setup.patch | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/libxml2-python-setup.patch b/libxml2-python-setup.patch
index c29a957..b7853d3 100644
--- a/libxml2-python-setup.patch
+++ b/libxml2-python-setup.patch
@@ -1,7 +1,19 @@
--- libxml2-2.10.0/python/setup.py.in.orig 2022-05-02 14:10:21.000000000 +0200
+++ libxml2-2.10.0/python/setup.py.in 2022-08-18 21:39:44.799159134 +0200
-@@ -85,7 +85,8 @@ if xml_includes == "":
+@@ -73,19 +73,10 @@
+ HOME
+ ];
+-xml_includes=""
+-for dir in includes_dir:
+- if not missing(dir + "/libxml2/libxml/tree.h"):
+- xml_includes=dir + "/libxml2"
+- break;
+-
+-if xml_includes == "":
+- print("failed to find headers for libxml2: update includes_dir")
+- sys.exit(1)
+-
# those are added in the linker search path for libraries
libdirs = [
-os.path.join(ROOT,'lib'),
@@ -10,7 +22,7 @@
]
xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
-@@ -194,7 +195,7 @@ modules = [ 'libxml2', 'drv_libxml2' ]
+@@ -194,7 +185,7 @@
if WITHDLLS:
modules.append('libxmlmods.__init__')
c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libxml2.git/commitdiff/597ff28e544b74cc54525304892a71af5e68d535
More information about the pld-cvs-commit
mailing list