fmlib
maintainer romanahirt
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
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
3
pkgname=fmlib
4
pkgver=1.4
5
pkgrel=3
6
pkgdesc="A fortran multiple-precision arithmetic library"
7
arch=('x86_64')
8
url="https://dmsmith.lmu.build/"
9
license=('MIT')
10
depends=('libgfortran.so')
11
makedepends=('gcc-fortran')
12
source=("FM_files_${pkgver}_${pkgrel}.zip::https://dmsmith.lmu.build/FM${pkgver}/FM_files.zip")
13
sha256sums=('fba4ac76c212fca77c99a21d3772cd0843b2c18b4a6443838c6466491f1d5cca')
14
15
build() {
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
24
check() {
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
36
package() {
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) | 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 |