From 4f3cc19ec7dca204f3c3b75fb838142b567f27e0 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sun, 26 Apr 2020 17:07:13 -0700 Subject: qt: fix macOS w/ AppleClang (mesa libs) (#16302) Building the `py-jupyter` stack on macOS with AppleClang breaks on the `py-qtconsole` -> `py-qtconsole` -> `qt +opengl` package build environment setup with: ``` ==> Error: AttributeError: Query of package 'mesa' for 'libs' failed ... ==> Error: Failed to install qt due to ChildError: AttributeError: Query of package 'mesa' for 'libs' failed ``` This tries to add more library targets build by `mesa` to avoid this. --- var/spack/repos/builtin/packages/mesa/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index 5a2893a645..b277a03d19 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -13,6 +13,7 @@ class Mesa(AutotoolsPackage): - a system for rendering interactive 3D graphics.""" homepage = "http://www.mesa3d.org" + maintainers = ['v-dobrev'] # Note that we always want to build from the git repo instead of a # tarball since the tarball has pre-generated files for certain versions @@ -180,7 +181,8 @@ class Mesa(AutotoolsPackage): @property def libs(self): for dir in ['lib64', 'lib']: - libs = find_libraries('libGL', join_path(self.prefix, dir), + libs = find_libraries(['libGL', 'libOSMesa'], + join_path(self.prefix, dir), shared=True, recursive=False) if libs: return libs -- cgit v1.2.3-60-g2f50