]> git.pld-linux.org Git - packages/libxml2.git/blob - libxml2-python-setup.patch
fix python module build without libxml2-devel installed
[packages/libxml2.git] / libxml2-python-setup.patch
1 --- libxml2-2.10.0/python/setup.py.in.orig      2022-05-02 14:10:21.000000000 +0200
2 +++ libxml2-2.10.0/python/setup.py.in   2022-08-18 21:39:44.799159134 +0200
3 @@ -73,19 +73,10 @@
4  HOME
5  ];
6  
7 -xml_includes=""
8 -for dir in includes_dir:
9 -    if not missing(dir + "/libxml2/libxml/tree.h"):
10 -        xml_includes=dir + "/libxml2"
11 -        break;
12 -
13 -if xml_includes == "":
14 -    print("failed to find headers for libxml2: update includes_dir")
15 -    sys.exit(1)
16 -
17  # those are added in the linker search path for libraries
18  libdirs = [
19 -os.path.join(ROOT,'lib'),
20 +'@abs_top_builddir@/.libs',
21 +'@libdir@',
22  ]
23  
24  xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
25 @@ -194,7 +185,7 @@
26  if WITHDLLS:
27      modules.append('libxmlmods.__init__')
28  c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ]
29 -includes= [xml_includes]
30 +includes= ['@abs_top_builddir@/include']
31  libs    = [libraryPrefix + "xml2"] + platformLibs
32  macros  = []
33  if with_threads:
This page took 0.037477 seconds and 3 git commands to generate.