summaryrefslogtreecommitdiff
path: root/python/python-ssl.patch
blob: 1e92413bec785ad38b92d6170c5df691ee5dbb49 (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
35
36
37
38
39
40
41
42
43
44
45
diff -ruN misc/Python-2.7.15/PC/VS9.0/build_ssl.py misc/build/Python-2.7.15/PC/VS9.0/build_ssl.py
--- misc/Python-2.7.15/PC/VS9.0/build_ssl.py	2014-06-29 21:05:46.000000000 -0500
+++ misc/build/Python-2.7.15/PC/VS9.0/build_ssl.py	2016-01-01 15:15:32.256357072 -0500
@@ -242,4 +242,4 @@
     sys.exit(rc)
 
 if __name__=='__main__':
-    main()
+    sys.exit(0)
diff -ruN misc/Python-2.7.15/setup.py misc/build/Python-2.7.15/setup.py
--- misc/Python-2.7.15/setup.py	2014-06-29 21:05:48.000000000 -0500
+++ misc/build/Python-2.7.15/setup.py	2016-01-01 15:15:32.258356209 -0500
@@ -808,7 +808,15 @@
                                depends=['socketmodule.h'],
                                libraries=math_libs) )
         # Detect SSL support for the socket module (via _ssl)
+        UPDMINOR = os.environ.get('UPDMINOREXT')
+        ooosslinc = os.environ.get('SOLARVERSION') + '/' + \
+            os.environ.get('INPATH') + '/' + \
+            'inc'
+        if UPDMINOR != None:
+            ooosslinc = ooosslinc + UPDMINOR
+        ooosslinc = ooosslinc + '/external/'
         search_for_ssl_incs_in = [
+                              ooosslinc,
                               '/usr/local/ssl/include',
                               '/usr/contrib/ssl/include/'
                              ]
@@ -820,8 +828,15 @@
                                ['/usr/kerberos/include'])
             if krb5_h:
                 ssl_incs += krb5_h
+        ooossllib = os.environ.get('SOLARVER') + '/' + \
+            os.environ.get('INPATH') + '/' + \
+            'lib'
+        if UPDMINOR != None:
+            ooosslinc = ooosslinc + UPDMINOR
+        ooosslinc = ooosslinc + '/'
         ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
-                                     ['/usr/local/ssl/lib',
+                                     [ooossllib,
+                                      '/usr/local/ssl/lib',
                                       '/usr/contrib/ssl/lib/'
                                      ] )