xref: /aoo42x/main/python/python-ssl.patch (revision 20601043)
1diff -ruN misc/Python-2.7.13/PC/VS9.0/build_ssl.py misc/build/Python-2.7.13/PC/VS9.0/build_ssl.py
2--- misc/Python-2.7.13/PC/VS9.0/build_ssl.py	2014-06-29 21:05:46.000000000 -0500
3+++ misc/build/Python-2.7.13/PC/VS9.0/build_ssl.py	2016-01-01 15:15:32.256357072 -0500
4@@ -242,4 +242,4 @@
5     sys.exit(rc)
6
7 if __name__=='__main__':
8-    main()
9+    sys.exit(0)
10diff -ruN misc/Python-2.7.13/setup.py misc/build/Python-2.7.13/setup.py
11--- misc/Python-2.7.13/setup.py	2014-06-29 21:05:48.000000000 -0500
12+++ misc/build/Python-2.7.13/setup.py	2016-01-01 15:15:32.258356209 -0500
13@@ -808,7 +808,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                              ]
29@@ -820,8 +828,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
46