summaryrefslogtreecommitdiffstats
path: root/source/d/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 /source/d/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 '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 5e86d335f..c8424b37b 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:-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