From 754527d0297ba5fa216a993678b90f9406a01bd9 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Mon, 22 Jun 2026 15:20:20 +0200 Subject: [PATCH] fix: patch ncurses via git to fix aarch64 build ncurses-6.0.1 on crates.io uses a TRUE constant that Arch Linux ARM's ncurses headers no longer define, breaking the rpi runner. Patch to git HEAD which has the fix. Co-Authored-By: Claude Sonnet 4.6 --- Cargo.lock | 3 +-- Cargo.toml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8f4d2dc..1652c9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,8 +139,7 @@ checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "ncurses" version = "6.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbd71afa95710e841d173521e8483e764004eb332bdf47bd01d00f568688027f" +source = "git+https://github.com/jeaye/ncurses-rs#70023d5e41ae704f61849e8e6c7055eaad398bb6" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index 971c7dd..36ef183 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,6 @@ byteorder = "1.5.0" clap = { version = "4.5.21", features = ["derive"] } ncurses = "6.0.1" rustfft = "6.2.0" + +[patch.crates-io] +ncurses = { git = "https://github.com/jeaye/ncurses-rs" }