From de82451a3da8914b199bdcfccf169d971f0a73d8 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Fri, 10 Feb 2023 16:21:06 +0800 Subject: [PATCH] upgpatch: cargo-spellcheck cargo-spellcheck introduce new dependency perf-event-open-sys which doesn't have riscv64 binding. This commit change its source to my patched version. Signed-off-by: Avimitin --- cargo-spellcheck/riscv64.patch | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cargo-spellcheck/riscv64.patch b/cargo-spellcheck/riscv64.patch index b6acc8b6c..3716d2e34 100644 --- a/cargo-spellcheck/riscv64.patch +++ b/cargo-spellcheck/riscv64.patch @@ -1,13 +1,18 @@ --- PKGBUILD +++ PKGBUILD -@@ -16,7 +16,9 @@ options=('!lto') +@@ -16,7 +16,14 @@ options=('!lto') prepare() { cd "$pkgname-$pkgver" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" -+ echo -e "\n[patch.crates-io]\nring = { git = 'https://github.com/felixonmars/ring', branch = '0.16.20' }" >> Cargo.toml ++ cat <> Cargo.toml ++[patch.crates-io] ++ring = { git = 'https://github.com/felixonmars/ring', branch = '0.16.20' } ++perf-event-open-sys = { git = 'https://github.com/Avimitin/perf-event-riscv64', branch = 'riscv64' } ++EOF + cargo update -p ring ++ cargo update -p perf-event-open-sys + cargo fetch --locked mkdir -p completions } - +