python-ssl.patch (6ae46fac) python-ssl.patch (6ee2a585)
1diff -ru misc/Python-2.7.6/PCbuild/build_ssl.py misc/build/Python-2.7.6/PCbuild/build_ssl.py
2--- misc/Python-2.7.6/PCbuild/build_ssl.py 2012-04-09 18:07:35.000000000 -0500
3+++ misc/build/Python-2.7.6/PCbuild/build_ssl.py 2012-07-25 14:37:37.000000000 -0500
4@@ -253,4 +253,4 @@
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 @@
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 -ru misc/Python-2.7.6/setup.py misc/build/Python-2.7.6/setup.py
11--- misc/Python-2.7.6/setup.py 2012-04-09 18:07:36.000000000 -0500
12+++ misc/build/Python-2.7.6/setup.py 2012-07-25 14:37:37.000000000 -0500
13@@ -702,7 +702,15 @@
14 exts.append( Extension('_socket', ['socketmodule.c'],
15 depends = ['socketmodule.h']) )
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 @@
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 ]
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@@ -714,8 +722,15 @@
29@@ -798,8 +806,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