libhugetlbfs: Fix the build with an update to 2.24 (#44059)

Co-authored-by: Stephen Sachs <stesachs@amazon.com>
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
This commit is contained in:
Stephen Sachs 2024-05-10 10:50:36 +02:00 committed by GitHub
parent e7112fbc6a
commit 1d96c09094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,16 +6,26 @@
from spack.package import *
class Libhugetlbfs(MakefilePackage):
class Libhugetlbfs(AutotoolsPackage):
"""libhugetlbfs is a library which provides easy access
to huge pages of memory."""
homepage = "https://github.com/libhugetlbfs/libhugetlbfs"
url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/2.22/libhugetlbfs-2.22.tar.gz"
url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/2.24/libhugetlbfs-2.24.tar.gz"
license("LGPL-2.1-or-later")
version("2.22", sha256="94dca9ea2c527cd77bf28904094fe4708865a85122d416bfccc8f4b73b9a6785")
version("2.24", sha256="d501dfa91c8ead1106967a3d3829f2ba738c3fac0a65cb358ed2ab3870ddc5ef")
def install(self, spec, prefix):
make("install", "PREFIX=%s" % prefix)
depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
build_targets = ["-e", "libs", "tools"]
install_targets = ["-e", "install"]
parallel = False
def setup_build_environment(self, env):
env.set("BUILDTYPE", "NATIVEONLY")
env.set("PREFIX", self.prefix)
env.set("V", "1")