]> git.pld-linux.org Git - packages/libxml2.git/commitdiff
fix python module build without libxml2-devel installed
authorJan Palus <atler@pld-linux.org>
Thu, 18 Aug 2022 21:39:11 +0000 (23:39 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 18 Aug 2022 21:39:11 +0000 (23:39 +0200)
drop xml_includes determination now that it's unused

libxml2-python-setup.patch

index c29a957ca2167e4936bcc557777b2b5a8a8639cc..b7853d31056f84814d5c1e8f389b72ae556dffca 100644 (file)
@@ -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' ]
This page took 0.0506760000000001 seconds and 4 git commands to generate.