commit:     204e818da24baa0bc4a04a8e22d7eb29ffed59e4
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Jul  1 01:37:08 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 21:24:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204e818d

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 <AT> gmail.com>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sys-cluster/pmix/pmix-5.0.2.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sys-cluster/pmix/pmix-5.0.2.ebuild 
b/sys-cluster/pmix/pmix-5.0.2.ebuild
index f7d88d473b4c..204dcf878bff 100644
--- a/sys-cluster/pmix/pmix-5.0.2.ebuild
+++ b/sys-cluster/pmix/pmix-5.0.2.ebuild
@@ -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() {

Reply via email to