diff --git a/149.patch b/149.patch new file mode 100644 index 0000000..81a3cce --- /dev/null +++ b/149.patch @@ -0,0 +1,22 @@ +From e10d854c51422f8204cade760f2e1a406675f2ec Mon Sep 17 00:00:00 2001 +From: rikkaka +Date: Sat, 8 Jun 2024 20:10:21 +0800 +Subject: [PATCH] add const _IS_BIASED + +--- + tests/mpsc.rs | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/mpsc.rs b/tests/mpsc.rs +index 213b9d8..9fb69be 100644 +--- a/tests/mpsc.rs ++++ b/tests/mpsc.rs +@@ -175,6 +175,8 @@ macro_rules! select { + ( + $($name:pat = $rx:ident.$meth:ident() => $code:expr),+ + ) => ({ ++ const _IS_BIASED: bool = false; ++ + crossbeam_channel_internal! { + $( + recv(($rx).inner) -> res => { diff --git a/README.md b/README.md deleted file mode 100644 index b388061..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-flume - -The rust-flume package \ No newline at end of file diff --git a/rust-flume.spec b/rust-flume.spec index ae5e0f3..71dec92 100644 --- a/rust-flume.spec +++ b/rust-flume.spec @@ -16,6 +16,8 @@ Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency Patch: flume-fix-metadata.diff +# * upstream patch to fix compiling tests with crossbeam-channel >=0.5.13 +Patch: https://github.com/zesterer/flume/pull/149.patch BuildRequires: cargo-rpm-macros >= 24