forked from pool/boost
Accepting request 1230767 from home:aschnell:boost2
- update to 1.87.0 OBS-URL: https://build.opensuse.org/request/show/1230767 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=333
This commit is contained in:
27
python_mpi.patch
Normal file
27
python_mpi.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
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_64_0/libs/mpi/build/__init__.py
|
||||
===================================================================
|
||||
--- boost_1_64_0.orig/libs/mpi/build/__init__.py
|
||||
+++ boost_1_64_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)
|
||||
- from . import mpi
|
||||
- sys.setdlopenflags(flags)
|
||||
-else:
|
||||
- from . 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)
|
||||
|
||||
Reference in New Issue
Block a user