sys-cluster/pmix: enforce the choice of event library

pmix can be built with either libevent or libev, and we need to depend
on the correct one. We depend on libevent. If, somehow, the configure
check is broken, it will "happily" attempt to automagically build against libev
instead, with varying degrees of success.

Make sure it knows which one it MUST pick.

Also update to use modern econf passing style with a local array, so
that comments are supported!

Closes: https://bugs.gentoo.org/884883
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-06-30 21:37:08 -04:00
committed by Eli Schwartz
parent 3cb521ed1e
commit 204e818da2

View File

@@ -35,9 +35,17 @@ src_configure() {
# https://github.com/openpmix/openpmix/issues/3350
filter-lto
econf \
$(use_enable debug) \
local myeconfargs=(
# These are alternatives. We must use the one in DEPEND, and also
# prevent automagic fallbacks.
--with-libevent
--without-libev
$(use_enable debug)
$(use_with munge)
)
econf "${myeconfargs[@]}"
}
src_install() {