mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
cargo: fix build
build fails on musl with more recent versions of the libc crate
This commit is contained in:
parent
7c7225f528
commit
b68db8e7f6
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'cargo'
|
# Template file for 'cargo'
|
||||||
pkgname=cargo
|
pkgname=cargo
|
||||||
version=0.36.0
|
version=0.36.0
|
||||||
revision=1
|
revision=2
|
||||||
build_helper=rust
|
build_helper=rust
|
||||||
hostmakedepends="rust python curl cmake pkg-config"
|
hostmakedepends="rust python curl cmake pkg-config"
|
||||||
makedepends="libcurl-devel libgit2-devel"
|
makedepends="libcurl-devel libgit2-devel"
|
||||||
|
@ -100,6 +100,8 @@ do_build() {
|
||||||
cargo="./cargo"
|
cargo="./cargo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$cargo update
|
||||||
|
$cargo update --package libc --precise 0.2.55
|
||||||
$cargo build --release $(vopt_if static --features="all-static")
|
$cargo build --release $(vopt_if static --features="all-static")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue