mips-harvard-os161-gcc48
maintainer gerito
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a tarball from the official project domain (os161.eecs.harvard.edu) used to build a cross-compiler for an academic course;虽 host not whitelisted, it is plausibly official, and building from source is normal AUR practice.
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 source is a tarball from the official project domain (os161.eecs.harvard.edu) used to build a cross-compiler for an academic course;虽 host not whitelisted, it is plausibly official, and building from source is normal AUR practice.
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:18
source=(http://os161.eecs.harvard.edu/download/gcc-${_pkgver}.tar.gz
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Geronimo Bareiro <gero dot bare at gmail dot com>
2
3
_target="mips-harvard-os161"
4
pkgname=${_target}-gcc48
5
_pkgver=4.8.3+os161-2.1
6
pkgver=${_pkgver/os161-/os161_}
7
pkgrel=1
8
pkgdesc="The GNU Compiler Collection - cross compiler for ${_target} arquitecture. This is part of toolset for the course os161 from Harvard."
9
arch=(i686 x86_64)
10
url="http://os161.eecs.harvard.edu/"
11
license=('GPL' 'LGPL')
12
groups=('mips-harvard-os161-toolchain')
13
depends=('mips-harvard-os161-binutils>=2.24' 'gmp' 'mpfr' 'libmpc')
14
makedepends=('flex' 'bison')
15
provides=('mips-harvard-os161-gcc')
16
conflicts=('mips-harvard-os161-gcc')
17
options=(staticlibs !libtool !emptydirs !strip zipman docs)
18
source=(http://os161.eecs.harvard.edu/download/gcc-${_pkgver}.tar.gz
19
gcc.patch)
20
md5sums=('a81f7f6fdfa319723efaf444088fd6d7'
21
'SKIP')
22
23
prepare() {
24
cd gcc-${_pkgver}
25
26
patch -p1 -i ${srcdir}/gcc.patch
27
mkdir ${srcdir}/gcc-build
28
}
29
30
build() {
31
cd gcc-build
32
33
export CFLAGS="-O2"
34
export CXXFLAGS="-O2"
35
unset CPPFLAGS
36
37
../gcc-${_pkgver}/configure --prefix=/usr \
38
--program-prefix=${_target}- \
39
--with-local-prefix=/usr/lib/${_target} \
40
--target=${_target} --host=${CHOST} --build=${CHOST} \
41
--with-build-sysroot=/usr/${_target} \
42
--with-as=/usr/bin/${_target}-as \
43
--with-ld=/usr/bin/${_target}-ld \
44
--enable-languages=c,lto \
45
--disable-nls --nfp \
46
--disable-shared --disable-threads \
47
--disable-libmudflap --disable-libssp \
48
--disable-libstdcxx \
49
--disable-werror
50
51
make
52
}
53
54
package() {
55
cd ${srcdir}/gcc-build
56
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
57
58
# Delete the things we don't need
59
rm -rf ${pkgdir}/usr/share
60
# libiberty.a conflicts with host version
61
rm -f $pkgdir/usr/lib/libiberty.a
62
}
63
64
# vim: set ts=2 sw=2 ft=sh et:
65
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 |