[bug#34668] gnu: fenics-dolfin: Fix build.

Message ID 1551192400-16856-1-git-send-email-pgarlick@tourbillion-technology.com
State Accepted
Commit 3a261950acd3f6d156eb34b833e5b63116917990
Headers show
Series [bug#34668] gnu: fenics-dolfin: Fix build. | expand

Checks

Context Check Description
cbaines/applying patch success Successfully applied

Commit Message

Paul Garlick Feb. 26, 2019, 2:46 p.m. UTC
* gnu/packages/simulation.scm (fenics-dolfin)[arguments]: Remove SNESTEST
mapping, no longer valid after update of PETSc to version 3.10.3.
---
 gnu/packages/simulation.scm | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Leo Famulari Feb. 26, 2019, 10:25 p.m. UTC | #1
On Tue, Feb 26, 2019 at 02:46:40PM +0000, Paul Garlick wrote:
> * gnu/packages/simulation.scm (fenics-dolfin)[arguments]: Remove SNESTEST
> mapping, no longer valid after update of PETSc to version 3.10.3.

Thanks! Pushed as 3a261950acd3f6d156eb34b833e5b63116917990

Patch

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 3637cc3..a8d2147 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -464,6 +464,10 @@  FFC is part of the FEniCS Project.")
                               "${DOLFIN_SOURCE_DIR} "
                               "${DOLFIN_SOURCE_DIR}/dolfin "
                               "${DOLFIN_BINARY_DIR})\n")))
+            (substitute* "dolfin/nls/PETScSNESSolver.cpp"
+              ;; Remove SNESTEST mapping.  The SNESTEST symbol was removed
+              ;; from PETSc at version 3.10.3.
+              ((".*SNESTEST.*") "" ))
             #t))))
     (build-system cmake-build-system)
     (inputs