aboutsummaryrefslogtreecommitdiffstats
path: root/feroxbuster/feroxbuster.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-25 17:52:55 +0200
committerDanilo M. <danix@danix.xyz>2026-06-25 17:52:55 +0200
commit0a82c41cc829b853402876f9d4fcabec4ac42ff1 (patch)
tree78867d4c6b55127be4920bdde372a8445253ca32 /feroxbuster/feroxbuster.SlackBuild
parent1fb8e2b10f2957910080f8c5276f4df3a86c2399 (diff)
downloadslackware-pentesting-suite-0a82c41cc829b853402876f9d4fcabec4ac42ff1.tar.gz
slackware-pentesting-suite-0a82c41cc829b853402876f9d4fcabec4ac42ff1.zip
feroxbuster: build against rust-opt for -stable compatibility
System cargo on Slackware -stable cannot read the v4 Cargo.lock. Add rust-opt to REQUIRES and source its profile script when present so the newer cargo is used; no-op on -current. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'feroxbuster/feroxbuster.SlackBuild')
-rw-r--r--feroxbuster/feroxbuster.SlackBuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/feroxbuster/feroxbuster.SlackBuild b/feroxbuster/feroxbuster.SlackBuild
index 036dc21..fa3e812 100644
--- a/feroxbuster/feroxbuster.SlackBuild
+++ b/feroxbuster/feroxbuster.SlackBuild
@@ -99,6 +99,14 @@ directory = "vendor"
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
+fi
+
# Build release binary fully offline against the vendored crates.
# --locked guarantees Cargo.lock is honored and never rewritten.
export CARGO_HOME="$TMP/$PRGNAM-$VERSION/.cargo"