mercury
maintainer aperez
· 9 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a tarball from the project's official domain (dl.mercurylang.org), which is plausibly the project's own release infrastructure; building from official project sources is normal AUR packaging, even if the host is not on a standard 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 official domain (dl.mercurylang.org), which is plausibly the project's own release infrastructure; building from official project sources is normal AUR packaging, even if the host is not on a standard 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
6
pkgname=mercury
7
pkgver=22.01.8
8
pkgrel=3
9
pkgdesc="The mercury language compiler."
10
arch=('i686' 'x86_64')
11
url="http://www.mercurylang.org/"
12
license=('GPL')
13
depends=('gcc' 'make')
14
makedepends=('flex' 'bison')
15
options=(staticlibs)
16
source=(http://dl.mercurylang.org/release/mercury-srcdist-${pkgver}.tar.xz)
17
b2sums=('18ded08484e9144edbc64ce7e31ce18b93b76889842cd968ae98eaba0c818655e04ac1a5b86c3147b0a8f09a6fbbcc39a244a48e27b88a1a5b9b5c3d56c8f251')
18
19
build() {
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
32
package() {
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) | Severity | Rules |
|---|---|---|
| 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 |