sonarr-develop

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

The yarn install is part of building the project's own frontend from source, using a frozen lockfile, and does not involve installing undeclared external packages at runtime or executing untrusted code.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The yarn install is part of building the project's own frontend from source, using a frozen lockfile, and does not involve installing undeclared external packages at runtime or executing untrusted code.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:95 yarn install --frozen-lockfile --network-timeout 120000

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: txtsd <aur.archlinux@ihavea.quest>
2# Maintainer: Donald Webster <fryfrog@gmail.com>
3# Contributor: Daniel Egeberg <daniel.egeberg@gmail.com>
4# Contributor: Justin Dray <justin@dray.be>
5# Helpful URL: https://services.sonarr.tv/v1/releases
6
7pkgname=sonarr-develop
8_pkgname=Sonarr
9pkgver=5.0.0.2907
10pkgrel=1
11pkgdesc='Smart PVR for newsgroup and torrent users (develop branch)'
12arch=(x86_64 aarch64 armv7h)
13url='https://sonarr.tv'
14license=('GPL-3.0-or-later')
15groups=(servarr-develop)
16depends=(
17 aspnet-runtime-10.0
18 gcc-libs
19 glibc
20 sqlite
21)
22makedepends=(
23 dotnet-sdk-10.0
24 aspnet-targeting-pack-10.0
25 yarn)
26optdepends=(
27 'postgresql: postgresql database'
28 'sabnzbd: usenet downloader'
29 'nzbget: usenet downloader'
30 'qbittorrent: torrent downloader'
31 'deluge: torrent downloader'
32 'rtorrent: torrent downloader'
33 'nodejs-flood: torrent downloader'
34 'vuze: torrent downloader'
35 'aria2: torrent downloader'
36 'transmission-cli: torrent downloader (CLI and daemon)'
37 'transmission-gtk: torrent downloader (GTK+)'
38 'transmission-qt: torrent downloader (Qt)'
39 'jackett: torrent indexer proxy'
40 'nzbhydra2: torznab and usenet indexer proxy'
41 'prowlarr: torrent and usenet indexer proxy'
42 'autobrr: irc, torrent and usenet indexer proxy'
43)
44provides=(sonarr)
45conflicts=(sonarr)
46install=sonarr.install
47source=(
48 "${pkgname}-${pkgver}.tar.gz::https://github.com/Sonarr/Sonarr/archive/refs/tags/v${pkgver}.tar.gz"
49 package_info
50 sonarr.service
51 sonarr.sysusers
52 sonarr.tmpfiles
53)
54sha256sums=('848939933162a461c46024018a4142309a3ed8baeb8d34512705b49ffcd881aa'
55 'a6b37e75143a309b1d8c163c3f90f7f0275fd730015c3f74e3ad27c278b1ae90'
56 'a5fc162aeafb2c6322176db736a503047a39f2740eea4dead05438ed47187fbd'
57 '00141d4cbf34daa6d91b26179d4847ec970e2767382e18fdf9af2ec84a0ff43e'
58 'd6b18a83dd9c213470d984f71ddcefcd64d12bb87f68225cc4ebf5fa4a831703')
59
60case ${CARCH} in
61 x86_64) _CARCH='x64' ;;
62 aarch64) _CARCH='arm64' ;;
63 armv7h) _CARCH='arm' ;;
64esac
65
66_framework='net10.0'
67_runtime="linux-${_CARCH}"
68_output='_output'
69_artifacts="${_output}/${_framework}/${_runtime}/publish"
70_branch='develop'
71
72prepare() {
73 cd "${_pkgname}-${pkgver}"
74
75 # Remove upstream dotnet version
76 rm global.json
77
78 export DOTNET_CLI_TELEMETRY_OPTOUT=1
79 export DOTNET_NOLOGO=1
80 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
81 dotnet new globaljson --sdk-version 10.0.112 --roll-forward latestFeature
82
83 # Patch vulnerabilities
84 if ! grep -q -i 'System.Security.Cryptography.Pkcs' src/NzbDrone.Core/Sonarr.Core.csproj; then
85 dotnet package add System.Security.Cryptography.Pkcs --version 10.0.13 --project src/NzbDrone.Core/Sonarr.Core.csproj
86 dotnet package add Microsoft.AspNetCore.SignalR.Common --version 10.0.13 --project src/NzbDrone.Core/Sonarr.Core.csproj
87 fi
88
89 # Prepare backend
90 dotnet restore "src/${_pkgname}.sln" \
91 --runtime "${_runtime}" \
92 --locked-mode
93
94 # Prepare frontend
95 yarn install --frozen-lockfile --network-timeout 120000
96}
97
98build() {
99 cd "${_pkgname}-${pkgver}"
100
101 # Build backend
102 export DOTNET_CLI_TELEMETRY_OPTOUT=1
103 export DOTNET_NOLOGO=1
104 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
105 dotnet build "src/${_pkgname}.sln" \
106 --framework "${_framework}" \
107 --runtime "${_runtime}" \
108 --no-self-contained \
109 --no-restore \
110 --configuration Release \
111 -p:Platform=Posix \
112 -p:AssemblyVersion=${pkgver} \
113 -p:AssemblyConfiguration=${_branch} \
114 -p:RuntimeIdentifiers="${_runtime}" \
115 -t:PublishAllRids \
116 && dotnet build-server shutdown # Build servers do not terminate automatically
117
118 # Build frontend
119 yarn run build
120}
121
122package() {
123 cd "${_pkgname}-${pkgver}"
124
125 install -dm755 "${pkgdir}/usr/lib/sonarr/bin/UI"
126
127 # Remove Service Helpers, Update, and Windows files
128 rm "${_artifacts}/ServiceInstall"*
129 rm "${_artifacts}/ServiceUninstall"*
130 rm "${_artifacts}/Sonarr.Windows."*
131 rm -rf "${_output}/Sonarr.Update"
132
133 # Copy backend
134 cp -dr "${_artifacts}/"* "${pkgdir}/usr/lib/sonarr/bin"
135 # Copy frontend
136 cp -dr "${_output}/UI/"* "${pkgdir}/usr/lib/sonarr/bin/UI"
137
138 # Set executable permissions
139 chmod 755 "${pkgdir}/usr/lib/sonarr/bin/ffprobe"
140
141 # License
142 install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
143
144 # Disable built in updater.
145 cd "${srcdir}"
146 install -Dm644 package_info "${pkgdir}/usr/lib/sonarr"
147 echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/sonarr/package_info"
148
149 # Systemd
150 install -Dm644 sonarr.service "${pkgdir}/usr/lib/systemd/system/sonarr.service"
151 install -Dm644 sonarr.sysusers "${pkgdir}/usr/lib/sysusers.d/sonarr.conf"
152 install -Dm644 sonarr.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/sonarr.conf"
153}
154

