summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index d302431d2d..f9365b4e0f 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -731,13 +731,18 @@ class Trilinos(CMakePackage, CudaPackage):
# run-time error: Symbol not found: _PyBool_Type and prevents
# Trilinos to be used in any C++ code, which links executable
# against the libraries listed in Trilinos_LIBRARIES. See
- # https://github.com/Homebrew/homebrew-science/issues/2148#issuecomment-103614509
- # A workaround is to remove PyTrilinos from the COMPONENTS_LIST :
+ # https://github.com/trilinos/Trilinos/issues/569 and
+ # https://github.com/trilinos/Trilinos/issues/866
+ # A workaround is to remove PyTrilinos from the COMPONENTS_LIST
+ # and to remove -lpytrilonos from Makefile.export.Trilinos
if '+python' in self.spec:
filter_file(r'(SET\(COMPONENTS_LIST.*)(PyTrilinos;)(.*)',
(r'\1\3'),
'%s/cmake/Trilinos/TrilinosConfig.cmake' %
self.prefix.lib)
+ filter_file(r'-lpytrilinos', '',
+ '%s/Makefile.export.Trilinos' %
+ self.prefix.include)
def setup_run_environment(self, env):
if '+exodus' in self.spec: