diff --git a/var/spack/repos/builtin/packages/sherpa/package.py b/var/spack/repos/builtin/packages/sherpa/package.py index 20133e54be6..e61e972b6f9 100644 --- a/var/spack/repos/builtin/packages/sherpa/package.py +++ b/var/spack/repos/builtin/packages/sherpa/package.py @@ -208,11 +208,11 @@ def configure_args(self): return args - def install(self, spec, prefix): + def install(self, pkg, spec, prefix): # Make sure the path to the provided libtool is used instead of the system one filter_file( r"autoreconf -fi", - f"autoreconf -fi -I {self.spec['libtool'].prefix.share.aclocal}", + f"autoreconf -fi -I {pkg.spec['libtool'].prefix.share.aclocal}", "AMEGIC++/Main/makelibs", ) make("install")