Changes since previous scan

--- PKGBUILD @ 2026-10-31 00:07
+++ PKGBUILD @ 2026-11-01 00:21
@@ -6,7 +6,7 @@
pkgname=sonarr-develop
_pkgname=Sonarr
-pkgver=5.0.0.2870
+pkgver=5.0.0.2907
pkgrel=1
pkgdesc='Smart PVR for newsgroup and torrent users (develop branch)'
arch=(x86_64 aarch64 armv7h)
@@ -51,7 +51,7 @@
sonarr.sysusers
sonarr.tmpfiles
)
-sha256sums=('d93c24dff7e24fcf26f082f2b1033de0a74e76519164f618d2b4bf97b46c23b8'
+sha256sums=('848939933162a461c46024018a4142309a3ed8baeb8d34512705b49ffcd881aa'
'a6b37e75143a309b1d8c163c3f90f7f0275fd730015c3f74e3ad27c278b1ae90'
'a5fc162aeafb2c6322176db736a503047a39f2740eea4dead05438ed47187fbd'
'00141d4cbf34daa6d91b26179d4847ec970e2767382e18fdf9af2ec84a0ff43e'

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 21:59:05 Medium 1
2026-10-31 00:07:41 Low 2
2026-10-30 05:55:14 Medium 1
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 05:49:54 Medium 1
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 03:43:44 Medium 1
2026-10-26 00:12:40 Low 2
2026-10-25 01:41:32 Medium 1
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 05:30:25 Medium 1
2026-10-21 00:12:50 Low 2
2026-10-20 01:27:05 Medium 1
2026-10-20 00:10:31 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