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-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 |