srcml

maintainer farseerfc · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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