boost/python_mpi.patch
Dirk Mueller 6d3dae4db5 Accepting request 1197908 from home:aschnell:boost
- update to 1.86.0
  * process turned into compile library
  * for details on all changes see,
    https://www.boost.org/users/history/version_1_86_0.html
- boost-aarch64-flags.patch: updated
- boost-1.57.0-python-abi_letters.patch: updated
- boost-process.patch: removed (included upstream)
- boost-charconv-quadmath.patch: removed (improved upstream)

OBS-URL: https://build.opensuse.org/request/show/1197908
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=330
2024-08-31 09:15:04 +00:00

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_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)
- 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)