fmlib
The package downloads a source archive from a non-whitelisted but plausibly project-owned host and builds the library from Fortran source; the worst case of a swapped source is limited to code execution during build, but this is a standard AUR build pattern for niche scientific libraries.
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 package downloads a source archive from a non-whitelisted but plausibly project-owned host and builds the library from Fortran source; the worst case of a swapped source is limited to code execution during build, but this is a standard AUR build pattern for niche scientific libraries.
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=("FM_files_${pkgver}_${pkgrel}.zip::https://dmsmith.lmu.build/FM${pkgver}/FM_files.zip")
PKGBUILD
1 offending line(s) highlighted# Contributor: physkets <physkets // at // tutanota dot com>
pkgname=fmlib
pkgver=1.4
pkgrel=3
pkgdesc="A fortran multiple-precision arithmetic library"
arch=('x86_64')
url="https://dmsmith.lmu.build/"
license=('MIT')
depends=('libgfortran.so')
makedepends=('gcc-fortran')
source=("FM_files_${pkgver}_${pkgrel}.zip::https://dmsmith.lmu.build/FM${pkgver}/FM_files.zip")
sha256sums=('fba4ac76c212fca77c99a21d3772cd0843b2c18b4a6443838c6466491f1d5cca')
build() {
cd "$srcdir/FM_files/"
mkdir -p build/libs
mkdir -p build/mods
gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfmsave.so fmsave.f95
gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfm.so fm.f95
gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfmzm90.so fmzm90.f95
}
check() {
cd "$srcdir/FM_files/"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$srcdir/FM_files/build/libs/"
gfortran -O3 -I./build/mods -L./build/libs -o test.out TestFM.f95 -lfmsave -lfm -lfmzm90
# check fails, mailed upstream 2026-02-17
# ./test.out
gfortran -O3 -I./build/mods -L./build/libs -o sample.out SampleFM.f95 -lfmsave -lfm -lfmzm90
./sample.out
}
_gcc_ver="$(gcc --version | awk 'NR==1 {print$3}')"
package() {
install -Dm755 -t "$pkgdir/usr/lib" "$srcdir/FM_files/build/libs/"*.so
install -Dm644 -t "$pkgdir/usr/lib/gcc/x86_64-pc-linux-gnu/${_gcc_ver}/finclude" "$srcdir/FM_files/build/mods/"*.mod
install -Dm644 "$srcdir/FM_files/LICENSE.txt" "$pkgdir/usr/share/licenses/fmlib/LICENSE.txt"
}
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 |