- Make it to be usable with openssl-1.0

This commit is contained in:
Tomáš Mráz 2009-08-26 09:30:23 +00:00
parent 99838fe19f
commit 8602a6ea49
2 changed files with 21 additions and 1 deletions

15
boost-openssl-1.0.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up boost_1_39_0/boost/asio/ssl/detail/openssl_context_service.hpp.ossl10 boost_1_39_0/boost/asio/ssl/detail/openssl_context_service.hpp
--- boost_1_39_0/boost/asio/ssl/detail/openssl_context_service.hpp.ossl10 2008-08-09 03:59:54.000000000 +0200
+++ boost_1_39_0/boost/asio/ssl/detail/openssl_context_service.hpp 2009-08-26 11:26:25.000000000 +0200
@@ -67,7 +67,11 @@ public:
// Create a new context implementation.
void create(impl_type& impl, context_base::method m)
{
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const ::SSL_METHOD* ssl_method = 0;
+#else
::SSL_METHOD* ssl_method = 0;
+#endif
switch (m)
{
case context_base::sslv2:

View File

@ -1,7 +1,7 @@
Name: boost
Summary: The Boost C++ Libraries
Version: 1.39.0
Release: 4%{?dist}
Release: 5%{?dist}
License: Boost
URL: http://www.boost.org/
Group: System Environment/Libraries
@ -42,6 +42,7 @@ Patch4: boost-unneccessary_iostreams.patch
Patch5: boost-bitset.patch
Patch6: boost-function_template.patch
Patch7: boost-fs_gcc44.patch
Patch8: boost-openssl-1.0.patch
%bcond_with tests
%bcond_with docs_generated
@ -225,6 +226,7 @@ sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH3} | %{__patch} -p0 --fuzz=0
%patch5 -p0
%patch6 -p0
%patch7 -p0
%patch8 -p1
%build
BOOST_ROOT=`pwd`
@ -436,6 +438,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%changelog
* Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 1.39.0-5
- Make it to be usable with openssl-1.0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.39.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild