aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-09-27 22:46:02 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-09-27 19:55:30 -0300
commitdaa1d0f079148b9341264c7890e572865643f88f (patch)
treed43232b9d54840b8be2f9b4cf9e552b8a445e252 /community
parentc1bfe6cc9df51bea11bbcd73642defb1b37ae51f (diff)
downloadaports-daa1d0f079148b9341264c7890e572865643f88f.tar.bz2
aports-daa1d0f079148b9341264c7890e572865643f88f.tar.xz
community/rust: don't use system libgit2 for now
https://github.com/rust-lang/rust/issues/63476
Diffstat (limited to 'community')
-rw-r--r--community/rust/APKBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/community/rust/APKBUILD b/community/rust/APKBUILD
index 3d5ede9e62..ee9063d6f5 100644
--- a/community/rust/APKBUILD
+++ b/community/rust/APKBUILD
@@ -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}
}