Skip to content

Commit 76d7466

Browse files
Add patches for librespot v0.6.0
- 010 Use 'portable-atomic' for AtomicU64 (needed for ARM, MIPS, and PowerPC) - 020 Use 'ring' instead of 'aws-lc' - 030 Use 'thin' rust profile and use newer version of ring which fixes mips64 and others in target.h
1 parent d5d8e9d commit 76d7466

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- a/playback/src/mixer/softmixer.rs
2+
+++ b/playback/src/mixer/softmixer.rs
3+
@@ -1,4 +1,5 @@
4+
-use std::sync::atomic::{AtomicU64, Ordering};
5+
+use portable_atomic::AtomicU64;
6+
+use std::sync::atomic::Ordering;
7+
use std::sync::Arc;
8+
9+
use super::VolumeGetter;
10+
--- a/playback/Cargo.toml
11+
+++ b/playback/Cargo.toml
12+
@@ -21,6 +21,7 @@ path = "../metadata"
13+
version = "0.6.0"
14+
15+
[dependencies]
16+
+portable-atomic = "1"
17+
futures-util = "0.3"
18+
log = "0.4"
19+
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- a/core/Cargo.toml
2+
+++ b/core/Cargo.toml
3+
@@ -33,7 +33,7 @@ hyper = { version = "1.3", features = ["
4+
hyper-util = { version = "0.1", features = ["client"] }
5+
http-body-util = "0.1.1"
6+
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls"] }
7+
-hyper-rustls = { version = "0.27.2", features = ["http2"] }
8+
+hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "logging", "tls12", "native-tokio", "http2"] }
9+
log = "0.4"
10+
nonzero_ext = "0.3"
11+
num-bigint = { version = "0.4", features = ["rand"] }
12+
@@ -70,3 +70,8 @@ vergen-gitcl = { version = "1.0.0", defa
13+
14+
[dev-dependencies]
15+
tokio = { version = "1", features = ["macros", "parking_lot"] }
16+
+
17+
+[features]
18+
+with-aws-lc-rs = ["hyper-rustls/aws-lc-rs"]
19+
+with-ring = ["hyper-rustls/ring"]
20+
+default = ["with-ring"]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--- a/Cargo.toml
2+
+++ b/Cargo.toml
3+
@@ -104,3 +104,14 @@ assets = [
4+
5+
[workspace.package]
6+
rust-version = "1.74"
7+
+
8+
+[patch.crates-io]
9+
+ring = { git = "https://github.com/briansmith/ring/" }
10+
+
11+
+[profile.release]
12+
+lto = "thin"
13+
+debug = 0
14+
+panic = "abort"
15+
+incremental = false
16+
+codegen-units = 1
17+
+opt-level = "s"

0 commit comments

Comments
 (0)