mips-harvard-os161-binutils
maintainer gerito
· 2 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), which is plausibly the legitimate upstream for this academic toolchain; building from project-owned infrastructure, even on a non-whitelisted host, is normal AUR packaging with low risk.
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), which is plausibly the legitimate upstream for this academic toolchain; building from project-owned infrastructure, even on a non-whitelisted host, is normal AUR packaging with low risk.
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:15
source=(http://os161.eecs.harvard.edu/download/binutils-${_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}-binutils
5
_pkgver=2.24+os161-2.1
6
pkgver=${_pkgver/os161-/os161_}
7
pkgrel=1
8
pkgdesc="A set of programs to assemble and manipulate binary and object files 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')
12
groups=('mips-harvard-os161-toolchain')
13
depends=('glibc>=2.24' 'zlib')
14
options=('staticlibs' '!distcc' '!ccache')
15
source=(http://os161.eecs.harvard.edu/download/binutils-${_pkgver}.tar.gz)
16
md5sums=('89fb5251c8fac189551f30550e6c4d0b')
17
18
prepare() {
19
cd binutils-${_pkgver}
20
21
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
22
23
mkdir ${srcdir}/binutils-build
24
}
25
26
build() {
27
cd binutils-build
28
29
../binutils-${_pkgver}/configure --prefix=/usr \
30
--program-prefix=${_target}- \
31
--with-lib-path=/usr/lib/binutils/${_target} \
32
--with-local-prefix=/usr/lib/${_target} \
33
--with-sysroot=/usr/${_target} \
34
--target=${_target} --host=${CHOST} --build=${CHOST} \
35
--disable-nls --nfp \
36
--disable-shared --disable-threads \
37
--disable-werror
38
39
make configure-host
40
41
make tooldir=/usr
42
}
43
44
check() {
45
cd binutils-build
46
47
# unset LDFLAGS as testsuite makes assumptions about which ones are active
48
# ignore failures in gold testsuite...
49
make -k LDFLAGS="" check || true
50
}
51
52
package() {
53
cd binutils-build
54
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
55
56
# Remove unwanted files
57
rm -rf ${pkgdir}/usr/share
58
rm -f ${pkgdir}/usr/bin/{ar,as,ld,nm,objdump,ranlib,readelf,strip,objcopy}
59
}
60
61
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 |