3 Tweak SSL build to find OpenSSL in solver & not build it itself in "ssl.vcproj" etc.
5 diff -ru python3.old_/Modules/Setup.dist python3/Modules/Setup.dist
6 --- python3.old_/Modules/Setup.dist 2012-09-29 10:00:42.000000000 +0200
7 +++ python3/Modules/Setup.dist 2012-11-13 14:19:01.994158111 +0100
9 # The _md5 module implements the RSA Data Security, Inc. MD5
10 # Message-Digest Algorithm, described in RFC 1321.
16 # The _sha module implements the SHA checksum algorithms.
17 # (NIST's Secure Hash Algorithms.)
19 -#_sha256 sha256module.c
20 -#_sha512 sha512module.c
22 +_sha256 sha256module.c
23 +_sha512 sha512module.c
26 # The _tkinter module.
27 diff -ru python3.old_/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
28 --- python3.old_/PCbuild/pcbuild.sln 2012-09-29 10:00:48.000000000 +0200
29 +++ python3/PCbuild/pcbuild.sln 2012-11-13 14:50:39.220142472 +0100
32 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_multiprocessing", "_multiprocessing.vcxproj", "{9E48B300-37D1-11DD-8C41-005056C00008}"
34 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ssl", "ssl.vcxproj", "{E5B04CC0-EB4C-42AB-B4DC-18EF95F864B0}"
36 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "kill_python", "kill_python.vcxproj", "{6DE10744-E396-40A5-B4E2-1B69AA7C8D31}"
38 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "python3dll", "python3dll.vcxproj", "{885D4898-D08D-4091-9C40-C700CFE3FC5A}"
39 diff -ru python3.old_/PCbuild/_ssl.vcxproj python3/PCbuild/_ssl.vcxproj
40 --- python3.old_/PCbuild/_ssl.vcxproj 2012-09-29 10:00:48.000000000 +0200
41 +++ python3/PCbuild/_ssl.vcxproj 2012-11-13 14:55:50.298137715 +0100
44 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
46 - <AdditionalIncludeDirectories>$(opensslDir)\inc32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
47 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
54 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out32\libeay32.lib;$(opensslDir)\out32\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
55 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
57 </ItemDefinitionGroup>
58 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
60 <TargetEnvironment>X64</TargetEnvironment>
63 - <AdditionalIncludeDirectories>$(opensslDir)\inc64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
64 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
71 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out64\libeay32.lib;$(opensslDir)\out64\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
72 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
74 </ItemDefinitionGroup>
75 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
77 - <AdditionalIncludeDirectories>$(opensslDir)\inc32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
78 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
85 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out32\libeay32.lib;$(opensslDir)\out32\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
86 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
88 </ItemDefinitionGroup>
89 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
91 <TargetEnvironment>X64</TargetEnvironment>
94 - <AdditionalIncludeDirectories>$(opensslDir)\inc64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
95 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
102 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out64\libeay32.lib;$(opensslDir)\out64\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
103 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
105 </ItemDefinitionGroup>
106 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'">
108 - <AdditionalIncludeDirectories>$(opensslDir)\inc32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
109 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
116 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out32\libeay32.lib;$(opensslDir)\out32\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
117 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
119 </ItemDefinitionGroup>
120 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGInstrument|x64'">
121 @@ -220,27 +220,27 @@
122 <TargetEnvironment>X64</TargetEnvironment>
125 - <AdditionalIncludeDirectories>$(opensslDir)\inc64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
126 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
133 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out64\libeay32.lib;$(opensslDir)\out64\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
134 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
135 <TargetMachine>MachineX64</TargetMachine>
137 </ItemDefinitionGroup>
138 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'">
140 - <AdditionalIncludeDirectories>$(opensslDir)\inc32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
141 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
148 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out32\libeay32.lib;$(opensslDir)\out32\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
149 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
151 </ItemDefinitionGroup>
152 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PGUpdate|x64'">
153 @@ -248,14 +248,14 @@
154 <TargetEnvironment>X64</TargetEnvironment>
157 - <AdditionalIncludeDirectories>$(opensslDir)\inc64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
158 + <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
165 - <AdditionalDependencies>ws2_32.lib;$(opensslDir)\out64\libeay32.lib;$(opensslDir)\out64\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
166 + <AdditionalDependencies>ws2_32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
167 <TargetMachine>MachineX64</TargetMachine>
169 </ItemDefinitionGroup>
171 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
172 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
174 - <ProjectReference Include="ssl.vcxproj">
175 - <Project>{e5b04cc0-eb4c-42ab-b4dc-18ef95f864b0}</Project>
176 - <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
177 - </ProjectReference>
178 <ProjectReference Include="_socket.vcxproj">
179 <Project>{86937f53-c189-40ef-8ce8-8759d8e7d480}</Project>
180 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
181 diff -ru python3.old_/setup.py python3/setup.py
182 --- python3.old_/setup.py 2012-09-29 10:00:50.000000000 +0200
183 +++ python3/setup.py 2012-11-13 14:18:23.484158149 +0100
185 exts.append( Extension('_socket', ['socketmodule.c'],
186 depends = ['socketmodule.h']) )
187 # Detect SSL support for the socket module (via _ssl)
188 + ooosslinc = os.environ.get('WORKDIR') + \
189 + '/UnpackedTarball/openssl/include/'
190 search_for_ssl_incs_in = [
192 '/usr/local/ssl/include',
193 '/usr/contrib/ssl/include/'
196 ['/usr/kerberos/include'])
199 + ooossllib = os.environ.get('WORKDIR') + \
200 + '/UnpackedTarball/openssl'
201 + ooosslinc = ooosslinc + '/'
202 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
203 - ['/usr/local/ssl/lib',
205 + '/usr/local/ssl/lib',
206 '/usr/contrib/ssl/lib/'