diff --git a/boost-asio-export-symbols.patch b/boost-asio-export-symbols.patch new file mode 100644 index 0000000..4b4518e --- /dev/null +++ b/boost-asio-export-symbols.patch @@ -0,0 +1,43 @@ +Index: boost/asio/detail/config.hpp +=================================================================== +--- boost/asio/detail/config.hpp.orig ++++ boost/asio/detail/config.hpp +@@ -28,18 +28,16 @@ + #if defined(BOOST_ASIO_HEADER_ONLY) + # define BOOST_ASIO_DECL inline + #else // defined(BOOST_ASIO_HEADER_ONLY) +-# if defined(BOOST_HAS_DECLSPEC) + // We need to import/export our code only if the user has specifically asked + // for it by defining BOOST_ASIO_DYN_LINK. +-# if defined(BOOST_ASIO_DYN_LINK) ++# if defined(BOOST_ASIO_DYN_LINK) + // Export if this is our own source, otherwise import. +-# if defined(BOOST_ASIO_SOURCE) +-# define BOOST_ASIO_DECL __declspec(dllexport) +-# else // defined(BOOST_ASIO_SOURCE) +-# define BOOST_ASIO_DECL __declspec(dllimport) +-# endif // defined(BOOST_ASIO_SOURCE) +-# endif // defined(BOOST_ASIO_DYN_LINK) +-# endif // defined(BOOST_HAS_DECLSPEC) ++# if defined(BOOST_ASIO_SOURCE) ++# define BOOST_ASIO_DECL BOOST_SYMBOL_EXPORT ++# else // defined(BOOST_ASIO_SOURCE) ++# define BOOST_ASIO_DECL BOOST_SYMBOL_IMPORT ++# endif // defined(BOOST_ASIO_SOURCE) ++# endif // defined(BOOST_ASIO_DYN_LINK) + #endif // defined(BOOST_ASIO_HEADER_ONLY) + + // If BOOST_ASIO_DECL isn't defined yet define it now. +Index: boost/asio/io_service.hpp +=================================================================== +--- boost/asio/io_service.hpp.orig ++++ boost/asio/io_service.hpp +@@ -672,7 +672,7 @@ public: + }; + + /// Base class for all io_service services. +-class io_service::service ++class BOOST_ASIO_DECL io_service::service + : private noncopyable + { + public: diff --git a/boost.changes b/boost.changes index 788fad1..d6585fb 100644 --- a/boost.changes +++ b/boost.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 19:00:38 UTC 2013 - fisiu@opensuse.org + +- Add boost-asio-export-symbols.patch: boost#6688 + ------------------------------------------------------------------- Thu Sep 6 13:12:38 UTC 2012 - cfarrell@suse.com diff --git a/boost.spec b/boost.spec index 35e0fe1..fd3e9e7 100644 --- a/boost.spec +++ b/boost.spec @@ -1,7 +1,7 @@ # # spec file for package boost # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -103,6 +103,7 @@ Patch1: boost-thread.patch Patch2: boost-no_type_punning.patch Patch8: boost-no_segfault_in_Regex_filter.patch Patch20: boost-strict_aliasing.patch +Patch30: boost-asio-export-symbols.patch Patch50: boost-use_std_xml_catalog.patch Patch51: boost-fix_documentation.patch Patch52: boost-chrono_add_function_return.patch @@ -381,6 +382,7 @@ find -type f ! \( -name \*.sh -o -name \*.py -o -name \*.pl \) -exec chmod -x {} #%%patch9 #%%patch19 %patch20 +%patch30 %patch50 %patch51 %patch52