mips64r5900el-ps2-elf-gcc-stage1
The package builds GCC stage1 from a Git repository on a non-standard host, but it is a known project fork (ps2dev) for a legitimate toolchain; the source is not a prebuilt binary and the risk is limited to supply-chain trust in the fork.
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 package builds GCC stage1 from a Git repository on a non-standard host, but it is a known project fork (ps2dev) for a legitimate toolchain; the source is not a prebuilt binary and the risk is limited to supply-chain trust in the fork.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:31
"https://libisl.sourceforge.io/isl-${_islver}.tar.xz")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# shellcheck disable=SC2034
_module="ee"
_platform="ps2"
_target="mips64r5900el-${_platform}"
target="${_target}-elf"
_base="toolchain"
pkgname=("${target}-gcc-stage1")
pkgver="v10.2.0"
# pkgver="v11.3.0"
_islver="0.21"
pkgrel=1
_pkgdesc=("The GNU Compiler Collection. Stage 1 for toolchain building (${target}).")
pkgdesc="${_pkgdesc[*]}"
arch=('x86_64')
license=('BSD')
_github="https://github.com/ps2dev"
_local="ssh://git@127.0.0.1:/home/git"
url="${_github}/gcc"
makedepends=("${target}-binutils"
"libgmp-static"
"mpfr-static"
"libmpc-static"
"zstd-static")
provides=("${target}-gcc")
optdepends=()
_branch="${_module}-${pkgver}"
_commit="331453616ac96717cfef82d21c03573c8984f17d"
source=("${pkgname}::git+${url}#commit=${_commit}"
"https://libisl.sourceforge.io/isl-${_islver}.tar.xz")
# source=("${pkgname}::git+${_local}/${_platform}-gcc#commit=${_branch}")
sha256sums=('SKIP'
'SKIP')
_n_cpu="$(getconf _NPROCESSORS_ONLN)"
_make_opts=(-j "${_n_cpu}")
cflags=(-static
-O2
-Wno-implicit-function-declaration)
ldflags=(${LDFLAGS}
-Bstatic
-s)
prepare() {
cd "${srcdir}/${pkgname}" || exit
rm "isl" || true
ln -s "../isl-${_islver}" "isl"
}
# shellcheck disable=SC2154
build() {
local _target
CFLAGS=""
CXXFLAGS=""
CPPFLAGS=""
LDFLAGS=""
export CFLAGS
export CXXFLAGS
export CPPFLAGS
export LDFLAGS
local _cflags=(${cflags[@]}
-I/usr/include)
# -std=gnu++98)
local _ldflags=(${ldflags[@]})
# -ldl)
local _build_opts=(${_make_opts[@]}
CFLAGS="${_cflags[*]}"
CPPFLAGS="${_cflags[*]}"
# CXXFLAGS="${_cflags[*]}"
LDFLAGS="${_ldflags[*]}")
cd "${srcdir}/${pkgname}"
for _target in "${target}"; do
rm -rf "build-${_target}"
mkdir -p "build-${_target}"
cd "build-${_target}"
local _configure_opts=(--prefix="/usr"
--target="${_target}"
--host=${CHOST}
--build=${CHOST}
--enable-languages="c"
--with-float=hard
--without-headers
--without-newlib
--disable-libssp
--with-isl
--disable-multilib
--disable-tls)
"../configure" "${_configure_opts[@]}"
make "${_build_opts[@]}" all
cd ..
done
}
# shellcheck disable=SC2154
package() {
local _target
cd "${srcdir}/${pkgname}"
for _target in "${target}"; do
cd "build-${_target}"
make DESTDIR="${pkgdir}" "${_make_opts[@]}" install-strip
cd ..
done
}
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 |