2012-11-30 01:12:12 +02:00
|
|
|
-*- Mode: diff -*-
|
|
|
|
|
2012-11-17 00:39:31 +01:00
|
|
|
Tweak SSL build to find OpenSSL in solver & not build it itself in "ssl.vcproj" etc.
|
|
|
|
|
2015-07-26 21:38:38 +02:00
|
|
|
diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
|
|
|
|
--- python3.orig/PCbuild/pcbuild.sln 2015-08-22 18:57:16.653719900 +0200
|
|
|
|
+++ python3/PCbuild/pcbuild.sln 2015-08-22 19:03:06.062853000 +0200
|
|
|
|
@@ -64,10 +64,6 @@
|
2012-11-17 00:39:31 +01:00
|
|
|
EndProject
|
2015-07-26 21:38:38 +02:00
|
|
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tk", "tk.vcxproj", "{7E85ECCF-A72C-4DA4-9E52-884508E80BA1}"
|
2012-11-17 00:39:31 +01:00
|
|
|
EndProject
|
2015-07-26 21:38:38 +02:00
|
|
|
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libeay", "libeay.vcxproj", "{E5B04CC0-EB4C-42AB-B4DC-18EF95F864B0}"
|
2012-11-17 00:39:31 +01:00
|
|
|
-EndProject
|
2015-07-26 21:38:38 +02:00
|
|
|
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ssleay", "ssleay.vcxproj", "{10615B24-73BF-4EFA-93AA-236916321317}"
|
|
|
|
-EndProject
|
|
|
|
Global
|
|
|
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
|
|
Debug|Win32 = Debug|Win32
|
|
|
|
diff -ru python3.orig/PCbuild/_ssl.vcxproj python3/PCbuild/_ssl.vcxproj
|
|
|
|
--- python3.orig/PCbuild/_ssl.vcxproj 2015-08-11 02:52:36.000000000 +0200
|
|
|
|
+++ python3/PCbuild/_ssl.vcxproj 2015-08-22 18:19:20.744299000 +0200
|
|
|
|
@@ -61,10 +61,10 @@
|
2012-11-17 00:39:31 +01:00
|
|
|
</PropertyGroup>
|
2015-07-26 21:38:38 +02:00
|
|
|
<ItemDefinitionGroup>
|
2012-11-17 00:39:31 +01:00
|
|
|
<ClCompile>
|
2015-07-26 21:38:38 +02:00
|
|
|
- <AdditionalIncludeDirectories>$(opensslDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2012-12-28 11:19:06 -05:00
|
|
|
+ <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2012-11-17 00:39:31 +01:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2015-07-26 21:38:38 +02:00
|
|
|
- <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(OutDir)libeay$(PyDebugExt).lib;$(OutDir)ssleay$(PyDebugExt).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
+ <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2012-11-17 00:39:31 +01:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
2015-07-26 21:38:38 +02:00
|
|
|
<ItemGroup>
|
|
|
|
@@ -75,14 +75,6 @@
|
2012-11-30 01:12:12 +02:00
|
|
|
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
|
|
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
|
|
</ProjectReference>
|
2015-07-26 21:38:38 +02:00
|
|
|
- <ProjectReference Include="libeay.vcxproj">
|
2012-11-30 01:12:12 +02:00
|
|
|
- <Project>{e5b04cc0-eb4c-42ab-b4dc-18ef95f864b0}</Project>
|
|
|
|
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
2015-07-26 21:38:38 +02:00
|
|
|
- </ProjectReference>
|
|
|
|
- <ProjectReference Include="ssleay.vcxproj">
|
|
|
|
- <Project>{10615b24-73bf-4efa-93aa-236916321317}</Project>
|
|
|
|
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
2012-11-30 01:12:12 +02:00
|
|
|
- </ProjectReference>
|
|
|
|
<ProjectReference Include="_socket.vcxproj">
|
|
|
|
<Project>{86937f53-c189-40ef-8ce8-8759d8e7d480}</Project>
|
|
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
2015-07-26 21:38:38 +02:00
|
|
|
diff -ru python3.orig/setup.py python3/setup.py
|
|
|
|
--- python3.orig/setup.py 2015-08-22 18:16:15.825267200 +0200
|
|
|
|
+++ python3/setup.py 2015-08-22 18:22:44.162757900 +0200
|
|
|
|
@@ -778,7 +778,10 @@
|
2012-11-17 00:39:31 +01:00
|
|
|
exts.append( Extension('_socket', ['socketmodule.c'],
|
|
|
|
depends = ['socketmodule.h']) )
|
|
|
|
# Detect SSL support for the socket module (via _ssl)
|
2013-10-24 00:22:20 +02:00
|
|
|
+ ooosslinc = os.environ.get('WORKDIR') + \
|
2012-12-28 11:19:06 -05:00
|
|
|
+ '/UnpackedTarball/openssl/include/'
|
2012-11-17 00:39:31 +01:00
|
|
|
search_for_ssl_incs_in = [
|
|
|
|
+ ooosslinc,
|
|
|
|
'/usr/local/ssl/include',
|
|
|
|
'/usr/contrib/ssl/include/'
|
|
|
|
]
|
2015-07-26 21:38:38 +02:00
|
|
|
@@ -790,8 +793,12 @@
|
2012-11-17 00:39:31 +01:00
|
|
|
['/usr/kerberos/include'])
|
|
|
|
if krb5_h:
|
|
|
|
ssl_incs += krb5_h
|
2013-10-24 00:22:20 +02:00
|
|
|
+ ooossllib = os.environ.get('WORKDIR') + \
|
|
|
|
+ '/UnpackedTarball/openssl'
|
2012-11-17 00:39:31 +01:00
|
|
|
+ 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/'
|
|
|
|
] )
|
2015-07-26 21:38:38 +02:00
|
|
|
|
|
|
|
|