SHA256
8
0
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:
2024-12-17 09:18:44 +00:00
committed by Git OBS Bridge
commit a51e1809d5
34 changed files with 6157 additions and 0 deletions

27
python_mpi.patch Normal file
View 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)