diff options
author | Ben Bergen <bergen@lanl.gov> | 2020-12-22 10:39:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 10:39:56 -0700 |
commit | 97aa455f146c84a30551e6f7a36552caf3b66d07 (patch) | |
tree | 5328912f4b36352cd09ac074519b595d394e330f | |
parent | c1e4f3e1319f22604f755c46456c0ac910983cb7 (diff) | |
download | spack-97aa455f146c84a30551e6f7a36552caf3b66d07.tar.gz spack-97aa455f146c84a30551e6f7a36552caf3b66d07.tar.bz2 spack-97aa455f146c84a30551e6f7a36552caf3b66d07.tar.xz spack-97aa455f146c84a30551e6f7a36552caf3b66d07.zip |
Patch meson.build llvm config strategy (#20451)
This patch logic resovles a linking issue with ncurses in the mesa
package. This appears to be a recurring problem that was identified in
the mesa gitlab issues here:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/2843
Using `_llvm_method = 'auto'` is broken. This patch replaces that with
`_llvm_method = 'config-tool'`, which is a hack, but makes it possible
to build.
I have commented on the closed issue (2843), referencing the original
author of the bug, and one of the mesa developers, so perhaps they will
fix the problem.
-rw-r--r-- | var/spack/repos/builtin/packages/mesa/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index 00ce444b82..ca3ea2bb24 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -83,6 +83,12 @@ class Mesa(MesonPackage): # OpenGL ES requires OpenGL conflicts('~opengl +opengles') + def patch(self): + filter_file( + r"_llvm_method = 'auto'", + "_llvm_method = 'config-tool'", + "meson.build") + def meson_args(self): spec = self.spec args = [ |