1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Daos(SConsPackage):
"""The Distributed Asynchronous Object Storage (DAOS) is an open-source
software-defined object store designed from the ground up for massively
distributed Non Volatile Memory (NVM)."""
homepage = "https://github.com/daos-stack/daos"
git = "https://github.com/daos-stack/daos.git"
maintainers("hyoklee")
license("BSD-2-Clause-Patent")
version("master", branch="master", submodules=True)
version(
"2.2.0", tag="v2.2.0", commit="d2a1f2790c946659c9398926254e6203fd957b7c", submodules=True
)
variant(
"debug", default=False, description="Enable debugging info and strict compile warnings"
)
patch("0001-LIBPATH-fix-for-ALT_PREFIX.2.patch", when="@2.2.0:")
depends_on("argobots@1.1:")
depends_on("boost", type="build")
depends_on("cmocka", type="build")
depends_on("go", type="build")
depends_on("hwloc")
depends_on("isa-l@2.30.0:")
depends_on("isa-l-crypto@2.23.0:")
depends_on("libfabric@1.15.1:")
depends_on("libfuse@3.6.1:")
depends_on("libuuid")
depends_on("libunwind")
depends_on("libyaml")
depends_on("mercury@2.2.0:+boostsys")
depends_on("openssl")
depends_on("pmdk@1.12.1:")
depends_on("protobuf-c@1.3.3:")
depends_on("py-distro")
depends_on("readline")
depends_on("scons@4.4.0:")
depends_on("spdk@23.01:+shared+rdma+dpdk")
depends_on("ucx@1.12.1:")
def build_args(self, spec, prefix):
args = ["PREFIX={0}".format(prefix), "USE_INSTALLED=all"]
if "+debug" in spec:
args.append("--debug=explain,findlibs,includes")
# Construct ALT_PREFIX and make sure that '/usr' is last.
alt_prefix = []
for node in spec.traverse():
alt_prefix.append(format(node.prefix))
args.extend(
[
"WARNING_LEVEL=warning",
"ALT_PREFIX=%s" % ":".join([str(elem) for elem in alt_prefix]),
"GO_BIN={0}".format(spec["go"].prefix.bin) + "/go",
]
)
return args
def install_args(self, spec, prefix):
args = ["PREFIX={0}".format(prefix)]
return args
|