mercury

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

The source is a tarball from the project's own release domain (dl.mercurylang.org), which is plausibly official; building from project-owned infrastructure is normal for AUR packages, even if the host is not on a whitelist.

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 source is a tarball from the project's own release domain (dl.mercurylang.org), which is plausibly official; building from project-owned infrastructure is normal for AUR packages, even if the host is not on a whitelist.

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:16 source=(http://dl.mercurylang.org/release/mercury-srcdist-${pkgver}.tar.xz)

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
2# Contributor: Frank Seifferth <frankseifferth@posteo.net>
3# Contributor: Tetsumi <tetsumi@vmail.me>
4# Contributor: Bart Verhoeven <bartverhoeven@live.com>
5
6pkgname=mercury
7pkgver=22.01.9
8pkgrel=1
9pkgdesc="The mercury language compiler."
10arch=('i686' 'x86_64')
11url="http://www.mercurylang.org/"
12license=('GPL')
13depends=('gcc' 'make')
14makedepends=('flex' 'bison')
15options=(staticlibs)
16source=(http://dl.mercurylang.org/release/mercury-srcdist-${pkgver}.tar.xz)
17b2sums=('9b7c5eff278e9d9e9cbebe0e3ae47ebba610865a9a65d3489b511f9cf3603cf01ed88ce6a8fa2ca2b66fda37316a6d1549097e22ab74a023832f6c68e6c1afee')
18
19build() {
20 cd "$srcdir"/mercury-srcdist-$pkgver
21
22 echo "EXTRA_CFLAGS += -Wno-error=array-parameter" >> Mmake.params
23 echo "EXTRA_CFLAGS += -Wno-error=discarded-qualifiers" >> Mmake.params
24
25 ./configure --prefix=/usr --mandir=/usr/share/man \
26 --infodir=/usr/share/info \
27 --disable-inefficient-grades
28
29 make PARALLEL="$MAKEFLAGS"
30}
31
32package() {
33 cd "$srcdir"/mercury-srcdist-$pkgver
34
35 make DESTDIR="$pkgdir" \
36 INSTALL_PREFIX="$pkgdir"/usr \
37 INSTALL_MAN_DIR="$pkgdir"/usr/share/man \
38 INSTALL_INFO_DIR="$pkgdir"/usr/share/info \
39 MERCURY_COMPILER="$pkgdir"/usr/bin/mercury_compile \
40 MERCURY_CONFIG_DIR="$pkgdir"/usr/lib/mercury \
41 PARALLEL="$MAKEFLAGS" LIBGRADES=asm_fast.gc install
42
43 rm "${pkgdir}"/usr/bin/{mdb,mercury,mprof}.bat
44}
45

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
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 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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