python-ssl.patch (6ee2a585) python-ssl.patch (4ad7762f)
1diff -ruN misc/Python-2.7.8/PCbuild/build_ssl.py misc/build/Python-2.7.8/PCbuild/build_ssl.py
2--- misc/Python-2.7.8/PCbuild/build_ssl.py 2014-06-29 21:05:46.000000000 -0500
3+++ misc/build/Python-2.7.8/PCbuild/build_ssl.py 2016-01-01 15:15:32.256357072 -0500
4@@ -229,4 +229,4 @@
1diff -ruN misc/Python-2.7.9/PCbuild/build_ssl.py misc/build/Python-2.7.9/PCbuild/build_ssl.py
2--- misc/Python-2.7.9/PCbuild/build_ssl.py 2014-06-29 21:05:46.000000000 -0500
3+++ misc/build/Python-2.7.9/PCbuild/build_ssl.py 2016-01-01 15:15:32.256357072 -0500
4@@ -240,4 +240,4 @@
5 sys.exit(rc)
6
7 if __name__=='__main__':
8- main()
9+ sys.exit(0)
5 sys.exit(rc)
6
7 if __name__=='__main__':
8- main()
9+ sys.exit(0)
10diff -ruN misc/Python-2.7.8/setup.py misc/build/Python-2.7.8/setup.py
11--- misc/Python-2.7.8/setup.py 2014-06-29 21:05:48.000000000 -0500
12+++ misc/build/Python-2.7.8/setup.py 2016-01-01 15:15:32.258356209 -0500
13@@ -786,7 +786,15 @@
10diff -ruN misc/Python-2.7.9/setup.py misc/build/Python-2.7.9/setup.py
11--- misc/Python-2.7.9/setup.py 2014-06-29 21:05:48.000000000 -0500
12+++ misc/build/Python-2.7.9/setup.py 2016-01-01 15:15:32.258356209 -0500
13@@ -788,7 +788,15 @@
14 depends=['socketmodule.h'],
15 libraries=math_libs) )
16 # Detect SSL support for the socket module (via _ssl)
17+ UPDMINOR = os.environ.get('UPDMINOREXT')
18+ ooosslinc = os.environ.get('SOLARVERSION') + '/' + \
19+ os.environ.get('INPATH') + '/' + \
20+ 'inc'
21+ if UPDMINOR != None:
22+ ooosslinc = ooosslinc + UPDMINOR
23+ ooosslinc = ooosslinc + '/external/'
24 search_for_ssl_incs_in = [
25+ ooosslinc,
26 '/usr/local/ssl/include',
27 '/usr/contrib/ssl/include/'
28 ]
14 depends=['socketmodule.h'],
15 libraries=math_libs) )
16 # Detect SSL support for the socket module (via _ssl)
17+ UPDMINOR = os.environ.get('UPDMINOREXT')
18+ ooosslinc = os.environ.get('SOLARVERSION') + '/' + \
19+ os.environ.get('INPATH') + '/' + \
20+ 'inc'
21+ if UPDMINOR != None:
22+ ooosslinc = ooosslinc + UPDMINOR
23+ ooosslinc = ooosslinc + '/external/'
24 search_for_ssl_incs_in = [
25+ ooosslinc,
26 '/usr/local/ssl/include',
27 '/usr/contrib/ssl/include/'
28 ]
29@@ -798,8 +806,15 @@
29@@ -800,8 +808,15 @@
30 ['/usr/kerberos/include'])
31 if krb5_h:
32 ssl_incs += krb5_h
33+ ooossllib = os.environ.get('SOLARVER') + '/' + \
34+ os.environ.get('INPATH') + '/' + \
35+ 'lib'
36+ if UPDMINOR != None:
37+ ooosslinc = ooosslinc + UPDMINOR
38+ ooosslinc = ooosslinc + '/'
39 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
40- ['/usr/local/ssl/lib',
41+ [ooossllib,
42+ '/usr/local/ssl/lib',
43 '/usr/contrib/ssl/lib/'
44 ] )
45
30 ['/usr/kerberos/include'])
31 if krb5_h:
32 ssl_incs += krb5_h
33+ ooossllib = os.environ.get('SOLARVER') + '/' + \
34+ os.environ.get('INPATH') + '/' + \
35+ 'lib'
36+ if UPDMINOR != None:
37+ ooosslinc = ooosslinc + UPDMINOR
38+ ooosslinc = ooosslinc + '/'
39 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
40- ['/usr/local/ssl/lib',
41+ [ooossllib,
42+ '/usr/local/ssl/lib',
43 '/usr/contrib/ssl/lib/'
44 ] )
45