Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / python / Python-ssl.patch
blobe60fafab8f3ecd6b5ab9fe87ea25e9fb8b69be9d
1 --- misc/Python-2.6.1/PCbuild/build_ssl.py 2009-11-02 08:24:35.140625000 +0000
2 +++ misc/build/Python-2.6.1/PCbuild/build_ssl.py 2009-11-02 08:25:11.750000000 +0000
3 @@ -255,4 +255,4 @@
4 sys.exit(rc)
6 if __name__=='__main__':
7 - main()
8 + sys.exit(0)
9 --- misc/Python-2.6.1/PCbuild/_ssl.vcproj 2009-11-02 08:24:35.140625000 +0000
10 +++ misc/build/Python-2.6.1/PCbuild/_ssl.vcproj 2009-11-02 08:24:35.140625000 +0000
11 @@ -43,7 +43,7 @@
13 <Tool
14 Name="VCCLCompilerTool"
15 - AdditionalIncludeDirectories="$(opensslDir)\inc32"
16 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
18 <Tool
19 Name="VCManagedResourceCompilerTool"
20 @@ -57,7 +57,7 @@
22 <Tool
23 Name="VCLinkerTool"
24 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
25 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
27 <Tool
28 Name="VCALinkTool"
29 @@ -106,7 +106,7 @@
31 <Tool
32 Name="VCCLCompilerTool"
33 - AdditionalIncludeDirectories="$(opensslDir)\inc64"
34 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
36 <Tool
37 Name="VCManagedResourceCompilerTool"
38 @@ -120,7 +120,7 @@
40 <Tool
41 Name="VCLinkerTool"
42 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
43 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
45 <Tool
46 Name="VCALinkTool"
47 @@ -169,7 +169,7 @@
49 <Tool
50 Name="VCCLCompilerTool"
51 - AdditionalIncludeDirectories="$(opensslDir)\inc32"
52 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
54 <Tool
55 Name="VCManagedResourceCompilerTool"
56 @@ -183,7 +183,7 @@
58 <Tool
59 Name="VCLinkerTool"
60 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
61 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
63 <Tool
64 Name="VCALinkTool"
65 @@ -233,7 +233,7 @@
67 <Tool
68 Name="VCCLCompilerTool"
69 - AdditionalIncludeDirectories="$(opensslDir)\inc64"
70 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
72 <Tool
73 Name="VCManagedResourceCompilerTool"
74 @@ -247,7 +247,7 @@
76 <Tool
77 Name="VCLinkerTool"
78 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
79 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
81 <Tool
82 Name="VCALinkTool"
83 @@ -296,7 +296,7 @@
85 <Tool
86 Name="VCCLCompilerTool"
87 - AdditionalIncludeDirectories="$(opensslDir)\inc32"
88 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
90 <Tool
91 Name="VCManagedResourceCompilerTool"
92 @@ -310,7 +310,7 @@
94 <Tool
95 Name="VCLinkerTool"
96 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
97 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
99 <Tool
100 Name="VCALinkTool"
101 @@ -360,7 +360,7 @@
103 <Tool
104 Name="VCCLCompilerTool"
105 - AdditionalIncludeDirectories="$(opensslDir)\inc64"
106 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
108 <Tool
109 Name="VCManagedResourceCompilerTool"
110 @@ -374,7 +374,7 @@
112 <Tool
113 Name="VCLinkerTool"
114 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
115 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
116 TargetMachine="17"
118 <Tool
119 @@ -424,7 +424,7 @@
121 <Tool
122 Name="VCCLCompilerTool"
123 - AdditionalIncludeDirectories="$(opensslDir)\inc32"
124 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
126 <Tool
127 Name="VCManagedResourceCompilerTool"
128 @@ -438,7 +438,7 @@
130 <Tool
131 Name="VCLinkerTool"
132 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
133 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
135 <Tool
136 Name="VCALinkTool"
137 @@ -488,7 +488,7 @@
139 <Tool
140 Name="VCCLCompilerTool"
141 - AdditionalIncludeDirectories="$(opensslDir)\inc64"
142 + AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc\external"
144 <Tool
145 Name="VCManagedResourceCompilerTool"
146 @@ -502,7 +502,7 @@
148 <Tool
149 Name="VCLinkerTool"
150 - AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
151 + AdditionalDependencies="ws2_32.lib $(SOLARVER)\$(INPATH)\lib\libeay32.lib $(SOLARVER)\$(INPATH)\lib\ssleay32.lib"
152 TargetMachine="17"
154 <Tool
155 --- misc/Python-2.6.1/setup.py 2009-11-02 10:12:43.000000000 +0000
156 +++ misc/build/Python-2.6.1/setup.py 2009-11-02 10:18:19.000000000 +0000
157 @@ -612,7 +612,12 @@
158 exts.append( Extension('_socket', ['socketmodule.c'],
159 depends = ['socketmodule.h']) )
160 # Detect SSL support for the socket module (via _ssl)
161 + ooosslinc = os.environ.get('SOLARVERSION') + '/' + \
162 + os.environ.get('INPATH') + '/' + \
163 + 'inc'
164 + ooosslinc = ooosslinc + '/external/'
165 search_for_ssl_incs_in = [
166 + ooosslinc,
167 '/usr/local/ssl/include',
168 '/usr/contrib/ssl/include/'
170 @@ -624,8 +632,13 @@
171 ['/usr/kerberos/include'])
172 if krb5_h:
173 ssl_incs += krb5_h
174 + ooossllib = os.environ.get('SOLARVER') + '/' + \
175 + os.environ.get('INPATH') + '/' + \
176 + 'lib'
177 + ooosslinc = ooosslinc + '/'
178 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
179 - ['/usr/local/ssl/lib',
180 + [ooossllib,
181 + '/usr/local/ssl/lib',
182 '/usr/contrib/ssl/lib/'
185 --- misc/Python-2.6.1/Modules/Setup.dist 2009-12-17 15:16:50.000000000 +0000
186 +++ misc/build/Python-2.6.1/Modules/Setup.dist 2009-12-17 15:17:49.000000000 +0000
187 @@ -248,14 +248,14 @@
188 # Message-Digest Algorithm, described in RFC 1321. The necessary files
189 # md5.c and md5.h are included here.
191 -#_md5 md5module.c md5.c
192 +_md5 md5module.c md5.c
195 # The _sha module implements the SHA checksum algorithms.
196 # (NIST's Secure Hash Algorithms.)
197 -#_sha shamodule.c
198 -#_sha256 sha256module.c
199 -#_sha512 sha512module.c
200 +_sha shamodule.c
201 +_sha256 sha256module.c
202 +_sha512 sha512module.c
205 # SGI IRIX specific modules -- off by default.