monotone
maintainer grawity
· 4 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from the project's own source hosted on its official domain and a Debian archive; the non-standard host (archive.debian.org) is a legitimate historical archive, and the downloaded patches are applied as intended, posing no realistic supply-chain risk.
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 from the project's own source hosted on its official domain and a Debian archive; the non-standard host (archive.debian.org) is a legitimate historical archive, and the downloaded patches are applied as intended, posing no realistic supply-chain risk.
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:17
source=("http://www.monotone.ca/downloads/1.1/monotone-${pkgver}.tar.bz2"
PKGBUILD
1 offending line(s) highlighted
1
# Packager: Mantas Mikulėnas <grawity@gmail.com>
2
# Contributor: archaurwiki <archaurwiki at i2pmail dot org>
3
# Contributor: Angel Velasquez <angvp@archlinux.org>
4
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
5
# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org>
6
# Contributor: Dan McGee <dpmcgee@gmail.com>
7
8
pkgname=monotone
9
pkgver=1.1
10
pkgrel=9
11
pkgdesc='The Monotone distributed version control system'
12
arch=('i686' 'x86_64')
13
url='http://www.monotone.ca/'
14
license=('GPL')
15
depends=('pcre' 'lua53' 'botan1.10' 'sqlite3' 'libidn' 'zlib')
16
makedepends=('boost')
17
source=("http://www.monotone.ca/downloads/1.1/monotone-${pkgver}.tar.bz2"
18
"http://archive.debian.org/debian/pool/main/m/monotone/monotone_1.1-9.debian.tar.xz"
19
"pcre-8.42-hack.diff")
20
sha256sums=('f95cf60a22d4e461bec9d0e72f5d3609c9a4576fb1cc45f553d0202ce2e38c88'
21
'70a4e8fed56f4734de2192990db5e20fe8a8b819af51780df3d78310ee9eeeda'
22
'b23ad00a537314d939eceaa260b4535d85e2b052b4b00279e5f540d38f0d2e07')
23
24
prepare() {
25
cd "$srcdir/${pkgname}-${pkgver}"
26
27
for _f in $(< ../debian/patches/series); do
28
echo "Applying $_f"
29
patch -Np1 < ../debian/patches/$_f
30
done
31
32
for _f in "${source[@]}"; do
33
if [[ $_f == *.@(diff|patch) ]]; then
34
echo "Applying $_f"
35
patch -Np1 < "$srcdir/$_f"
36
fi
37
done
38
39
echo "Replacing single-character macros conflicting with Boost"
40
find . \( -name '*.cc' -o -name '*.hh' \) -type f -exec \
41
sed -i -E '
42
s,\<E( *\(),ERROR\1,g
43
s,\<L( *\(),LOG\1,g
44
s,\<P( *\(),PROGRESS\1,g
45
s,\<W( *\(),WARNING\1,g
46
' {} +
47
48
echo "Bootstrapping autoconf"
49
aclocal
50
autoreconf --install
51
}
52
53
build() {
54
cd "$srcdir/${pkgname}-${pkgver}"
55
export DISABLE_NETWORK_TESTS=1
56
export CXXFLAGS+=" -std=gnu++11"
57
export lua_CFLAGS=$(pkg-config --cflags lua53)
58
export lua_LIBS=$(pkg-config --libs lua53)
59
./configure \
60
--prefix=/usr \
61
--sysconfdir=/etc \
62
--disable-nls
63
make
64
}
65
66
package() {
67
cd "$srcdir/${pkgname}-${pkgver}"
68
make DESTDIR="$pkgdir" install
69
install -Dm644 contrib/monotone.zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_mtn"
70
}
71
72
# vim: ts=2:sw=2:et
73
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 |