summaryrefslogtreecommitdiffstats
path: root/testing/source/rust/rust.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-09-09 18:05:16 +0000
committer Eric Hameleers <alien@slackware.com>2023-09-09 20:30:33 +0200
commit69e2de1890b1fb757b5e8228f04a0ef9722ca55c (patch)
tree5cbd08480327dbc9a22460b508ffb058c2ecb259 /testing/source/rust/rust.SlackBuild
parentb6b0663c2b4f8ba0150fcbb958e667e337ee3596 (diff)
downloadcurrent-69e2de1890b1fb757b5e8228f04a0ef9722ca55c.tar.gz
current-69e2de1890b1fb757b5e8228f04a0ef9722ca55c.tar.xz
Sat Sep 9 18:05:16 UTC 202320230909180516
a/mcelog-195-x86_64-1.txz: Upgraded. d/rust-1.70.0-x86_64-2.txz: Rebuilt. Fixed path in rust-lldb. Thanks to gildbg. l/glib2-2.78.0-x86_64-1.txz: Upgraded. l/gobject-introspection-1.78.0-x86_64-1.txz: Upgraded. l/harfbuzz-8.2.0-x86_64-1.txz: Upgraded. l/nodejs-20.6.1-x86_64-1.txz: Upgraded. n/mutt-2.2.12-x86_64-1.txz: Upgraded. x/font-util-1.4.1-x86_64-1.txz: Upgraded. testing/packages/rust-1.72.0-x86_64-2.txz: Rebuilt. Fixed path in rust-lldb. Thanks to gildbg.
Diffstat (limited to '')
-rwxr-xr-xtesting/source/rust/rust.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/source/rust/rust.SlackBuild b/testing/source/rust/rust.SlackBuild
index ee00474c7..eeea4eef4 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.72.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...)
@@ -234,6 +234,13 @@ fi
python3 ./x.py build || exit 1
DESTDIR=$PKG python3 x.py install || exit 1
+# Fix path to lldb_commands:
+if [ -x $PKG/usr/bin/rust-lldb ]; then
+ if [ ! "$LIBDIRSUFFIX" = "" ]; then
+ sed -i "s,/lib/rustlib/,/lib$LIBDIRSUFFIX/rustlib/,g" $PKG/usr/bin/rust-lldb
+ fi
+fi
+
# Eh, none of this is all that big. Might as well leave it around as a
# reference.
#rm -f $PKG/usr/lib$LIBDIRSUFFIX/rustlib/components