diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-25 19:39:14 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-25 19:39:14 +0200 |
| commit | c9d1296ec6cde63bc4b818901cc2e0a85abbf8bf (patch) | |
| tree | a0dfa09d79b7419cb303f2b7ff3347bf6dd1bef3 | |
| parent | 0a82c41cc829b853402876f9d4fcabec4ac42ff1 (diff) | |
| download | slackware-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>
| -rw-r--r-- | feroxbuster/README | 3 | ||||
| -rw-r--r-- | feroxbuster/feroxbuster.SlackBuild | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/feroxbuster/README b/feroxbuster/README index 99ff2ed..abfd92a 100644 --- a/feroxbuster/README +++ b/feroxbuster/README @@ -8,7 +8,8 @@ This package is x86_64 only. It builds against rust-opt so it works on Slackware -stable, whose system cargo is too old to read the version 4 Cargo.lock. On -current the system rust is new enough; rust-opt is still listed as a dependency -for a uniform build but its profile script is simply absent there. +for a uniform build but its /opt/rust/bin directory is simply absent +there. Because SlackBuilds.org build hosts have no network access at build time, this script does not let cargo fetch crates from the network. 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. |
