From 68636e7c19535914672629d1aa63197fe2f7bb56 Mon Sep 17 00:00:00 2001 From: psakievich Date: Tue, 25 Feb 2025 15:14:54 -0700 Subject: [PATCH] lua-lpeg inheritance fix (#49065) The parent class function doesn't return the path to the config file. This is one potential fix, or we can add the return back to base builder. --- var/spack/repos/builtin/packages/lua-lpeg/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/lua-lpeg/package.py b/var/spack/repos/builtin/packages/lua-lpeg/package.py index 7cbbc97af24..966a612a892 100644 --- a/var/spack/repos/builtin/packages/lua-lpeg/package.py +++ b/var/spack/repos/builtin/packages/lua-lpeg/package.py @@ -47,7 +47,8 @@ class LuaBuilder(spack.build_systems.lua.LuaBuilder): # * replaces `-bundle` from the default flags with `-shared` @when("platform=darwin") def generate_luarocks_config(self, pkg, spec, prefix): - path = super().generate_luarocks_config(pkg, spec, prefix) + super().generate_luarocks_config(pkg, spec, prefix) + path = self._luarocks_config_path() with open(path, "a") as cfg: cfg.write(