bladerf-git

maintainer sab24 · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads FPGA bitfiles and firmware images from nuand.com, the official vendor's domain, which is a plausible and trusted source for this hardware; these are non-executable data files installed to specific locations, so even if compromised, the worst case is device malfunction, not code execution.

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 90%): The package downloads FPGA bitfiles and firmware images from nuand.com, the official vendor's domain, which is a plausible and trusted source for this hardware; these are non-executable data files installed to specific locations, so even if compromised, the worst case is device malfunction, not code execution.

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:32 "https://www.nuand.com/fpga/v$_FPGAver/hostedxA4.rbf"
  • PKGBUILD:33 "https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Kyle Keen <keenerd@gmail.com>
2# Contributor: Dominik Heidler <dheidler@gmail.com>
3
4# it looks like the release model has gotten better
5# keeping it more modular for now though
6
7pkgname=bladerf-git
8_libver=git
9_CLIver=1.5.1
10_FPGAver=0.10.2
11_firmver=2.3.2
12pkgver=2018.12.rc2.r36.g896d2431
13pkgver() {
14 cd "bladeRF"
15 git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
16}
17pkgrel=1
18pkgdesc="Driver, userspace, fpga & firmware for the bladeRF SDR."
19url="https://github.com/Nuand/bladeRF"
20# https://github.com/Nuand/bladeRF/tags
21arch=('x86_64')
22license=('GPL2')
23depends=('libusb')
24makedepends=('cmake' 'help2man' 'doxygen')
25#replaces=('bladerf')
26conflicts=('bladerf')
27provides=('bladerf')
28backup=("etc/bladerf.cfg")
29
30source=(
31 "bladeRF::git+https://github.com/Nuand/bladeRF.git"
32 "https://www.nuand.com/fpga/v$_FPGAver/hostedxA4.rbf"
33 "https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"
34 "https://nuand.com/fpga/v$_FPGAver/hostedx115.rbf"
35 "https://www.nuand.com/fx3/bladeRF_fw_v$_firmver.img")
36
37md5sums=('SKIP'
38 'b3f8b37fccee3eacb85aeb4f9fe89b2b'
39 '4aabf1617901423569f425db93598884'
40 '33641f8a126bef1c0b7e6ba8bedda93f'
41 'c823ea5aa2c25c26bbaf4ab395ac559d')
42
43# bladeRF-cli is bundled with libbladeRF
44# bladeRF-cli can use libtecla (aur)?
45
46prepare() {
47 cd "$srcdir/bladeRF"
48 git submodule update --init --recursive
49
50 # FS#47168
51 #sed -i 's|MODE.*$|TAG+="uaccess"|' host/misc/udev/*.in
52
53 # todo, report warning
54 #sed -i '94i add_definitions(-Wno-error=format-truncation)' host/CMakeLists.txt
55
56 # FS#55326
57 #sed -i '44s/^else/#&/' host/misc/udev/CMakeLists.txt
58}
59
60build() {
61 cd "$srcdir/bladeRF"
62 mkdir -p build
63 cd build
64 CFLAGS+=" -Wno-error=stringop-truncation" cmake \
65 -DCMAKE_BUILD_TYPE=Release \
66 -DINSTALL_UDEV_RULES=ON \
67 -DBLADERF_GROUP=wheel \
68 -DBUILD_DOCUMENTATION=ON \
69 -DCMAKE_INSTALL_LIBDIR:PATH=lib \
70 -Dusb_LIBRARY:FILEPATH=/usr/lib/libusb-1.0.so \
71 -DCMAKE_INSTALL_PREFIX=/usr ../
72 make
73 # ENABLE_FX3_BUILD needs cypress toolchain
74 # really really wants to put files in /usr/lib64
75}
76
77package() {
78 cd "$srcdir/bladeRF/build"
79 make DESTDIR="${pkgdir}" install
80 cd "$srcdir"
81 install -Dm644 "bladeRF_fw_v$_firmver.img" "$pkgdir/usr/share/bladerf/firmware/bladeRF_fw_v$_firmver.img"
82 install -Dm644 hostedx40.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx40.rbf"
83 install -Dm644 hostedx115.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx115.rbf"
84 install -Dm644 hostedxA4.rbf "$pkgdir/usr/share/bladerf/fpga/hostedxA4.rbf"
85 # FS#54105
86 cd "$pkgdir/etc/udev/rules.d/"
87 mv 88-nuand-bladerf1.rules 70-nuand-bladerf1.rules
88 mv 88-nuand-bladerf2.rules 70-nuand-bladerf2.rules
89 mv 88-nuand-bootloader.rules 70-nuand-bootloader.rules
90}
91

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