x86-64-pc-freebsd13-binutils

maintainer qspqww · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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

Report a package

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

0 / 4000
Your suggestion