wuffs-lang
wuffs
scanned 2026-09-17 00:27:14.276658
The flagged 'external install via go' refers to 'go install' of the project's own cmd/... tools from the fetched source, which is a normal part of building Go projects and not a supply-chain risk.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The flagged 'external install via go' refers to 'go install' of the project's own cmd/... tools from the fetched source, which is a normal part of building Go projects and not a supply-chain risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:60
go install github.com/google/wuffs/cmd/...
PKGBUILD
1 offending line(s) highlightedpkgbase="wuffs"
pkgname=(
"wuffs-lib"
#"wuffs-examples"
"wuffs-fuzzers"
"wuffs-lang"
"wuffs-docs"
"wuffs-license"
)
pkgdesc="A memory-safe programming language, and a standard library, for Wrangling Untrusted File Formats Safely. Wrangling includes parsing, decoding and encoding. Example file formats include images, audio, video, fonts and compressed archives."
pkgver=0.3.5
pkgrel=1
arch=(
'x86_64'
)
url="https://github.com/google/wuffs"
license=(
"MIT"
"Apache-2.0"
)
makedepends=(
'gcc'
'gcc-libs'
'glibc'
'git'
'go'
"libxcb"
"lz4"
"sdl2"
"sdl2_image"
"xcb-util-image"
"xcb-util-renderutil"
"zlib"
"zstd"
"clang"
)
checkdepends=()
source=(
"source::git+${url}.git#tag=v${pkgver}"
)
sha256sums=('b9b5e80b0cd003da7fac2fa9cb4f7bf76806f9a88f867cc9a9eb2996514fce36')
build() {
cd source
export GOPATH="${srcdir}/go"
export GOBIN="${GOPATH}/bin"
export PATH="/usr/bin:${GOPATH}/bin"
sed -i 's|go test|#go test|g' ./build-all.sh
sed -i 's|wuffs bench|#wuffs bench|g' ./build-all.sh
#./build-all.sh
CC=${CC:-gcc}
CXX=${CXX:-g++}
go install github.com/google/wuffs/cmd/...
wuffs gen
WARNING_FLAGS="-Wall -Werror -Wpedantic -Wcast-qual -Wcast-align -Wpointer-arith -Wfloat-equal -Wundef -Wvla -Wconversion -Wshadow -Wredundant-decls -Wunused-const-variable"
C_WARNING_FLAGS="$WARNING_FLAGS -Wstrict-prototypes -Wold-style-definition"
CXX_WARNING_FLAGS="$WARNING_FLAGS"
wuffs genlib -skipgen
wuffs test -skipgen -mimic
./build-fuzz.sh
}
package_wuffs-lib() {
cd source
pkgdesc='A memory-safe standard library for Wrangling Untrusted File Formats Safely. Wrangling includes parsing, decoding and encoding. Example file formats include images, audio, video, fonts and compressed archives.'
depends=(
"glibc"
"wuffs-license"
)
provides=(
"libwuffs.so"
"libwuffs.a"
)
optdepends=(
"python-pywuffs: Python bindings"
"wuffs-docs: Docs"
)
install -vDm644 \
-t "${pkgdir}/usr/include" \
release/c/*.c gen/c/*.c
install -vDm644 \
-t "${pkgdir}/usr/include/wuffs" \
release/c/*.c gen/c/*.c
install -vDm755 \
-t "${pkgdir}/usr/lib" \
gen/lib/c/gcc-dynamic/libwuffs.so
install -vDm644 -t \
"${pkgdir}/usr/lib" \
gen/lib/c/gcc-static/libwuffs.a
install -vDm644 -t \
"${pkgdir}/usr/share/doc/wuffs-lib" \
release/c/README.md
install -vdm644 "${pkgdir}/usr/share/licenses"
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-lib
}
package_wuffs-examples() {
pkgdesc='Example programmes for wuffs, a memory-safe programming language and standard library for Wrangling Untrusted File Formats Safely.'
depends=(
"gcc-libs"
"glibc"
"sdl2"
"sdl2_image"
"xcb-util-image"
"xcb-util-renderutil"
"wuffs-license"
)
cd source
declare _bins
_bins=`ls -1 gen/bin/example-*`
for _bin in ${_bins}; do
_name="$(basename "${_bin}" | sed -E -e 's|^example-||')"
install -vDm755 \
"${_bin}" \
"${pkgdir}/usr/bin"/wuffs-"${_name}"
done
install -vDm644 -t \
"${pkgdir}/usr/share/doc/wuffs-examples" \
example/README.md
install -vdm644 "${pkgdir}/usr/share/licenses"
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-examples
}
package_wuffs-fuzzers() {
pkgdesc='Fuzzer programmes for wuffs, a memory-safe programming language and standard library for Wrangling Untrusted File Formats Safely.'
depends=(
"gcc-libs"
"glibc"
"wuffs-license"
)
cd source
declare _bins
_bins=`ls -1 gen/bin/fuzz-*`
for _bin in ${_bins}; do
_name="$(basename "${_bin}")"
install -vDm755 \
"${_bin}" \
"${pkgdir}/usr/bin"/wuffs-"${_name}"
done
install -vDm644 \
-t "${pkgdir}/usr/share/doc/wuffs-fuzzers" \
fuzz/c/std/README.md
install -vdm644 "${pkgdir}/usr/share/licenses"
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-fuzzers
}
package_wuffs-lang() {
pkgdesc='A memory-safe programming language for Wrangling Untrusted File Formats Safely. Wrangling includes parsing, decoding and encoding. Example file formats include images, audio, video, fonts and compressed archives.'
depends=(
"wuffs-license"
# ractool deps
glibc
liblz4.so
libz.so
libzstd.so
)
provides=(
"dumbindent=${pkgver}"
#"handsum=${pkgver}"
"ractool=${pkgver}"
"wuffs=${pkgver}"
"wuffs-c=${pkgver}"
"wuffsfmt=${pkgver}"
)
optdepends=(
"wuffs-docs: Docs"
)
cd source
export GOPATH="${srcdir}/go"
export GOBIN="${GOPATH}/bin"
install -Dvm755 \
-t "${pkgdir}/usr/bin" \
"${GOBIN}"/{dumbindent,ractool,wuffs,wuffs-c,wuffsfmt}
install -vdm644 \
"${pkgdir}/usr/share/licenses"
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-lang
}
package_wuffs-docs() {
pkgdesc='Documentation for "Wuffs the Library" and "Wuffs the Language", as well as the corresponding example binaries.'
depends=("wuffs-license")
arch=('any')
cd source
install -Dvm644 \
-t "${pkgdir}/usr/share/doc/wuffs" \
AUTHORS \
*.md \
CONTRIBUTORS
cp -r \
doc \
"${pkgdir}/usr/share/doc/wuffs"/
install -vdm644 \
"${pkgdir}/usr/share/licenses"
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-docs
}
package_wuffs-license() {
pkgdesc='Common license for "Wuffs the Library" and "Wuffs the Language", as well as the corresponding example binaries.'
depends=()
arch=('any')
cd source
install -vDm644 \
-t "${pkgdir}/usr/share/licenses/wuffs" \
LICENSE*
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-license
ln -srf \
"${pkgdir}/usr/share/licenses/wuffs" \
"${pkgdir}/usr/share/licenses"/wuffs-license
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |