summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2022-02-13 19:33:07 -0600
committerMatthias Maier <tamiko@gentoo.org>2022-02-13 19:33:07 -0600
commit743c1d19634073c90fb9d0926fbba2c89431376b (patch)
tree25a0bc0f764359525b6e7b5d9ada7f719a20e688 /sci-libs/dealii/files
parentsci-libs/p4est: fix refactoring SNAFU (diff)
downloadgentoo-743c1d19634073c90fb9d0926fbba2c89431376b.tar.gz
gentoo-743c1d19634073c90fb9d0926fbba2c89431376b.tar.bz2
gentoo-743c1d19634073c90fb9d0926fbba2c89431376b.zip
sci-libs/dealii: version bump to 9.3.3
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/dealii/files')
-rw-r--r--sci-libs/dealii/files/dealii-9.3.3-fix_p4est_detection.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/sci-libs/dealii/files/dealii-9.3.3-fix_p4est_detection.patch b/sci-libs/dealii/files/dealii-9.3.3-fix_p4est_detection.patch
new file mode 100644
index 000000000000..72d66d7ecb4d
--- /dev/null
+++ b/sci-libs/dealii/files/dealii-9.3.3-fix_p4est_detection.patch
@@ -0,0 +1,41 @@
+From 354cdd6730ac1cc19cbf99e663e7ca280a9b62dc Mon Sep 17 00:00:00 2001
+From: Matthias Maier <tamiko@43-1.org>
+Date: Sun, 13 Feb 2022 19:03:49 -0600
+Subject: [PATCH] CMake: Adjust MPI and ZLIB support query for p4est version
+ 2.8
+
+---
+ cmake/modules/FindP4EST.cmake | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/modules/FindP4EST.cmake b/cmake/modules/FindP4EST.cmake
+index a91ef26876..d32cadf281 100644
+--- a/cmake/modules/FindP4EST.cmake
++++ b/cmake/modules/FindP4EST.cmake
+@@ -114,7 +114,13 @@ IF(EXISTS ${P4EST_INCLUDE_DIR}/p4est_config.h)
+ FILE(STRINGS "${P4EST_INCLUDE_DIR}/p4est_config.h" P4EST_MPI_STRING
+ REGEX "#define.*P4EST_MPI 1")
+ IF("${P4EST_MPI_STRING}" STREQUAL "")
+- SET(P4EST_WITH_MPI FALSE)
++ FILE(STRINGS "${P4EST_INCLUDE_DIR}/p4est_config.h" P4EST_MPI_STRING
++ REGEX "#define.*P4EST_ENABLE_MPI")
++ IF("${P4EST_MPI_STRING}" STREQUAL "")
++ SET(P4EST_WITH_MPI FALSE)
++ ELSE()
++ SET(P4EST_WITH_MPI TRUE)
++ ENDIF()
+ ELSE()
+ SET(P4EST_WITH_MPI TRUE)
+ ENDIF()
+@@ -123,7 +129,7 @@ IF(EXISTS ${P4EST_INCLUDE_DIR}/p4est_config.h)
+ # Is p4est built against zlib?
+ #
+ FILE(STRINGS "${P4EST_INCLUDE_DIR}/p4est_config.h" P4EST_ZLIB_STRING
+- REGEX "#define.*P4EST_HAVE_ZLIB 1")
++ REGEX "^#define.*P4EST_HAVE_ZLIB")
+ IF("${P4EST_ZLIB_STRING}" STREQUAL "")
+ SET(P4EST_WITH_ZLIB FALSE)
+ ELSE()
+--
+2.34.1
+