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

[FIXED] Build: issue on Android with NATS_EXTRA_LIB #739

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

kozlovic
Copy link
Member

A user (@psantiagol) reported an issue (in #64) building on Android
due to the use of NATS_EXTRA_LIB. This PR skip the definition of
this variable if building on Android. Should other users then report
that this is breaking their build on Android, we will have to make
this a conditional based on a boolean build option.

Also, fixed test JetStreamBackOffRedeliveries.
With PR nats-io/nats-server#5242 in server
code, not providing a MaxDeliver is considered unlimited and should
not error out. So fixing test to set MaxDeliver <= to the backoff
list to get the expected error.

Signed-off-by: Ivan Kozlovic [email protected]

A user (@psantiagol) reported an issue (in #64) building on Android
due to the use of `NATS_EXTRA_LIB`. This PR skip the definition of
this variable if building on Android. Should other users then report
that this is breaking their build on Android, we will have to make
this a conditional based on a boolean build option.

Signed-off-by: Ivan Kozlovic <[email protected]>
With PR nats-io/nats-server#5242 in server
code, not providing a MaxDeliver is considered unlimited and should
not error out. So fixing test to set MaxDeliver <= to the backoff
list to get the expected error.

Signed-off-by: Ivan Kozlovic <[email protected]>
@kozlovic kozlovic requested a review from levb March 26, 2024 19:08
Copy link
Collaborator

@levb levb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@levb levb merged commit 8a00e4b into main Mar 27, 2024
2 checks passed
@levb levb deleted the build_android branch March 27, 2024 19:24
levb pushed a commit that referenced this pull request Apr 12, 2024
* [FIXED] Build: issue on Android with NATS_EXTRA_LIB

A user (@psantiagol) reported an issue (in #64) building on Android
due to the use of `NATS_EXTRA_LIB`. This PR skip the definition of
this variable if building on Android. Should other users then report
that this is breaking their build on Android, we will have to make
this a conditional based on a boolean build option.

Signed-off-by: Ivan Kozlovic <[email protected]>

* Fix test JetStreamBackOffRedeliveries

With PR nats-io/nats-server#5242 in server
code, not providing a MaxDeliver is considered unlimited and should
not error out. So fixing test to set MaxDeliver <= to the backoff
list to get the expected error.

Signed-off-by: Ivan Kozlovic <[email protected]>

---------

Signed-off-by: Ivan Kozlovic <[email protected]>
@levb levb removed the cherry-pick label Apr 12, 2024
@levb
Copy link
Collaborator

levb commented Apr 12, 2024

Cherry-picked for v3.8.1

@Biswa96
Copy link

Biswa96 commented Apr 17, 2024

Should other users then report
that this is breaking their build on Android, we will have to make
this a conditional based on a boolean build option.

IMO, this is the correct condition. termux-packages was carrying a patch for this issue for 2 years https://github.com/termux/termux-packages/blob/019cdbab029f468c8a370f78b8cdacc1b5dbd24e/packages/libnats-c/CMakeLists.txt.patch

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.

3 participants