mlucas
The source is a tarball from the project's official forum hosted on mersenneforum.org, which is the legitimate and expected source for Mlucas; building from this host is normal and expected, despite it not being a standard code forge.
Triggered rules
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 source is a tarball from the project's official forum hosted on mersenneforum.org, which is the legitimate and expected source for Mlucas; building from this host is normal and expected, despite it not being a standard code forge.
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:12
source=("https://www.mersenneforum.org/mayer/src/C/mlucas_v${pkgver}.txz")
PKGBUILD
1 offending line(s) highlighted#Maintainer: Dylan Delgado
pkgname=mlucas
pkgver=20.1.1
pkgrel=2
pkgdesc="Program used to perform Lucas-Lehmer tests of Mersenne numbers. Can be built on the ARM architecture."
arch=('i686' 'x86_64' 'arm' 'aarch64')
url="https://www.mersenneforum.org/mayer/README.html"
depends=("gmp" "xz")
optdepends=("python: to use the primenet.py work management script")
license=('FDL1.3')
source=("https://www.mersenneforum.org/mayer/src/C/mlucas_v${pkgver}.txz")
md5sums=('970c4dde58417bd7f6be0e4af4b59b4e')
#prepare() {
#cd "${srcdir}"/"${pkgname}"_v"${pkgver}"
#Only patch if the kernel version is at least 5.5.0
#kermajver=`uname -r | cut -d. -f1`
#kerminver=`uname -r | cut -d. -f2`
#if [ $kermajver -gt 5 ]; then
#patch -p1 < "../../sysctl-missing.patch"
#elif [ $kermajver -eq 5 ] && [ $kerminver -ge 5 ]; then
#patch -p1 < "../../sysctl-missing.patch"
#fi
#}
build() {
cd "${srcdir}"/"${pkgname}"_v"${pkgver}"/src
#Check the instructions on the computer and build based on that
#use this for x86, x86_64
if [[ $CARCH == "i686" || $CARCH == "x86_64" ]]
then
if grep avx512 /proc/cpuinfo > /dev/null;
then
#avx512 (Intel i9, KNL)
gcc -g -c -O3 -DUSE_AVX512 -DUSE_THREADS -march=native *.c > build.log
elif grep avx2 /proc/cpuinfo > /dev/null;
then
#avx2 (most modern Intel processors (Haswell+), AMD Ryzen)
gcc -g -c -O3 -DUSE_AVX2 -mavx2 -DUSE_THREADS *.c > build.log
elif grep avx /proc/cpuinfo > /dev/null;
then
#avx (Intel Sandy/Ivy Bridge, AMD Heavy-Equipment)
gcc -g -c -O3 -DUSE_AVX -mavx -DUSE_THREADS *.c > build.log
elif grep sse2 /proc/cpuinfo > /dev/null;
then
#sse2 (Most machines from ~2003 on should have this!)
gcc -g -c -O3 -DUSE_SSE2 -DUSE_THREADS *.c > build.log
else
#generic x86, x86_64 build
gcc -g -c -O3 -DUSE_THREADS *.c > build.log
fi
fi
#arm
#only go to this if CARCH is arm or aarch64
if [[ $CARCH == "arm" || $CARCH == "aarch64" ]]
then
if grep asimd /proc/cpuinfo > /dev/null;
then
#newer arm chips
gcc -g -c -O3 -DUSE_ARM_V8_SIMD -DUSE_THREADS *.c > build.log
else
#older arm chips
gcc -g -c -O3 -DUSE_THREADS *.c > build.log
fi
fi
#check the build log, to see if it empty, then link
if ! grep error build.log > /dev/null;
then
gcc -g -o ../Mlucas *.o -lm -lpthread -lrt -lgmp
fi
}
package() {
cd "${srcdir}"/"${pkgname}"_v"${pkgver}"
install -Dm755 Mlucas "${pkgdir}"/usr/bin/mlucas
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 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 |
| 2026-08-29 00:29:17 | Low | 2 |