mips64r5900el-ps2-elf-gcc-stage1
maintainer tallero
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
MEDIUM
source=() URL on a non-standard host
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
1
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
2
3
# shellcheck disable=SC2034
4
_module="ee"
5
_platform="ps2"
6
_target="mips64r5900el-${_platform}"
7
target="${_target}-elf"
8
_base="toolchain"
9
pkgname=("${target}-gcc-stage1")
10
pkgver="v10.2.0"
11
# pkgver="v11.3.0"
12
_islver="0.21"
13
pkgrel=1
14
_pkgdesc=("The GNU Compiler Collection. Stage 1 for toolchain building (${target}).")
15
pkgdesc="${_pkgdesc[*]}"
16
arch=('x86_64')
17
license=('BSD')
18
_github="https://github.com/ps2dev"
19
_local="ssh://git@127.0.0.1:/home/git"
20
url="${_github}/gcc"
21
makedepends=("${target}-binutils"
22
"libgmp-static"
23
"mpfr-static"
24
"libmpc-static"
25
"zstd-static")
26
provides=("${target}-gcc")
27
optdepends=()
28
_branch="${_module}-${pkgver}"
29
_commit="331453616ac96717cfef82d21c03573c8984f17d"
30
source=("${pkgname}::git+${url}#commit=${_commit}"
31
"https://libisl.sourceforge.io/isl-${_islver}.tar.xz")
32
# source=("${pkgname}::git+${_local}/${_platform}-gcc#commit=${_branch}")
33
sha256sums=('SKIP'
34
'SKIP')
35
36
_n_cpu="$(getconf _NPROCESSORS_ONLN)"
37
_make_opts=(-j "${_n_cpu}")
38
39
cflags=(-static
40
-O2
41
-Wno-implicit-function-declaration)
42
43
ldflags=(${LDFLAGS}
44
-Bstatic
45
-s)
46
47
prepare() {
48
cd "${srcdir}/${pkgname}" || exit
49
rm "isl" || true
50
ln -s "../isl-${_islver}" "isl"
51
}
52
53
# shellcheck disable=SC2154
54
build() {
55
local _target
56
57
CFLAGS=""
58
CXXFLAGS=""
59
CPPFLAGS=""
60
LDFLAGS=""
61
export CFLAGS
62
export CXXFLAGS
63
export CPPFLAGS
64
export LDFLAGS
65
66
local _cflags=(${cflags[@]}
67
-I/usr/include)
68
# -std=gnu++98)
69
70
local _ldflags=(${ldflags[@]})
71
# -ldl)
72
73
local _build_opts=(${_make_opts[@]}
74
CFLAGS="${_cflags[*]}"
75
CPPFLAGS="${_cflags[*]}"
76
# CXXFLAGS="${_cflags[*]}"
77
LDFLAGS="${_ldflags[*]}")
78
79
cd "${srcdir}/${pkgname}"
80
81
for _target in "${target}"; do
82
rm -rf "build-${_target}"
83
mkdir -p "build-${_target}"
84
cd "build-${_target}"
85
local _configure_opts=(--prefix="/usr"
86
--target="${_target}"
87
--host=${CHOST}
88
--build=${CHOST}
89
--enable-languages="c"
90
--with-float=hard
91
--without-headers
92
--without-newlib
93
--disable-libssp
94
--with-isl
95
--disable-multilib
96
--disable-tls)
97
98
"../configure" "${_configure_opts[@]}"
99
100
make "${_build_opts[@]}" all
101
cd ..
102
done
103
}
104
105
# shellcheck disable=SC2154
106
package() {
107
local _target
108
cd "${srcdir}/${pkgname}"
109
for _target in "${target}"; do
110
cd "build-${_target}"
111
make DESTDIR="${pkgdir}" "${_make_opts[@]}" install-strip
112
cd ..
113
done
114
}
115
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |