srcml

LOW
maintainer farseerfc 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package builds from source tarballs, including one from a non-standard host (a university IP), but it is the project's own source and build process; the worst case of a swapped source is limited to code execution during build, which is within expected AUR 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 source tarballs, including one from a non-standard host (a university IP), but it is the project's own source and build process; the worst case of a swapped source is limited to code execution during build, which is within expected AUR 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:14 source=("$pkgname-$pkgver.tar.gz::http://131.123.42.38/lmcrs/v${pkgver}/${_srcname}-${pkgver}.tar.gz"
  • PKGBUILD:16 "https://www.antlr2.org/download/antlr-${_antlr_ver}.tar.gz"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Jiachen YANG <farseerfc@gmail.com>
2_srcname=srcML
3_antlr_ver=2.7.7
4pkgname=srcml
5pkgver=1.0.0
6pkgrel=1
7pkgdesc="commandline and library for srcML, an XML representation for source code"
8arch=(x86_64)
9url="https://www.srcml.org/"
10license=('GPL')
11depends=(libxml2 libxslt libarchive boost-libs curl openssl)
12makedepends=(cmake boost man2html docbook2x 'java-environment' 'sh' 'antlr2')
13optdepends=()
14source=("$pkgname-$pkgver.tar.gz::http://131.123.42.38/lmcrs/v${pkgver}/${_srcname}-${pkgver}.tar.gz"
15 "arch-build.patch"
16 "https://www.antlr2.org/download/antlr-${_antlr_ver}.tar.gz"
17 "gcc4.4.patch")
18md5sums=('f910de40b1b7fa9a6928e7cd3d75cd2b'
19 '8aaad26040808d2a0ac0793999521e9e'
20 '01cc9a2a454dd33dcd8c856ec89af090'
21 '8574c93f40e6477e83c29f9b07de49da')
22
23prepare() {
24 # copied from antlr2 package, rebuild with -fPIC
25 cd "${srcdir}/antlr-${_antlr_ver}"
26 patch -Np0 -i "${srcdir}"/gcc4.4.patch
27
28 cd "${srcdir}/${_srcname}-${pkgver}"
29 patch -Np1 -i ../arch-build.patch
30}
31
32
33build() {
34 # copied from antlr2 package, rebuild with -fPIC
35 cd "${srcdir}/antlr-${_antlr_ver}"
36
37 ./configure --prefix=/usr \
38 --disable-examples \
39 --disable-csharp
40 export LDFLAGS="$LDFLAGS -fPIC"
41 export CFLAGS="$CFLAGS -fPIC"
42 export CXXFLAGS="$CXXFLAGS -fPIC"
43 make
44
45 cd "${srcdir}/${_srcname}-${pkgver}"
46 mkdir build
47 cd build
48 export _antlr_ver
49 export ANTLR_LIBRARY="${srcdir}/antlr-${_antlr_ver}/lib/cpp/src/libantlr.a"
50 cmake .. \
51 -DCMAKE_INSTALL_PREFIX="/usr" \
52 -DBUILD_LIBSRCML_STATIC=OFF \
53 -DLINK_LIBSRCML_STATIC=OFF \
54 -DANTLR_LIBRARY="${srcdir}/antlr-${_antlr_ver}/lib/cpp/src/libantlr.a"
55 make
56}
57
58package() {
59 cd "$_srcname-${pkgver}"
60 cd build
61 make DESTDIR="$pkgdir/" install
62}
63

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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