summaryrefslogtreecommitdiffstats
path: root/source/d/rust
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2020-09-23 01:04:29 +0000
committer Eric Hameleers <alien@slackware.com>2020-09-23 08:59:34 +0200
commit3474291f09f02b13b05a3120bfc7a206871a8ef4 (patch)
treea0c23b9a2d80df04a68e2466659a8f2a9fef03a2 /source/d/rust
parent7cff5aa980ec308f13be81390a7605bd60d508c1 (diff)
downloadcurrent-3474291f09f02b13b05a3120bfc7a206871a8ef4.tar.gz
current-3474291f09f02b13b05a3120bfc7a206871a8ef4.tar.xz
Wed Sep 23 01:04:29 UTC 202020200923010429
a/openssl-solibs-1.1.1h-x86_64-1.txz: Upgraded. ap/sudo-1.9.3-x86_64-1.txz: Upgraded. ap/vim-8.2.1728-x86_64-1.txz: Upgraded. d/cmake-3.18.3-x86_64-1.txz: Upgraded. l/jasper-2.0.21-x86_64-1.txz: Upgraded. n/openssl-1.1.1h-x86_64-1.txz: Upgraded. n/samba-4.13.0-x86_64-1.txz: Upgraded. xap/seamonkey-2.53.4-x86_64-1.txz: Upgraded. This update contains security fixes and improvements. For more information, see: https://www.seamonkey-project.org/releases/seamonkey2.53.4 (* Security fix *) xap/vim-gvim-8.2.1728-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/d/rust')
-rwxr-xr-xsource/d/rust/rust.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/d/rust/rust.SlackBuild b/source/d/rust/rust.SlackBuild
index 22e5ccad6..9d0160f04 100755
--- a/source/d/rust/rust.SlackBuild
+++ b/source/d/rust/rust.SlackBuild
@@ -65,9 +65,11 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-# if you already have rust and cargo installed, you can bootstrap from the
-# previous version.
-if [ "$LOCAL_BOOTSTRAP" = "" ] && [ -x /usr/bin/cargo ] && [ -x /usr/bin/rustc ] ; then
+# If the bootstrap binaries are present, use those. Otherwise bootstrap from
+# installed compiler.
+if /bin/ls *-unknown-linux-gnu.tar.gz 1> /dev/null 2> /dev/null ; then
+ LOCAL_BOOTSTRAP=no
+else
LOCAL_BOOTSTRAP=yes
fi