x86-64-pc-freebsd13-binutils

LOW
maintainer qspqww 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package builds binutils from source using a tarball from a reputable university mirror (USTC), which is a common and reasonable practice; the source is not executed remotely, and the software is built from official GNU project code, making the risk low despite the non-whitelisted host and skipped checksums.

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 binutils from source using a tarball from a reputable university mirror (USTC), which is a common and reasonable practice; the source is not executed remotely, and the software is built from official GNU project code, making the risk low despite the non-whitelisted host and skipped checksums.

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:12 source=(https://mirrors.ustc.edu.cn/gnu/binutils/binutils-$pkgver.tar.bz2)

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Qian Yicheng <qsp2020@outlook.com>
2
3_target=x86_64-pc-freebsd13
4pkgname=x86-64-pc-freebsd13-binutils
5pkgver=2.40
6pkgrel=2
7pkgdesc='A set of programs to assemble and manipulate binary and object files for the FreeBSD target'
8arch=(x86_64)
9url='https://www.gnu.org/software/binutils/'
10license=(GPL)
11depends=(zlib libelf)
12source=(https://mirrors.ustc.edu.cn/gnu/binutils/binutils-$pkgver.tar.bz2)
13sha1sums=('SKIP')
14sha256sums=('SKIP')
15#validpgpkeys=('3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc@redhat.com>
16
17prepare() {
18 cd binutils-$pkgver
19# sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
20}
21
22build() {
23 cd binutils-$pkgver
24
25 if [ "${CARCH}" != "i686" ];
26 then
27 # enabling gold linker at i686 makes the install fail
28 enable_gold=''
29 fi
30
31 ./configure --target=$_target \
32 --with-sysroot=/usr/$_target \
33 --prefix=/usr \
34 --disable-multilib \
35 --with-gnu-as \
36 --with-gnu-ld \
37 --disable-nls \
38 --enable-ld=default \
39 $enable_gold \
40 --enable-plugins \
41 --enable-deterministic-archives
42
43 make -j$(nproc)
44}
45
46check() {
47 cd binutils-$pkgver
48
49 # unset LDFLAGS as testsuite makes assumptions about which ones are active
50 # do not abort on errors - manually check log files
51 make -k LDFLAGS="" check || true
52}
53
54package() {
55 cd binutils-$pkgver
56
57 make DESTDIR="$pkgdir" install
58
59 # Remove file conflicting with host binutils and manpages for MS Windows tools
60 rm "$pkgdir"/usr/share/man/man1/$_target-{dlltool,windres,windmc}*
61 rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so
62 #rm "$pkgdir"/usr/etc/gprofng.rc
63 #rm -r "$pkgdir"/usr/include
64 #rm -r "$pkgdir"/usr/lib/gprofng/
65
66 # Remove info documents that conflict with host version
67 rm -r "$pkgdir"/usr/share/info
68}
69

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion