Skip to content

Commit c09b334

Browse files
matplotlib: add dep on gmake when %gcc (spack#2526)
This is not meant to be a long term solution, but when there is no system installed make these packages fail to build. The issue is that gmake is a runtime dependency of GCC, but not modeled as such by Spack. Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
1 parent 75ffce4 commit c09b334

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • repos/spack_repo/builtin/packages/py_matplotlib

repos/spack_repo/builtin/packages/py_matplotlib/package.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ class PyMatplotlib(PythonPackage):
144144
depends_on("c", type="build")
145145
depends_on("cxx", type="build")
146146

147+
# This is required for the gcc lto wrapper which calls gmake
148+
# Without this the spack installer doesn't know what to pass
149+
# when building with the gnu jobserver
150+
depends_on("gmake", type="build", when="%gcc")
151+
147152
# https://matplotlib.org/stable/install/dependencies.html
148153
# Runtime dependencies
149154
# Mandatory dependencies

0 commit comments

Comments
 (0)