cargo: fix build

build fails on musl with more recent versions of the libc crate
This commit is contained in:
Johannes 2019-06-03 14:31:46 +02:00 committed by Johannes
parent 7c7225f528
commit b68db8e7f6

View file

@ -1,7 +1,7 @@
# Template file for 'cargo'
pkgname=cargo
version=0.36.0
revision=1
revision=2
build_helper=rust
hostmakedepends="rust python curl cmake pkg-config"
makedepends="libcurl-devel libgit2-devel"
@ -100,6 +100,8 @@ do_build() {
cargo="./cargo"
fi
$cargo update
$cargo update --package libc --precise 0.2.55
$cargo build --release $(vopt_if static --features="all-static")
}