blob: 4daf2b49ecc439d14afa6198030728b0561d7281 (
plain)
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit flag-o-matic libtool
DESCRIPTION="The Process Management Interface (PMI) Exascale"
HOMEPAGE="https://openpmix.org/"
SRC_URI="https://github.com/openpmix/openpmix/releases/download/v${PV}/${P}.tar.bz2"
LICENSE="BSD"
# https://github.com/openpmix/openpmix/issues/4322
#
# > the .so number is based on the official API symbols, not on all symbols in
# > the library. [...] Unfortunately, abidiff doesn't understand any of that - it's
# > just a blind symbol comparison. PMIx has quite a few symbols exposed because
# > PRRTE re-uses them. This saves on maintenance for us and causes no harm to
# > anyone else.
#
# So, impossible situation. Export subslot for prrte, instead. In theory, nothing else
# should need subslot rebuilds, as they say the official API is "never modified,
# forever".
SLOT="0/${PV}"
# No support for 32-bit systems as of 4.2.8 (https://github.com/open-mpi/ompi/issues/11248)
KEYWORDS="~amd64 ~arm64 ~ppc64 -x86"
IUSE="debug +munge pmi"
RDEPEND="
dev-libs/libevent:=
sys-apps/hwloc:=
virtual/zlib:=
munge? ( sys-auth/munge )
pmi? ( !sys-cluster/slurm )
"
DEPEND="${RDEPEND}"
src_prepare() {
default
elibtoolize
}
src_configure() {
# -Werror=lto-type-mismatch
# https://github.com/openpmix/openpmix/issues/3350
filter-lto
local myeconfargs=(
# These are alternatives. We must use the one in DEPEND, and also
# prevent automagic fallbacks.
--with-libevent
# tries to build both zlib and zlib-ng
--without-zlibng
--enable-ipv6
$(use_enable debug)
$(use_with munge)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
# bug #884765
mv "${ED}"/usr/bin/pquery "${ED}"/usr/bin/pmix-pquery || die
}
|