version up : HAProxy 1.5.9.
[slapos.git] / component / python-2.4 / python2.4-no_system_inc_dirs.patch
1 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
2 Date: Mon, 7 Mar 2011 14:10:31 +0900
3 Subject: [PATCH] Do not use system include directory
4
5 Backport python-2.6.6-no_system_inc_dirs.patch to Python 2.4.
6
7 --- setup.py    2006-10-09 02:41:25.000000000 +0900
8 +++ setup.py    2011-03-07 15:15:00.724000778 +0900
9 @@ -270,7 +270,7 @@
10              '/lib64', '/usr/lib64',
11              '/lib', '/usr/lib',
12              ]
13 -        inc_dirs = self.compiler.include_dirs + ['/usr/include']
14 +        inc_dirs = self.compiler.include_dirs
15          exts = []
16  
17          platform = self.get_platform()
18 @@ -528,31 +528,7 @@
19  
20          # construct a list of paths to look for the header file in on
21          # top of the normal inc_dirs.
22 -        db_inc_paths = [
23 -            '/usr/include/db4',
24 -            '/usr/local/include/db4',
25 -            '/opt/sfw/include/db4',
26 -            '/sw/include/db4',
27 -            '/usr/include/db3',
28 -            '/usr/local/include/db3',
29 -            '/opt/sfw/include/db3',
30 -            '/sw/include/db3',
31 -        ]
32 -        # 4.x minor number specific paths
33 -        for x in (0,1,2,3,4):
34 -            db_inc_paths.append('/usr/include/db4%d' % x)
35 -            db_inc_paths.append('/usr/include/db4.%d' % x)
36 -            db_inc_paths.append('/usr/local/BerkeleyDB.4.%d/include' % x)
37 -            db_inc_paths.append('/usr/local/include/db4%d' % x)
38 -            db_inc_paths.append('/pkg/db-4.%d/include' % x)
39 -            db_inc_paths.append('/opt/db-4.%d/include' % x)
40 -        # 3.x minor number specific paths
41 -        for x in (2,3):
42 -            db_inc_paths.append('/usr/include/db3%d' % x)
43 -            db_inc_paths.append('/usr/local/BerkeleyDB.3.%d/include' % x)
44 -            db_inc_paths.append('/usr/local/include/db3%d' % x)
45 -            db_inc_paths.append('/pkg/db-3.%d/include' % x)
46 -            db_inc_paths.append('/opt/db-3.%d/include' % x)
47 +        db_inc_paths = []
48  
49          # Add some common subdirectories for Sleepycat DB to the list,
50          # based on the standard include directories. This way DB3/4 gets