Skip to content
Snippets Groups Projects
Commit 2ce3026a authored by alice's avatar alice
Browse files

community/rust: simplify

parent d33477f4
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ pkgname=rust
pkgver=1.69.0
_llvmver=16
_bootver=1.68.0
pkgrel=9
pkgrel=10
pkgdesc="The Rust Programming Language"
url="https://www.rust-lang.org/"
arch="all"
......@@ -114,19 +114,14 @@ builddir="$srcdir/rustc-$pkgver-src"
# - CVE-2019-16760
if [ -z "$BOOTSTRAP" ]; then
case "$CARCH" in
s390x) ;;
*)
makedepends_build="
$makedepends_build
patchelf
"
makedepends_host="
$makedepends_host
scudo-malloc
"
;;
esac
makedepends_build="
$makedepends_build
patchelf
"
makedepends_host="
$makedepends_host
scudo-malloc
"
fi
# We have to add new arches in multiple steps:
......@@ -323,17 +318,12 @@ package() {
find "$pkgdir"/usr/lib/rustlib -type f -perm -700 -exec chmod 755 {} \+
if [ -z "$BOOTSTRAP" ]; then
case "$CARCH" in
s390x) ;;
*)
# link scudo to tools by default on supported arches
# this is roughly 20+% faster with no downside
patchelf --add-needed libscudo.so \
"$pkgdir"/usr/bin/cargo \
"$pkgdir"/usr/bin/rustc \
"$pkgdir"/usr/bin/rustdoc
;;
esac
# link scudo to tools by default on supported arches
# this is roughly 20+% faster with no downside
patchelf --add-needed libscudo.so \
"$pkgdir"/usr/bin/cargo \
"$pkgdir"/usr/bin/rustc \
"$pkgdir"/usr/bin/rustdoc
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment