From 153c888432a7920bf8a416d3309a29c8aaa3d38b Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Tue, 7 Apr 2020 15:00:53 -0700 Subject: Fix lua build, missing deref of self for spec (#15927) Looks like something changed and a case was missed. Function doesn't have a spec arg, need to dereference it off of self. Builds on OS X. --- var/spack/repos/builtin/packages/lua/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index 420e3b041a..910d8b252f 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -139,7 +139,7 @@ class Lua(Package): if dependent_spec.package.extends(self.spec): env.prepend_path('LUA_PATH', ';'.join(lua_patterns), separator=';') - if '+shared' in spec: + if '+shared' in self.spec: env.prepend_path('LUA_CPATH', ';'.join(lua_cpatterns), separator=';') -- cgit v1.2.3-70-g09d2