mercury
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
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)
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# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
# Contributor: Frank Seifferth <frankseifferth@posteo.net>
# Contributor: Tetsumi <tetsumi@vmail.me>
# Contributor: Bart Verhoeven <bartverhoeven@live.com>
pkgname=mercury
pkgver=22.01.9
pkgrel=1
pkgdesc="The mercury language compiler."
arch=('i686' 'x86_64')
url="http://www.mercurylang.org/"
license=('GPL')
depends=('gcc' 'make')
makedepends=('flex' 'bison')
options=(staticlibs)
source=(http://dl.mercurylang.org/release/mercury-srcdist-${pkgver}.tar.xz)
b2sums=('9b7c5eff278e9d9e9cbebe0e3ae47ebba610865a9a65d3489b511f9cf3603cf01ed88ce6a8fa2ca2b66fda37316a6d1549097e22ab74a023832f6c68e6c1afee')
build() {
cd "$srcdir"/mercury-srcdist-$pkgver
echo "EXTRA_CFLAGS += -Wno-error=array-parameter" >> Mmake.params
echo "EXTRA_CFLAGS += -Wno-error=discarded-qualifiers" >> Mmake.params
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-inefficient-grades
make PARALLEL="$MAKEFLAGS"
}
package() {
cd "$srcdir"/mercury-srcdist-$pkgver
make DESTDIR="$pkgdir" \
INSTALL_PREFIX="$pkgdir"/usr \
INSTALL_MAN_DIR="$pkgdir"/usr/share/man \
INSTALL_INFO_DIR="$pkgdir"/usr/share/info \
MERCURY_COMPILER="$pkgdir"/usr/bin/mercury_compile \
MERCURY_CONFIG_DIR="$pkgdir"/usr/lib/mercury \
PARALLEL="$MAKEFLAGS" LIBGRADES=asm_fast.gc install
rm "${pkgdir}"/usr/bin/{mdb,mercury,mprof}.bat
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |