summaryrefslogtreecommitdiff
path: root/textproc/py-libxml2/patches/patch-ab
blob: c051e60fcab20ecd102ac300bd0faba30b32b0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ab,v 1.4 2015/10/23 20:01:08 tnn Exp $

Trust pkgsrc to know which iconv to use.
It will be either in the buildlink directory, or in the compiler's
default search path.

--- setup.py.orig	2014-10-16 07:35:21.000000000 +0000
+++ setup.py
@@ -56,11 +56,7 @@ else:
 # - iconv.h
 # - libxslt/xsltconfig.h
 includes_dir = [
-"/usr/include",
-"/usr/local/include",
-"/opt/include",
-os.path.join(ROOT,'include'),
-HOME
+os.path.join(ROOT,'include')
 ];
 
 xml_includes=""
@@ -73,11 +69,7 @@ if xml_includes == "":
     print("failed to find headers for libxml2: update includes_dir")
     sys.exit(1)
 
-iconv_includes=""
-for dir in includes_dir:
-    if not missing(dir + "/iconv.h"):
-        iconv_includes=dir
-        break;
+iconv_includes=os.path.join(ROOT,'include')
 
 if iconv_includes == "":
     print("failed to find headers for libiconv: update includes_dir")