[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/17: gnu: petsc-openmpi: Fix compilation with Scotch 7.0.
From: |
guix-commits |
Subject: |
01/17: gnu: petsc-openmpi: Fix compilation with Scotch 7.0. |
Date: |
Fri, 18 Mar 2022 11:05:28 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5f83f9521048394fb2d07229754a39b951177c0f
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Fri Mar 18 11:58:28 2022 +0100
gnu: petsc-openmpi: Fix compilation with Scotch 7.0.
* gnu/packages/maths.scm (petsc-openmpi)[inputs]: Add SCOTCH:METIS.
[arguments]: Add 'adjust-pt-scotch-library-names' phase.
---
gnu/packages/maths.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 7b43a8cbe8..8e287a8055 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3092,6 +3092,7 @@ scientific applications modeled by partial differential
equations.")
("openmpi" ,openmpi)
("scalapack" ,scalapack)
("scotch" ,pt-scotch32)
+ ("scotch" ,pt-scotch32 "metis")
,@(package-inputs petsc)))
(arguments
(substitute-keyword-arguments (package-arguments petsc)
@@ -3111,6 +3112,12 @@ scientific applications modeled by partial differential
equations.")
,@(delete "--with-mpi=0" #$cf)))
((#:phases phases)
#~(modify-phases #$phases
+ (add-before 'configure 'adjust-pt-scotch-library-names
+ (lambda _
+ ;; Adjust to the library name changes in Scotch 7.0.
+ (substitute* "config/BuildSystem/config/packages/PTScotch.py"
+ (("libptesmumps") "libesmumps")
+ (("libptscotchparmetis") "libptscotchparmetisv3"))))
(add-before 'configure 'mpi-setup
#$%openmpi-setup)))))
(synopsis "Library to solve PDEs (with MUMPS and MPI support)")))
- branch master updated (3e34b01b70 -> 2fb4304ee7), guix-commits, 2022/03/18
- 01/17: gnu: petsc-openmpi: Fix compilation with Scotch 7.0.,
guix-commits <=
- 11/17: gnu: emacs-osm: Record the absolute file name of 'curl'., guix-commits, 2022/03/18
- 09/17: gnu: Add emacs-osm., guix-commits, 2022/03/18
- 04/17: ui: 'show-what-to-build' highlights "would be downloaded" headings., guix-commits, 2022/03/18
- 06/17: home: services: Export record type accessors., guix-commits, 2022/03/18
- 05/17: graph: Factorize 'lookup-backend'., guix-commits, 2022/03/18
- 10/17: gnu: emacs-osm: Fetch source over Git., guix-commits, 2022/03/18
- 08/17: guix system: Call 'export-graph' with the right port argument., guix-commits, 2022/03/18
- 07/17: guix home: Implement the 'extension-graph' and 'shepherd-graph' actions., guix-commits, 2022/03/18
- 12/17: home: services: Fix bash aliases without guix-defaults., guix-commits, 2022/03/18
- 14/17: gnu: feh, newsboat: Inline top-level reference to 'curl'., guix-commits, 2022/03/18