Re: git: 9ddf7a912155 - main - devel/uv: Make the selected TLS provider use the system default truststore

From: Adam Weinberger <adamw_at_adamw.org>
Date: Mon, 03 Nov 2025 19:26:15 UTC
On Mon, Nov 3, 2025 at 3:28 AM Yuri Victorovich <yuri@freebsd.org> wrote:

> The branch main has been updated by yuri:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=9ddf7a9121551186f4673f756905dae2f58589c3
>
> commit 9ddf7a9121551186f4673f756905dae2f58589c3
> Author:     Michael Osipov <michaelo@FreeBSD.org>
> AuthorDate: 2025-11-03 08:25:19 +0000
> Commit:     Yuri Victorovich <yuri@FreeBSD.org>
> CommitDate: 2025-11-03 08:28:36 +0000
>
>     devel/uv: Make the selected TLS provider use the system default
> truststore
>
>     Differential Revision:  https://reviews.freebsd.org/D53490
> ---
>  devel/uv/Makefile                                  |  1 +
>  ...tch-cargo-crates_openssl-probe-0.1.6_src_lib.rs | 50
> ++++++++++++++++++++++
>  2 files changed, 51 insertions(+)
>
> diff --git a/devel/uv/Makefile b/devel/uv/Makefile
> index 9d00841e4646..1647f3bc6d14 100644
> --- a/devel/uv/Makefile
> +++ b/devel/uv/Makefile
> @@ -1,5 +1,6 @@
>  PORTNAME=      uv
>  DISTVERSION=   0.9.6
> +PORTREVISION=  1
>  CATEGORIES=    devel
>
>  MAINTAINER=    yuri@FreeBSD.org
> diff --git a/devel/uv/files/
> patch-cargo-crates_openssl-probe-0.1.6_src_lib.rs b/devel/uv/files/
> patch-cargo-crates_openssl-probe-0.1.6_src_lib.rs
> new file mode 100644
> index 000000000000..e51f27bc248a
> --- /dev/null
> +++ b/devel/uv/files/patch-cargo-crates_openssl-probe-0.1.6_src_lib.rs
> @@ -0,0 +1,50 @@
> +--- cargo-crates/openssl-probe-0.1.6/src/lib.rs
> ++++ cargo-crates/openssl-probe-0.1.6/src/lib.rs
> +@@ -26,6 +26,7 @@ pub fn find_certs_dirs() -> Vec<PathBuf> {
>
> ++#[cfg(target_os = "freebsd")]
> ++pub fn candidate_cert_dirs() -> impl Iterator<Item = &'static Path> {
> ++    // see manpage of certctl(8):
> https://man.freebsd.org/cgi/man.cgi?query=certctl&sektion=8
> ++    // see security/openssl* ports
> ++    [
> ++        "/etc/ssl",
> ++        "/usr/local/etc/ssl",
> ++        "/usr/local/openssl",
> ++    ]
> ++    .iter()
> ++    .map(Path::new)
> ++    .filter(|p| p.exists())
> ++}


Hi Yuri,

Great work! You probably want %%LOCALBASE%% there instead of hardcoding
/usr/local.


-- 
Adam Weinberger
adamw@adamw.org