Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit edd9448

Browse files
committed
configury/libevent: fix incorrect drop of OPAL_HAVE_WORKING_EVENTOPS
Fixes a bug introduced in PR #1258 The code that sets OPAL_HAVE_WORKING_EVENTOPS for internal libevent was executed even if the external libevent component was configured. As the result libevent progress wasn't called in opal_progress which for example caused ring_c to hang when pml/ob1 was used. (cherry-picked from open-mpi/ompi@9d6a4b3)
1 parent fe3147d commit edd9448

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

opal/mca/event/libevent2022/configure.m4

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,15 @@ AC_DEFUN([MCA_opal_event_libevent2022_CONFIG],[
189189

190190
AS_IF([test "$with_libevent" != "internal" && test -n "$with_libevent" && test "$with_libevent" != "yes"],
191191
[AC_MSG_WARN([using an external libevent; disqualifying this component])
192-
libevent_happy=no])
193-
194-
AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file],
195-
[OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'`
196-
$1],
197-
[$2
198-
OPAL_HAVE_WORKING_EVENTOPS=0])
192+
libevent_happy=no],
193+
194+
[AS_IF([test "$libevent_happy" = "yes" && test -r $libevent_file],
195+
[OPAL_HAVE_WORKING_EVENTOPS=`grep HAVE_WORKING_EVENTOPS $libevent_file | awk '{print [$]3 }'`
196+
$1],
197+
[$2
198+
OPAL_HAVE_WORKING_EVENTOPS=0])
199+
]
200+
)
199201

200202
OPAL_VAR_SCOPE_POP
201203
])

0 commit comments

Comments
 (0)