-
Notifications
You must be signed in to change notification settings - Fork 914
event/external: misc configury fixes #5977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
event/external: misc configury fixes #5977
Conversation
@jsquyres could you please review this ? @hppritcha that could be a blocker for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code itself looks fine; thanks for the fixes.
Question, though: this PR is really 2 things:
- Bug fixes
- Upgrade to require libevent >= 2.0.22 (we previously allowed >= 2.0.21).
Is there a reason for the upgrade? Do we know if this will affect our packagers?
@ggouaillardet Do you know if this affects 3.1.x / 3.0.x / 2.1.x? |
There is no reason to favor libevent 2.0.22 over 2.0.21 - the changes were irrelevant to us, so FAICT. |
The bug in only in My understanding is we prefer the external library if its version is greater or equal than the internal one, so I thought |
@gpaulsen might want to discuss on Monday |
@ggouaillardet @jsquyres He makes a correct point - we have libevent 2.0.22 in the OMPI distribution. Our policy is indeed to prefer external only if it is more current than the internal. Thus, there is no point to check for 2.0.21 as it will never be selected. |
- Always use the external component when configure'd with --with-libevent=external - Fix the external libevent library version detection by testing _EVENT_NUMERIC_VERSION and EVENT__NUMERIC_VERSION macros - Use the event2/event.h header (event.h is deprecated since libevent 2.0 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Only default to the external component if its version is greater or equal than the internal libevent (2.0.22) Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
9a2c4b9
to
b205039
Compare
I split the PR into two commits (bug fix + libevent version) If here is a consensus we should make an exception to the policy and allow 2.0.21 to be a default external component, I'll be happy to replace the second commit with a comment in |
@jsquyres as far as I am concerned, packagers should always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me
Per #5031, I thought we agreed to default to external if the external version Specifically, I think that condition was created for our downstream packagers who will package exactly the version of libevent that we want/ask for (which, by default, they may just use the version that we already have embedded). I don't think I care too strongly about this, but that what I remember us deciding. |
I'm afraid I don't understand your concern - this PR does exactly what you just described, doesn't it?
|
Hah -- silly me not noticing that the internal libevent is currently 2.0.22 (I just noticed the change in this PR to 2.0.22). Good to go. |
by testing _EVENT_NUMERIC_VERSION and EVENT__NUMERIC_VERSION macros
Signed-off-by: Gilles Gouaillardet gilles@rist.or.jp