ps3-spu-gcc
The package downloads source code from official GNU and Sourceware project hosts to build a cross-compiling GCC toolchain; all sources are standard project infrastructure, and the build process is normal for such toolchains, despite one URL being flagged as non-standard due to domain variation.
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 downloads source code from official GNU and Sourceware project hosts to build a cross-compiling GCC toolchain; all sources are standard project infrastructure, and the build process is normal for such toolchains, despite one URL being flagged as non-standard due to domain variation.
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:24
"http://sourceware.org/pub/newlib/newlib-${_newlib_pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Darjan Krijan [https://disc-kuraudo.eu]
_target="spu"
_newlib_pkgver="1.20.0"
_gmp_pkgver="6.1.0"
_isl_pkgver="0.18"
_mpc_pkgver="1.0.3"
_mpfr_pkgver="3.1.4"
_pkgname="gcc"
pkgname="ps3-${_target}-${_pkgname}"
pkgver="9.5.0"
pkgrel=3
pkgdesc="GCC for cross-compiling to ${_target} (PS3 GameOS)"
arch=(x86_64 aarch64 powerpc64le powerpc64 powerpc riscv64)
url='https://gcc.gnu.org/'
license=(GPL LGPL)
makedepends=(patch python)
checkdepends=(dejagnu expect inetutils python-pytest tcl)
depends=(ps3-env ps3-spu-binutils)
options=(!emptydirs !strip staticlibs !lto)
source=(
"https://ftp.gnu.org/gnu/${_pkgname}/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}.tar.xz"
"${_pkgname}-${pkgver}-ps3-${_target}.patch"
"http://sourceware.org/pub/newlib/newlib-${_newlib_pkgver}.tar.gz"
"newlib-${_newlib_pkgver}-ps3-${_target}.patch"
"http://ftp.gnu.org/gnu/gmp/gmp-${_gmp_pkgver}.tar.bz2"
"http://gcc.gnu.org/pub/gcc/infrastructure/isl-${_isl_pkgver}.tar.bz2"
"http://ftp.gnu.org/gnu/mpc/mpc-${_mpc_pkgver}.tar.gz"
"http://ftp.gnu.org/gnu/mpfr/mpfr-${_mpfr_pkgver}.tar.bz2"
)
sha256sums=(
'27769f64ef1d4cd5e2be8682c0c93f9887983e6cfd1a927ce5a0a2915a95cf8f'
'86d3dca49e0a8cf0d0b56619c19da2047c5b6bda939e4856f4de78e4866fd55b'
'c644b2847244278c57bec2ddda69d8fab5a7c767f3b9af69aa7aa3da823ff692'
'9ffcdfc74871b267d53b66e525162467ce248d89b77506bb8db2409f3d0b51ae'
'498449a994efeba527885c10405993427995d3f86b8768d8cdf8d9dd7c6b73e8'
'6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
'617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3'
'd3103a80cdad2407ed581f3618c4bed04e0c92d1cf771a65ead662cc397f7775'
)
source /opt/ps3dev/ps3toolchain.sh
_prefix="${PS3DEV}/${_target}"
prepare() {
patch -p1 -d "newlib-${_newlib_pkgver}" < "${srcdir}/newlib-${_newlib_pkgver}-ps3-${_target}.patch"
cd "${_pkgname}-${pkgver}"
patch -p1 < "${srcdir}/${_pkgname}-${pkgver}-ps3-${_target}.patch"
ln -s "${srcdir}/newlib-${_newlib_pkgver}/newlib" .
ln -s "${srcdir}/newlib-${_newlib_pkgver}/libgloss" .
ln -s "${srcdir}/gmp-${_gmp_pkgver}.tar.bz2" .
ln -s "${srcdir}/isl-${_isl_pkgver}.tar.bz2" .
ln -s "${srcdir}/mpc-${_mpc_pkgver}.tar.gz" .
ln -s "${srcdir}/mpfr-${_mpfr_pkgver}.tar.bz2" .
}
build() {
cd "${_pkgname}-${pkgver}"
# symlinked in prepare(), just unpack
./contrib/download_prerequisites
mkdir -p "build-${_target}"
cd "build-${_target}"
unset CFLAGS CXXFLAGS LDFLAGS
local _configure_flags=(
--prefix="${_prefix}"
--target="${_target}"
--with-newlib
--with-pic
#--enable-languages="c,c++"
--enable-languages="c"
--enable-lto
--enable-threads
--enable-newlib-multithread
--enable-newlib-hw-fp
--enable-obsolete
--disable-dependency-tracking
--disable-libcc1
--disable-libssp
--disable-multilib
--disable-nls
--disable-shared
--disable-win32-registry
)
../configure "${_configure_flags[@]}"
make
}
check() {
cd "${_pkgname}-${pkgver}/build-${_target}"
LDFLAGS="" make --keep-going check |& tee -a "ps3-${_target}-${_pkgname}-check.log" || true
}
package() {
cd "${_pkgname}-${pkgver}/build-${_target}"
make DESTDIR="${pkgdir}" install -j1
if [ -f "ps3-${_target}-${_pkgname}-check.log" ]; then
cp "ps3-${_target}-${_pkgname}-check.log" "${pkgdir}/${_prefix}/"
fi
rm -f "${pkgdir}/${_prefix}/share/info/dir"
}
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 |