[pkg-boost-commits] r15055 - in /boost/trunk/debian: changelog patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch patches/series

xnox at users.alioth.debian.org xnox at users.alioth.debian.org
Fri Nov 3 12:20:58 UTC 2017


Author: xnox
Date: Fri Nov  3 12:20:58 2017
New Revision: 15055

URL: http://svn.debian.org/wsvn/pkg-boost/?sc=1&rev=15055
Log:
Cherrypick upstream patch to fix python module_init symbol visibility.

Added:
    boost/trunk/debian/patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch
Modified:
    boost/trunk/debian/changelog
    boost/trunk/debian/patches/series

Modified: boost/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boost/boost/trunk/debian/changelog?rev=15055&op=diff
==============================================================================
--- boost/trunk/debian/changelog	(original)
+++ boost/trunk/debian/changelog	Fri Nov  3 12:20:58 2017
@@ -1,6 +1,7 @@
 boost1.65.1 (1.65.1+dfsg-2) UNRELEASED; urgency=medium
 
   * coroutine2 is no longer excludable library, adjust debian/rules.
+  * Cherrypick upstream patch to fix python module_init symbol visibility.
 
  -- Dimitri John Ledkov <xnox at ubuntu.com>  Thu, 26 Oct 2017 10:14:47 +0100
 

Added: boost/trunk/debian/patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch
URL: http://svn.debian.org/wsvn/pkg-boost/boost/trunk/debian/patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch?rev=15055&op=file
==============================================================================
--- boost/trunk/debian/patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch	(added)
+++ boost/trunk/debian/patches/83ab00c067d4111496f760c144d323ac311b7f2c.patch	Fri Nov  3 12:20:58 2017
@@ -0,0 +1,48 @@
+From 83ab00c067d4111496f760c144d323ac311b7f2c Mon Sep 17 00:00:00 2001
+From: Marvin Schmidt <marv at exherbo.org>
+Date: Mon, 4 Sep 2017 07:43:43 +0200
+Subject: [PATCH] Fix symbol visibility of init method
+
+This was properly an oversight when switching to the BOOST_SYMBOL_*
+symbols from Boost.Config in commit 0224f54a (see #1)
+
+Since Boost.Config is already doing the differentiation between
+different platforms and compilers we can simplify this bit and just
+use BOOST_SYMBOL_EXPORT
+---
+ include/boost/python/module_init.hpp | 22 +++-------------------
+ 1 file changed, 3 insertions(+), 19 deletions(-)
+
+diff --git a/boost/include/boost/python/module_init.hpp b/boost/include/boost/python/module_init.hpp
+index a9536c88e..7fe5a1c8a 100644
+--- a/boost/include/boost/python/module_init.hpp
++++ b/boost/include/boost/python/module_init.hpp
+@@ -66,25 +66,9 @@ BOOST_PYTHON_DECL PyObject* init_module(char const* name, void(*)());
+ 
+ #  endif
+ 
+-#  if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(BOOST_PYTHON_STATIC_MODULE)
+-
+-#   define BOOST_PYTHON_MODULE_INIT(name)                           \
+-  void BOOST_PP_CAT(init_module_,name)();                           \
+-extern "C" __declspec(dllexport) _BOOST_PYTHON_MODULE_INIT(name)
+-
+-#  elif BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
+-
+-#   define BOOST_PYTHON_MODULE_INIT(name)                               \
+-  void BOOST_PP_CAT(init_module_,name)();                               \
+-extern "C" __attribute__ ((__visibility__("default"))) _BOOST_PYTHON_MODULE_INIT(name)
+-
+-#  else
+-
+-#   define BOOST_PYTHON_MODULE_INIT(name)                               \
+-  void BOOST_PP_CAT(init_module_,name)();                               \
+-extern "C" _BOOST_PYTHON_MODULE_INIT(name)
+-
+-#  endif
++#  define BOOST_PYTHON_MODULE_INIT(name)                       \
++  void BOOST_PP_CAT(init_module_,name)();                      \
++extern "C" BOOST_SYMBOL_EXPORT _BOOST_PYTHON_MODULE_INIT(name)
+ 
+ # endif
+ 

Modified: boost/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-boost/boost/trunk/debian/patches/series?rev=15055&op=diff
==============================================================================
--- boost/trunk/debian/patches/series	(original)
+++ boost/trunk/debian/patches/series	Fri Nov  3 12:20:58 2017
@@ -5,3 +5,4 @@
 no-gcc-m-options.diff
 no-gcc-march-options.patch
 make-docs-use-offline-resources-only.patch
+83ab00c067d4111496f760c144d323ac311b7f2c.patch




More information about the pkg-boost-commits mailing list