| 1 |
Descriptionscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/patches/`1004_portable-atomic.patch`#Description.: use portable-atomic for Debian 32-bit arm support |
| 2 |
Authorscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/patches/`1004_portable-atomic.patch`#Author.: Jonas Smedegaard <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Last-Updatescip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/patches/`1004_portable-atomic.patch`#Last-Update.: 2025-02-02 |
| 4 |
--- |
| 5 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 6 |
--- a/helix-dap/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-dap/Cargo.toml`: |
| 7 |
+++ b/helix-dap/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-dap/Cargo.toml`: |
| 8 |
@@ -19,6 +19,7 @@ |
| 9 |
|
| 10 |
anyhow = "1.0" |
| 11 |
log = "0.4" |
| 12 |
+portable-atomic = "1" |
| 13 |
serde = { version = "1.0", features = ["derive"] } |
| 14 |
serde_json = "1.0" |
| 15 |
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "net", "sync"] } |
| 16 |
--- a/helix-dap/src/client.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-dap/src/client.rs`: |
| 17 |
+++ b/helix-dap/src/client.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-dap/src/client.rs`: |
| 18 |
@@ -16,8 +16,8 @@ |
| 19 |
net::{IpAddr, Ipv4Addr, SocketAddr}, |
| 20 |
path::PathBuf, |
| 21 |
process::Stdio, |
| 22 |
|
| 23 |
}; |
| 24 |
+use portable_atomic::{AtomicU64, Ordering}; |
| 25 |
use tokio::{ |
| 26 |
io::{AsyncBufRead, AsyncWrite, BufReader, BufWriter}, |
| 27 |
net::TcpStream, |
| 28 |
--- a/helix-event/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-event/Cargo.toml`: |
| 29 |
+++ b/helix-event/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-event/Cargo.toml`: |
| 30 |
@@ -14,6 +14,7 @@ |
| 31 |
[dependencies] |
| 32 |
foldhash.workspace = true |
| 33 |
hashbrown = "0.17" |
| 34 |
+portable-atomic = "1" |
| 35 |
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "sync", "parking_lot", "macros"] } |
| 36 |
# the event registry is essentially read only but must be an rwlock so we can |
| 37 |
# setup new events on initialization, hardware-lock-elision hugely benefits this case |
| 38 |
--- a/helix-event/src/cancel.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-event/src/cancel.rs`: |
| 39 |
+++ b/helix-event/src/cancel.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-event/src/cancel.rs`: |
| 40 |
@@ -1,9 +1,8 @@ |
| 41 |
use std::borrow::Borrow; |
| 42 |
use std::future::Future; |
| 43 |
|
| 44 |
|
| 45 |
use std::sync::Arc; |
| 46 |
|
| 47 |
+use portable_atomic::{AtomicU64, Ordering::Relaxed}; |
| 48 |
use tokio::sync::Notify; |
| 49 |
|
| 50 |
pub async fn cancelable_future<T>( |
| 51 |
--- a/helix-lsp/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-lsp/Cargo.toml`: |
| 52 |
+++ b/helix-lsp/Cargo.tomlscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-lsp/Cargo.toml`: |
| 53 |
@@ -23,6 +23,7 @@ |
| 54 |
futures-util.workspace = true |
| 55 |
globset.workspace = true |
| 56 |
log = "0.4" |
| 57 |
+portable-atomic = "1" |
| 58 |
serde = { version = "1.0", features = ["derive"] } |
| 59 |
serde_json = "1.0" |
| 60 |
tokio = { version = "1.50", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot", "sync"] } |
| 61 |
--- a/helix-lsp/src/client.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-lsp/src/client.rs`: |
| 62 |
+++ b/helix-lsp/src/client.rsscip-debian debian hx 25.07.1+20260624+ds+~0.3.3+ds+~0.4.0+20260607+ds-4 hx/upstream/`helix-lsp/src/client.rs`: |
| 63 |
@@ -24,13 +24,11 @@ |
| 64 |
use std::{collections::HashMap, path::PathBuf}; |
| 65 |
use std::{ |
| 66 |
ffi::OsStr, |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
+ sync::Arc, |
| 72 |
}; |
| 73 |
use std::{future::Future, sync::OnceLock}; |
| 74 |
use std::{path::Path, process::Stdio}; |
| 75 |
+use portable_atomic::{AtomicU64, Ordering}; |
| 76 |
use tokio::{ |
| 77 |
io::{BufReader, BufWriter}, |
| 78 |
process::{Child, Command}, |