diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-04-27 10:46:24 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-04-27 10:46:24 +0200 |
commit | 237fa224e002bc112273ecc5897020967bdeb546 (patch) | |
tree | b460f46abea34c4bbb76cb76adaa787cca4fed0d /dev-python/uv | |
parent | dev-python/h5py: Remove old (diff) | |
download | gentoo-237fa224e002bc112273ecc5897020967bdeb546.tar.gz gentoo-237fa224e002bc112273ecc5897020967bdeb546.tar.bz2 gentoo-237fa224e002bc112273ecc5897020967bdeb546.zip |
dev-python/uv: Backport a ppc fix for tokio-tar dep
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/files/tokio-tar-0.3.1-ppc.patch | 35 | ||||
-rw-r--r-- | dev-python/uv/uv-0.1.38.ebuild | 10 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/uv/files/tokio-tar-0.3.1-ppc.patch b/dev-python/uv/files/tokio-tar-0.3.1-ppc.patch new file mode 100644 index 000000000000..cb3c2f93cf57 --- /dev/null +++ b/dev-python/uv/files/tokio-tar-0.3.1-ppc.patch @@ -0,0 +1,35 @@ +diff --git a/src/archive.rs b/src/archive.rs +index 63f4293..986a146 100644 +--- a/src/archive.rs ++++ b/src/archive.rs +@@ -3,12 +3,13 @@ use std::{ + collections::VecDeque, + path::Path, + pin::Pin, +- sync::{ +- atomic::{AtomicU64, Ordering}, +- Arc, +- }, ++ sync::Arc, + task::{Context, Poll}, + }; ++use portable_atomic::{ ++ AtomicU64, ++ Ordering, ++}; + use tokio::{ + io::{self, AsyncRead as Read, AsyncReadExt}, + sync::Mutex, +diff -dup a/Cargo.toml b/Cargo.toml +--- a/Cargo.toml 2024-04-27 10:39:21.186708179 +0200 ++++ b/Cargo.toml 2024-04-27 10:39:37.940402613 +0200 +@@ -43,6 +43,9 @@ version = "0.2" + [dependencies.futures-core] + version = "0.3" + ++[dependencies.portable-atomic] ++version = "1" ++ + [dependencies.tokio] + version = "1" + features = [ diff --git a/dev-python/uv/uv-0.1.38.ebuild b/dev-python/uv/uv-0.1.38.ebuild index 793b60d2c541..64b8639100cb 100644 --- a/dev-python/uv/uv-0.1.38.ebuild +++ b/dev-python/uv/uv-0.1.38.ebuild @@ -80,6 +80,16 @@ pkg_setup() { check_space } +src_prepare() { + default + + # https://github.com/vorot93/tokio-tar/pull/23 + # (fortunately uv already depends on portable-atomic, so we don't + # have to fight Cargo.lock) + cd "${WORKDIR}/cargo_home/gentoo/tokio-tar-0.3.1" || die + eapply "${FILESDIR}/tokio-tar-0.3.1-ppc.patch" +} + src_configure() { local myfeatures=( # from upstream defaults |