fmlib

LOW
maintainer romanahirt 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

Low AI review downgraded a static finding 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)
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:12 source=("FM_files_${pkgver}_${pkgrel}.zip::https://dmsmith.lmu.build/FM${pkgver}/FM_files.zip")

PKGBUILD

1 offending line(s) highlighted
1# Contributor: physkets <physkets // at // tutanota dot com>
2
3pkgname=fmlib
4pkgver=1.4
5pkgrel=3
6pkgdesc="A fortran multiple-precision arithmetic library"
7arch=('x86_64')
8url="https://dmsmith.lmu.build/"
9license=('MIT')
10depends=('libgfortran.so')
11makedepends=('gcc-fortran')
12source=("FM_files_${pkgver}_${pkgrel}.zip::https://dmsmith.lmu.build/FM${pkgver}/FM_files.zip")
13sha256sums=('fba4ac76c212fca77c99a21d3772cd0843b2c18b4a6443838c6466491f1d5cca')
14
15build() {
16 cd "$srcdir/FM_files/"
17 mkdir -p build/libs
18 mkdir -p build/mods
19 gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfmsave.so fmsave.f95
20 gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfm.so fm.f95
21 gfortran -O3 -shared -fPIC -J./build/mods -o ./build/libs/libfmzm90.so fmzm90.f95
22}
23
24check() {
25 cd "$srcdir/FM_files/"
26 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$srcdir/FM_files/build/libs/"
27 gfortran -O3 -I./build/mods -L./build/libs -o test.out TestFM.f95 -lfmsave -lfm -lfmzm90
28 # check fails, mailed upstream 2026-02-17
29 # ./test.out
30 gfortran -O3 -I./build/mods -L./build/libs -o sample.out SampleFM.f95 -lfmsave -lfm -lfmzm90
31 ./sample.out
32}
33
34_gcc_ver="$(gcc --version | awk 'NR==1 {print$3}')"
35
36package() {
37 install -Dm755 -t "$pkgdir/usr/lib" "$srcdir/FM_files/build/libs/"*.so
38 install -Dm644 -t "$pkgdir/usr/lib/gcc/x86_64-pc-linux-gnu/${_gcc_ver}/finclude" "$srcdir/FM_files/build/mods/"*.mod
39 install -Dm644 "$srcdir/FM_files/LICENSE.txt" "$pkgdir/usr/share/licenses/fmlib/LICENSE.txt"
40}
41
42

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion