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
7
pkgname=bladerf-git
8
_libver=git
9
_CLIver=1.5.1
10
_FPGAver=0.10.2
11
_firmver=2.3.2
12
pkgver=2018.12.rc2.r36.g896d2431
13
pkgver() {
14
cd "bladeRF"
15
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
16
}
17
pkgrel=1
18
pkgdesc="Driver, userspace, fpga & firmware for the bladeRF SDR."
19
url="https://github.com/Nuand/bladeRF"
20
# https://github.com/Nuand/bladeRF/tags
21
arch=('x86_64')
22
license=('GPL2')
23
depends=('libusb')
24
makedepends=('cmake' 'help2man' 'doxygen')
25
#replaces=('bladerf')
26
conflicts=('bladerf')
27
provides=('bladerf')
28
backup=("etc/bladerf.cfg")
29
30
source=(
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
37
md5sums=('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
46
prepare() {
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
60
build() {
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
77
package() {
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) | 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 |