diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-25 17:52:55 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-25 17:52:55 +0200 |
| commit | 0a82c41cc829b853402876f9d4fcabec4ac42ff1 (patch) | |
| tree | 78867d4c6b55127be4920bdde372a8445253ca32 | |
| parent | 1fb8e2b10f2957910080f8c5276f4df3a86c2399 (diff) | |
| download | slackware-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>
| -rw-r--r-- | feroxbuster/README | 5 | ||||
| -rw-r--r-- | feroxbuster/feroxbuster.SlackBuild | 8 | ||||
| -rw-r--r-- | feroxbuster/feroxbuster.info | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/feroxbuster/README b/feroxbuster/README index 7c1956c..99ff2ed 100644 --- a/feroxbuster/README +++ b/feroxbuster/README @@ -5,6 +5,11 @@ resources) that a web application does not reference but still serves. 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. + Because SlackBuilds.org build hosts have no network access at build time, this script does not let cargo fetch crates from the network. Instead, a prebuilt vendored-crates tarball 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" diff --git a/feroxbuster/feroxbuster.info b/feroxbuster/feroxbuster.info index c7be9a5..c13fdb1 100644 --- a/feroxbuster/feroxbuster.info +++ b/feroxbuster/feroxbuster.info @@ -7,6 +7,6 @@ DOWNLOAD_x86_64="https://github.com/epi052/feroxbuster/archive/v2.13.1/feroxbust https://packages.danix.xyz/sbo/feroxbuster/feroxbuster-2.13.1-vendor.tar.xz" MD5SUM_x86_64="dc0bfa007f22815875b8094d954c4f60 \ 3cc65fe23ae6abe30e3299e48f99dccc" -REQUIRES="" +REQUIRES="rust-opt" MAINTAINER="danix" EMAIL="danix@danix.xyz" |
