[Bug 290697] lang/rust: use vendored libcurl

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 Oct 2025 19:32:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290697

            Bug ID: 290697
           Summary: lang/rust: use vendored libcurl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: me@svmhdvn.name
                CC: rust@FreeBSD.org
          Assignee: rust@FreeBSD.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)
 Attachment #265053 maintainer-approval?(rust@FreeBSD.org)
             Flags:
                CC: rust@FreeBSD.org

Created attachment 265053
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265053&action=edit
[PATCH] lang/rust: use vendored libcurl

Patch attached:

Upstream cargo[0] states:
> It is recommended to use the vendored versions as they are
> the versions that are tested to work with Cargo.

Based on discussion from PR274743[1], it seems to be usually more
stable and involves less breakage to follow upstream guidelines
in this case.

Since we are already using the vendored libgit2 and libssh2, start
using the vendored libcurl as well. 

This has an additional benefit:
ftp/curl updates versions on a roughly monthly basis as well, which
causes a full rebuild of lang/rust. This is an unnecessary expense,
since it is only needed for the cargo component of the full
lang/rust port.

[0] https://github.com/rust-lang/cargo?tab=readme-ov-file#requirements
[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274743

-- 
You are receiving this mail because:
You are the assignee for the bug.