mercury

LOW
maintainer aperez 9 votes scanned 2026-09-17 00:27:14.276658
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

Changes since previous scan

--- PKGBUILD @ 2026-09-02 00:02
+++ PKGBUILD @ 2026-09-17 00:27
@@ -4,8 +4,8 @@
# Contributor: Bart Verhoeven <bartverhoeven@live.com>
pkgname=mercury
-pkgver=22.01.8
-pkgrel=3
+pkgver=22.01.9
+pkgrel=1
pkgdesc="The mercury language compiler."
arch=('i686' 'x86_64')
url="http://www.mercurylang.org/"
@@ -14,7 +14,7 @@
makedepends=('flex' 'bison')
options=(staticlibs)
source=(http://dl.mercurylang.org/release/mercury-srcdist-${pkgver}.tar.xz)
-b2sums=('18ded08484e9144edbc64ce7e31ce18b93b76889842cd968ae98eaba0c818655e04ac1a5b86c3147b0a8f09a6fbbcc39a244a48e27b88a1a5b9b5c3d56c8f251')
+b2sums=('9b7c5eff278e9d9e9cbebe0e3ae47ebba610865a9a65d3489b511f9cf3603cf01ed88ce6a8fa2ca2b66fda37316a6d1549097e22ab74a023832f6c68e6c1afee')
build() {
cd "$srcdir"/mercury-srcdist-$pkgver

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 15:51:02 Medium 1
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion