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:
parent
e7112fbc6a
commit
1d96c09094
@ -6,16 +6,26 @@
|
|||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
class Libhugetlbfs(MakefilePackage):
|
class Libhugetlbfs(AutotoolsPackage):
|
||||||
"""libhugetlbfs is a library which provides easy access
|
"""libhugetlbfs is a library which provides easy access
|
||||||
to huge pages of memory."""
|
to huge pages of memory."""
|
||||||
|
|
||||||
homepage = "https://github.com/libhugetlbfs/libhugetlbfs"
|
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")
|
license("LGPL-2.1-or-later")
|
||||||
|
|
||||||
version("2.22", sha256="94dca9ea2c527cd77bf28904094fe4708865a85122d416bfccc8f4b73b9a6785")
|
version("2.24", sha256="d501dfa91c8ead1106967a3d3829f2ba738c3fac0a65cb358ed2ab3870ddc5ef")
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
depends_on("autoconf", type="build")
|
||||||
make("install", "PREFIX=%s" % prefix)
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user