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

[bp/1.28] Fix build error with maxmind if http3 is disabled (#33638) #33661

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

jwendell
Copy link
Member

maxmind is causing the build to not honor the flag --//bazel:http3=False: The define ENVOY_ENABLE_QUIC is still being passed to the compiler. This causes code that rely on the presence (or not) of that define to behave wrongly.

I am not 100% sure of what causes it, but Bazel doc says 1) to not use bind and 2) that bind and select do not play well together: https://bazel.build/reference/be/workspace#bind

By removing the bind and pointing directly to the actual dependency in maxmind BUILD file, we fix this issue.

Backport of #33638

…roxy#33638)

`maxmind` is causing the build to not honor the flag `--//bazel:http3=False`: The
define `ENVOY_ENABLE_QUIC` is still being passed to the compiler. This
causes code that rely on the presence (or not) of that define to behave
wrongly.

I am not 100% sure of what causes it, but Bazel doc says 1) to not use
`bind` and 2) that `bind` and `select` do not play well together: https://bazel.build/reference/be/workspace#bind

By removing the `bind` and pointing directly to the actual dependency in
`maxmind` BUILD file, we fix this issue.

Backport of envoyproxy#33638

Signed-off-by: Jonh Wendell <jwendell@redhat.com>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Apr 18, 2024
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @phlax

🐱

Caused by: #33661 was opened by jwendell.

see: more, trace.

Copy link
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @jwendell

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Apr 18, 2024
@phlax phlax enabled auto-merge (rebase) April 18, 2024 13:31
@phlax phlax merged commit 0cb060d into envoyproxy:release/v1.28 Apr 18, 2024
40 of 42 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.

2 participants