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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |