From 038eb65eefb1ebf15eb140b39ec46c4bc56e8dda Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Tue, 5 Sep 2023 01:32:06 +0200 Subject: [PATCH] build: Disable memfd for ipc-channel This will fix arm build and makes kernels < 3.17 compatible again Signed-off-by: Alexander Gil --- Cargo.lock | 7 ------- rash_core/Cargo.toml | 4 +++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 999168e4..df52b036 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -731,7 +731,6 @@ dependencies = [ "libc", "mio", "rand", - "sc", "serde", "tempfile", "uuid", @@ -1225,12 +1224,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "sc" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "010e18bd3bfd1d45a7e666b236c78720df0d9a7698ebaa9c1c559961eb60a38b" - [[package]] name = "schemars" version = "0.8.13" diff --git a/rash_core/Cargo.toml b/rash_core/Cargo.toml index e5f2a4ed..a7e3473d 100644 --- a/rash_core/Cargo.toml +++ b/rash_core/Cargo.toml @@ -34,7 +34,9 @@ clap = { workspace = true, features = ["std", "color", "derive", "cargo"]} exec = "0.3.1" fern = { version = "0.6", features = ["colored"] } ignore = "0.4" -ipc-channel = { version = "0.17", features = ["memfd"] } +# memfd could be added but brakes compatibility with kernels < 3.17 +# ipc-channel = { version = "0.17", features = ["memfd"] } +ipc-channel = "0.17" itertools = "0.11" nix = { version = "0.27", features = ["process", "user"] } serde = { version = "1.0", features = ["derive"] }