Marcus Rueckert
9d48e24b64
- update to version 1.63.0 * updated libraries: atomic, container, context, fiber, fusion, geometry, hash, interprocess, intrusive, lexical cast, log, metaparse, move, optional, phoenix, python, test, typeindex, units, unordered * see http://www.boost.org/users/history/version_1_63_0.html for complete list of changes - refresh patches * boost-1.55.0-python-test-PyImport_AppendInittab.patch * boost-strict_aliasing.patch, and enable -fno-strict-aliasing for python module - baselibs.conf: * add libboost_locale * rename python to include new soname - remove python-2059618.patch, not needed - make build condition --without buil_mpi work - allow building without python3 bindings, for SLE11SP4 - remove versioned build dependency on libicu-devel, apparently not needed. - split out the boost-devel package into individudal compiled libraries and their -devel subpackages and libboost_headers-devel package for header-only libraries. - remove all the -mt.so symlinks, probably not needed anymore. - ship MPI python bindings for both Python 2.7 and 3.x OBS-URL: https://build.opensuse.org/request/show/449886 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=182
28 lines
744 B
Diff
28 lines
744 B
Diff
Author: Adam Majer <adam.majer@suse.de>
|
|
Summary: Fix MPI module loading
|
|
|
|
MPI requires dl.RTLD_NOW|dl.RTLD_GLOBAL flags to load
|
|
properly.
|
|
|
|
|
|
Index: boost_1_63_0/libs/mpi/build/__init__.py
|
|
===================================================================
|
|
--- boost_1_63_0.orig/libs/mpi/build/__init__.py
|
|
+++ boost_1_63_0/libs/mpi/build/__init__.py
|
|
@@ -1,10 +1,7 @@
|
|
import sys
|
|
-if sys.platform == 'linux2':
|
|
- import DLFCN as dl
|
|
- flags = sys.getdlopenflags()
|
|
- sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
|
|
- import mpi
|
|
- sys.setdlopenflags(flags)
|
|
-else:
|
|
- import mpi
|
|
+import DLFCN as dl
|
|
+flags = sys.getdlopenflags()
|
|
+sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
|
|
+import boost.parallel.mpi.mpi
|
|
+sys.setdlopenflags(flags)
|
|
|