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

Add curl 7.69.1 #1429

Closed
wants to merge 1 commit into from
Closed

Add curl 7.69.1 #1429

wants to merge 1 commit into from

Conversation

Vertexwahn
Copy link
Contributor

@Vertexwahn Vertexwahn commented Feb 3, 2024

Add curl 7.69.1

@lalten @aiuto

+ visibility = ["//visibility:public"],
+ deps = [
+ # Use the same version of zlib and c-ares that gRPC does.
+ #"//external:madler_zlib",
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these comments leftovers?

+)
+
+CURL_WIN_COPTS = [
+ "/Iexternal/com_github_curl_curl/lib",
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like it won't work with Bzlmod. You may need to get the repository name from a Label defined in a .bzl file.

+ "include/curl/urlapi.h",
+ ],
+ copts = select({
+ ":windows": CURL_WIN_COPTS,
Copy link
Contributor

Choose a reason for hiding this comment

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

This select on the Windows platform should probably be a select on the MSVC compiler instead (see @rules_cc//cc/compiler)

+ ],
+ "//conditions:default": [],
+ }),
+ defines = ["CURL_STATICLIB"] + select({
Copy link
Contributor

Choose a reason for hiding this comment

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

Could these be local_defines?

+ "@platforms//os:windows",
+ "@platforms//cpu:x86_64",
+ ],
+ visibility = ["//visibility:public"],
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be private.

+ visibility = ["//visibility:public"],
+)
+
+# On Linux, libcurl needs to know, at compile time, the location for the
Copy link
Contributor

Choose a reason for hiding this comment

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

The CA cert logic is problematic since it inspects the host in a genrule, which will not work correctly with remote execution. We could define a Starlark string_flag and require Linux users to set it explicitly.

@aiuto
Copy link
Contributor

aiuto commented Feb 4, 2024 via email

@lalten
Copy link
Contributor

lalten commented Feb 5, 2024

Note that there is also https://github.com/hedronvision/bazel-make-cc-https-easy/blob/main/curl.BUILD which works with curl 8.6 and seems to be OS aware
Cc @cpsauer

@Wyverald
Copy link
Member

Hello! I'm doing some routine cleanup of stale PRs. If you're still working on this and planning to make progress soon, please let me know and we can re-open it.

@Wyverald Wyverald closed this Mar 21, 2024
@keith
Copy link
Member

keith commented Mar 22, 2024

i opened a 8.x curl PR based on a different original BUILD file, not sure how easy it will be to get working #1666

@aiuto
Copy link
Contributor

aiuto commented Mar 22, 2024 via email

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.

6 participants