Commit daa1d0f0 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Leo
Browse files

community/rust: don't use system libgit2 for now

https://github.com/rust-lang/rust/issues/63476
parent c1bfe6cc
......@@ -7,7 +7,7 @@ pkgname=rust
pkgver=1.38.0
_llvmver=8
_bootver=1.37.0
pkgrel=0
pkgrel=1
pkgdesc="The Rust Programming Language"
url="https://www.rust-lang.org"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"
......@@ -110,8 +110,10 @@ _sharedir="usr/share/rust"
ldpath="/$_rlibdir"
export RUST_BACKTRACE=1
# Don't use system libgit2 for now...
# https://github.com/rust-lang/rust/issues/63476
# Convince libgit2-sys to use the distro libgit2.
export LIBGIT2_SYS_USE_PKG_CONFIG=1
#export LIBGIT2_SYS_USE_PKG_CONFIG=1
# rust checksums files in vendor/, but we have to patch a few files...
_clear_vendor_checksums() {
......@@ -157,6 +159,10 @@ build() {
--set="target.$_build.musl-root=/usr" \
--set="target.$_build.crt-static=false"
# Allow warnings instead of just aborting the build
sed 's/#deny-warnings = .*/deny-warnings = false/' -i config.toml
sed 's|deny(warnings,|deny(|' -i src/bootstrap/lib.rs
./x.py build --jobs ${JOBS:-2}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment