]> https://gitweb.dealii.org/ - candi.git/commitdiff
move patch into file 312/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 26 Jan 2023 01:52:42 +0000 (20:52 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 26 Jan 2023 01:56:58 +0000 (20:56 -0500)
deal.II-toolchain/packages/parmetis.package
deal.II-toolchain/patches/parmetis-4.0.3-64bit.patch [new file with mode: 0644]

index 9d5d58055050225cf2184903f0faec05fa6ea139..03c1cc6a27d35435e2b465cc86bab516a5c19e2e 100644 (file)
@@ -7,19 +7,6 @@ BUILDCHAIN=custom
 
 INSTALL_PATH=${INSTALL_PATH}/${NAME}
 
-if [ ${USE_64_BIT_INDICES} = ON ]; then
-
-    echo "
---- metis/include/metis.h      2013-03-30 16:24:50.000000000 +0000
-+++ metis/include/metis.h      2022-11-27 16:14:07.863359070 +0000
-@@ -30,7 +30,7 @@
-  GCC does provides these definitions in stdint.h, but it may require some
-  modifications on other architectures.
- --------------------------------------------------------------------------*/
--#define IDXTYPEWIDTH 32
-+#define IDXTYPEWIDTH 64"  | tee -a ${ORIG_DIR}/${PROJECT}/patches/parmetis-4.0.3-build.patch
-fi
-
 package_specific_build() {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
     
@@ -54,6 +41,12 @@ package_specific_patch () {
             cd ${UNPACK_PATH}/${EXTRACTSTO}
             cecho ${WARN} "applying patch for building METIS shared libraries"
             patch -p0 --forward < ${ORIG_DIR}/${PROJECT}/patches/parmetis-4.0.3-build.patch || true
+
+            if [ ${USE_64_BIT_INDICES} = ON ]; then
+            cd ${UNPACK_PATH}/${EXTRACTSTO}
+            cecho ${WARN} "applying patch for 64bit ParMETIS"
+            patch -p0 --forward < ${ORIG_DIR}/${PROJECT}/patches/parmetis-4.0.3-64bit.patch || true
+            fi
         fi
     fi
 }
diff --git a/deal.II-toolchain/patches/parmetis-4.0.3-64bit.patch b/deal.II-toolchain/patches/parmetis-4.0.3-64bit.patch
new file mode 100644 (file)
index 0000000..305203a
--- /dev/null
@@ -0,0 +1,8 @@
+--- metis/include/metis.h      2013-03-30 16:24:50.000000000 +0000
++++ metis/include/metis.h      2022-11-27 16:14:07.863359070 +0000
+@@ -30,7 +30,7 @@
+  GCC does provides these definitions in stdint.h, but it may require some
+  modifications on other architectures.
+ --------------------------------------------------------------------------*/
+-#define IDXTYPEWIDTH 32
++#define IDXTYPEWIDTH 64

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.