diff --git a/devel/uv/Makefile b/devel/uv/Makefile index dce0f9543d2e..9135518118a5 100644 --- a/devel/uv/Makefile +++ b/devel/uv/Makefile @@ -1,64 +1,62 @@ PORTNAME= uv DISTVERSION= 0.11.28 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Extremely fast Python package installer and resolver, written in Rust WWW= https://astral.sh/ \ https://docs.astral.sh/uv/ \ https://github.com/astral-sh/uv LICENSE= APACHE20 MIT 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 USES= cargo gmake localbase perl5 pkgconfig USE_PERL5= build USE_GITHUB= yes GH_ACCOUNT= astral-sh OPENSSLINC= /usr/include OPENSSLLIB= /usr/lib RUSTFLAGS+= -C link-args=-Wl,-rpath=${LOCALBASE}/lib CARGO_INSTALL= no PROGS= uv \ uvx \ uv-build \ uv-globfilter PLIST_FILES= ${PROGS:S/^/bin\//} PORTSCOUT= limit:.*\..*$$ # prevent tags like perma-39 .include .if ${ARCH:Marmv?} LTO_UNSAFE= yes CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false .endif post-patch: @${REINPLACE_CMD} -e 's|/etc/uv|${PREFIX}/etc/uv|g' \ -e 's|/etc/xdg|${PREFIX}/etc/xdg|g' \ ${WRKSRC}/crates/uv-dirs/src/lib.rs \ ${WRKSRC}/crates/uv-settings/src/settings.rs do-install: # workaround for error: found a virtual manifest at `xx` instead of a package manifest .for p in ${PROGS} ${INSTALL_PROGRAM} \ ${WRKDIR}/target/release/${p} \ ${STAGEDIR}${PREFIX}/bin .endfor .include 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,