diff --git a/recipes/devider/build.sh b/recipes/devider/build.sh index 17d5db214e9a0..e3d6bbba51363 100644 --- a/recipes/devider/build.sh +++ b/recipes/devider/build.sh @@ -1,10 +1,21 @@ -#!/bin/bash -euo +#!/bin/bash + +set -xeuo -# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details. # We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct. -export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo" +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 diff --git a/recipes/devider/devider-aarch64.patch b/recipes/devider/devider-aarch64.patch new file mode 100644 index 0000000000000..6c2478c0cccfa --- /dev/null +++ b/recipes/devider/devider-aarch64.patch @@ -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" diff --git a/recipes/devider/meta.yaml b/recipes/devider/meta.yaml index b9ea2b34e8c0d..90c59b5125124 100644 --- a/recipes/devider/meta.yaml +++ b/recipes/devider/meta.yaml @@ -7,9 +7,11 @@ package: source: url: https://github.com/bluenote-1577/devider/archive/v{{ version }}.tar.gz sha256: e2c5e4a2faa51dbfd0ad4cb867d0dc25ea4012e83ec8fea27c1624592fce7dce + patches: + - devider-aarch64.patch # [aarch64] build: - number: 0 + number: 1 run_exports: - {{ pin_subpackage('devider', max_pin="x.x") }} @@ -20,6 +22,8 @@ requirements: - cargo-bundle-licenses - make - cmake >=3.12 + host: + - clangdev >=16,<17 # [linux and aarch64] run: - python - samtools @@ -43,5 +47,7 @@ about: summary: Haplotyping small sequences from heterogeneous long-read sequencing samples with a SNP-encoded positional de Bruijn graphs. extra: + additional-platforms: + - linux-aarch64 recipe-maintainers: - bluenote-1577