Skip to content

Commit

Permalink
devider: add a patch for better ARM64 support
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Oct 14, 2024
1 parent 219af55 commit a939278
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
12 changes: 11 additions & 1 deletion recipes/devider/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ export CARGO_HOME="$(pwd)/.cargo"

# build statically linked binary with Rust
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
RUST_BACKTRACE=1 cargo install --verbose --locked --no-track --root $PREFIX --path .

case $(uname -m) in
aarch64 | arm64)
FEATURES="--features neon --no-default-features"
;;
*)
FEATURES=""
;;
esac

RUST_BACKTRACE=1 cargo install --verbose --locked --no-track --root $PREFIX --path . ${FEATURES}
cp scripts/* $PREFIX/bin
14 changes: 14 additions & 0 deletions recipes/devider/devider-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- Cargo.toml.orig 2024-10-14 10:59:48.140000000 +0000
+++ Cargo.toml 2024-10-14 11:03:33.120000000 +0000
@@ -13,9 +13,9 @@
rayon="1.7"
rand="0.8"
rand_core="0.6"
-rust-htslib= { version = "0.44", default-features = false }
+rust-htslib= { version = "0.47", default-features = false }
clap = { version = "=4.2.0", features = ["derive"] }
-block-aligner = { version = "0.4", default-features = false }
+block-aligner = { version = "0.5", default-features = false }
debruijn = "0.3"
simple_logger="4"
log="0.4"
2 changes: 2 additions & 0 deletions recipes/devider/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ package:
source:
url: https://github.com/bluenote-1577/devider/archive/v{{ version }}.tar.gz
sha256: e2c5e4a2faa51dbfd0ad4cb867d0dc25ea4012e83ec8fea27c1624592fce7dce
patches:
- devider-aarch64.patch # [aarch64]

build:
number: 1
Expand Down

0 comments on commit a939278

Please sign in to comment.