diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2023-11-30 21:21:55 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2023-11-30 23:10:46 +0100 |
commit | 0e4c181655a6847ee8308178a62decf591db187e (patch) | |
tree | 9a9ee00264b0c34888bb5d5e33132a9b2dea04da /testing/source/rust/rust.SlackBuild | |
parent | 08605e45c377c78305d95a895e1080a864d5ec90 (diff) | |
download | current-0e4c181655a6847ee8308178a62decf591db187e.tar.gz current-0e4c181655a6847ee8308178a62decf591db187e.tar.xz |
Thu Nov 30 21:21:55 UTC 202320231130212155
d/perl-5.38.2-x86_64-1.txz: Upgraded.
d/rust-1.70.0-x86_64-4.txz: Rebuilt.
Fixed path to the rust libraries in rust-analyzer. Thanks to Heinz Wiesinger.
kde/digikam-8.2.0-x86_64-1.txz: Upgraded.
kde/wcslib-8.2.2-x86_64-1.txz: Upgraded.
l/gdbm-1.23-x86_64-2.txz: Rebuilt.
Build with --enable-libgdbm-compat since Python wants this.
n/c-ares-1.23.0-x86_64-1.txz: Upgraded.
x/mesa-23.3.0-x86_64-1.txz: Upgraded.
xfce/xfce4-power-manager-4.18.3-x86_64-1.txz: Upgraded.
xfce/xfce4-settings-4.18.4-x86_64-1.txz: Upgraded.
testing/packages/rust-1.74.0-x86_64-2.txz: Rebuilt.
Fixed path to the rust libraries in rust-analyzer. Thanks to Heinz Wiesinger.
Diffstat (limited to '')
-rwxr-xr-x | testing/source/rust/rust.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/source/rust/rust.SlackBuild b/testing/source/rust/rust.SlackBuild index f156bdadd..b5eb5b792 100755 --- a/testing/source/rust/rust.SlackBuild +++ b/testing/source/rust/rust.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=rust SRCNAM="${PKGNAM}c" VERSION=${VERSION:-1.74.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} # Set this to YES to build with the system LLVM, or NO to use the bundled LLVM. # YES is probably better (when it works...) @@ -230,6 +230,13 @@ elif [ "$BARCH" = "i686" ] ; then fi fi +# Fix path to the rust libraries in rust-analyzer: +if [ -r src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs ]; then + if [ ! "$LIBDIRSUFFIX" = "" ]; then + sed -i "s,\"lib/rustlib,\"lib${LIBDIRSUFFIX}/rustlib,g" src/tools/rust-analyzer/crates/project-model/src/sysroot.rs + fi +fi + # Build and install: python3 ./x.py build || exit 1 DESTDIR=$PKG python3 x.py install || exit 1 |