aboutsummaryrefslogtreecommitdiffstats
path: root/feroxbuster/feroxbuster.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-25 19:39:14 +0200
committerDanilo M. <danix@danix.xyz>2026-06-25 19:39:14 +0200
commitc9d1296ec6cde63bc4b818901cc2e0a85abbf8bf (patch)
treea0dfa09d79b7419cb303f2b7ff3347bf6dd1bef3 /feroxbuster/feroxbuster.SlackBuild
parent0a82c41cc829b853402876f9d4fcabec4ac42ff1 (diff)
downloadslackware-pentesting-suite-c9d1296ec6cde63bc4b818901cc2e0a85abbf8bf.tar.gz
slackware-pentesting-suite-c9d1296ec6cde63bc4b818901cc2e0a85abbf8bf.zip
feroxbuster: put /opt/rust/bin on PATH instead of sourcing profile script
rust-opt installs its toolchain under /opt/rust/bin and ships no /etc/profile.d script, so the previous conditional source was a no-op and -stable kept falling back to the old system cargo. Prepend /opt/rust/bin to PATH directly when present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'feroxbuster/feroxbuster.SlackBuild')
-rw-r--r--feroxbuster/feroxbuster.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/feroxbuster/feroxbuster.SlackBuild b/feroxbuster/feroxbuster.SlackBuild
index fa3e812..b6e0134 100644
--- a/feroxbuster/feroxbuster.SlackBuild
+++ b/feroxbuster/feroxbuster.SlackBuild
@@ -100,11 +100,12 @@ offline = true
EOF
# On Slackware -stable the system cargo is too old to read the v4
-# Cargo.lock, so we build against rust-opt (installs under /opt). Source
-# its profile script to put the newer cargo first on PATH. On -current
-# the system rust is new enough and this file simply won't exist.
-if [ -r /etc/profile.d/rust-opt.sh ]; then
- . /etc/profile.d/rust-opt.sh
+# Cargo.lock, so we build against rust-opt, which installs its toolchain
+# under /opt/rust/bin (it ships no profile.d script). Put it first on
+# PATH when present. On -current the system rust is new enough and this
+# directory simply won't exist.
+if [ -x /opt/rust/bin/cargo ]; then
+ export PATH="/opt/rust/bin:$PATH"
fi
# Build release binary fully offline against the vendored crates.