git: f0cedef322bd - main - devel/uv: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Jul 2026 08:58:31 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f0cedef322bd5f59f4047d186e99657c1edda3f4
commit f0cedef322bd5f59f4047d186e99657c1edda3f4
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-07-08 23:47:22 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-07-10 08:56:36 +0000
devel/uv: fix build on armv7
A type error that pops up on armv7.
As subsec_nanos() is in the range 0 to 1e9, it always fits into an i32
either way, so "as" is sufficient for a conversion.
Also enable on i386, where this port now builds fine.
Approved by: portmgr (build fix blanket)
See also: https://github.com/astral-sh/tokio-tar/issues/100
MFH: 2026Q3
---
devel/uv/Makefile | 2 --
.../patch-cargo-crates_astral-tokio-tar-0.6.3_src_entry.rs | 11 +++++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/devel/uv/Makefile b/devel/uv/Makefile
index dce0f9543d2e..9135518118a5 100644
--- a/devel/uv/Makefile
+++ b/devel/uv/Makefile
@@ -13,8 +13,6 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-BROKEN_i386= compilation of the libopenssl_sys-abc7d27a34743709 crate fails: ld: error: undefined symbol: __atomic_is_lock_free, etc
-
LIB_DEPENDS= libgit2.so:devel/libgit2 \
libssh2.so:security/libssh2 \
libzstd.so:archivers/zstd
diff --git a/devel/uv/files/patch-cargo-crates_astral-tokio-tar-0.6.3_src_entry.rs b/devel/uv/files/patch-cargo-crates_astral-tokio-tar-0.6.3_src_entry.rs
new file mode 100644
index 000000000000..b2e9b5a44e89
--- /dev/null
+++ b/devel/uv/files/patch-cargo-crates_astral-tokio-tar-0.6.3_src_entry.rs
@@ -0,0 +1,11 @@
+--- cargo-crates/astral-tokio-tar-0.6.3/src/entry.rs.orig 2026-07-08 23:41:21 UTC
++++ cargo-crates/astral-tokio-tar-0.6.3/src/entry.rs
+@@ -64,7 +64,7 @@ fn set_symlink_file_times(dst: &Path, mtime: SystemTim
+ .as_secs()
+ .try_into()
+ .map_err(|_| Error::new(ErrorKind::InvalidData, "mtime exceeds platform limits"))?;
+- let nanoseconds = duration.subsec_nanos().into();
++ let nanoseconds = (duration.subsec_nanos() as i32).into();
+ let timestamps = Timestamps {
+ last_access: Timespec {
+ tv_sec: seconds,