SHA256
8
0
forked from pool/boost
Files
boost/python_mpi.patch
Arvin Schnell 2f51f4d7c9 Accepting request 1272235 from home:aschnell:boost2
- update to 1.88.0
  * new libraries:
    + Hash2 (extensible hashing framework)
    + MQTT5 (MQTT5 client library)
  * for details on all changes see,
    https://www.boost.org/users/history/version_1_88_0.html
- boost-smart-ptr.patch: included upstream
- boost-missing-BOOST_MOVE_STD_NS_BEG.patch: included upstream
- boost-missing-BOOST_MOVE_STD_NS_BEG-again.patch: included upstream

OBS-URL: https://build.opensuse.org/request/show/1272235
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=349
2025-04-24 11:55:44 +00:00

28 lines
758 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)
- 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)