Skip to content
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

halt build if CURVE requested but not found #4663

Merged
merged 1 commit into from Feb 28, 2024

Conversation

minrk
Copy link
Member

@minrk minrk commented Feb 28, 2024

Problem: It's frustrating to attempt to build libzmq with curve, only to find out after build has completed that it wasn't found and the request was ignored.

Solution: respect user input and fail if their choice cannot be satisfied instead of ignoring it.

now builds where requested configuration is not found fail rather than proceeding without requested features

changes:

Previously, to enable curve, you needed the redundant config:

-DENABLE_CURVE=ON -DWITH_LIBSODIUM=ON

Whereas the following would not attempt to enable CURVE:

-DENABLE_CURVE=ON

and the required configuration would also proceed to build without CURVE, ignoring user request with a message.

Since ENABLE_CURVE and WITH_LIBSODIUM really represent the same thing now (there is no CURVE without sodium), we could also deprecate one or default it to True. But this is the smallest change.

ENABLE_CURVE is currently redundant with WITH_LIBSODIUM, as the only existing provider

now builds where requested configuration is not found fail rather than proceeding without requested features
@bluca bluca merged commit 481cc3f into zeromq:master Feb 28, 2024
60 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants