summaryrefslogtreecommitdiffstats
path: root/source/d/rust/rust.SlackBuild
diff options
context:
space:
mode:
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
commit0e4c181655a6847ee8308178a62decf591db187e (patch)
tree9a9ee00264b0c34888bb5d5e33132a9b2dea04da /source/d/rust/rust.SlackBuild
parent08605e45c377c78305d95a895e1080a864d5ec90 (diff)
downloadcurrent-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 'source/d/rust/rust.SlackBuild')
-rwxr-xr-xsource/d/rust/rust.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/d/rust/rust.SlackBuild b/source/d/rust/rust.SlackBuild
index 8d7f32b15..b241b2e29 100755
--- a/source/d/rust/rust.SlackBuild
+++ b/source/d/rust/rust.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=rust
SRCNAM="${PKGNAM}c"
VERSION=${VERSION:-1.70.0}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
# 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