levmar
LOW
maintainer zkhr6
25 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The source is a tarball from the project's official academic host, building its own code; non-whitelisted but plausibly legitimate, with a valid checksum.
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 source is a tarball from the project's official academic host, building its own code; non-whitelisted but plausibly legitimate, with a valid checksum.
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:11
source=('http://users.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz')
PKGBUILD
1 offending line(s) highlighted
1
# maintainer: Antony Lee <anntzer dot lee at gmail dot com>
2
# contributor: Carl Rogers <carl.rogers@gmail.com>
3
pkgname=levmar
4
pkgver=2.6
5
pkgrel=3
6
pkgdesc='Levenberg-Marquardt nonlinear least squares algorithms in C/C++'
7
url='http://users.ics.forth.gr/~lourakis/levmar'
8
arch=('i686' 'x86_64' 'aarch64')
9
license=('GPL')
10
depends=('f2c' 'lapack')
11
source=('http://users.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz')
12
md5sums=('16bc34efa1617219f241eef06427f13f')
13
14
# Fool the server.
15
DLAGENTS=('http::/usr/bin/curl -A not_a_bot -fLC - --retry 3 --retry-delay 3 -o %o %u')
16
17
build() {
18
# Adapted from Debian packaging by Daniil Ivanov.
19
cd $pkgname-$pkgver
20
mkdir -p sobj
21
# actually use LIBS, not just define them
22
sed -i 's/#-llapack -lblas -lf2c/$\(LIBS\)/' Makefile.so
23
# add math library to LIBS
24
sed -i 's/-llapack -lblas -lf2c #/-llapack -lblas -lf2c -lm #/' Makefile.so
25
# move end line comments to a separate line
26
sed -i 's/\(.*\) #\(.*\)/#\2\n\1/' Makefile.so
27
make -f Makefile.so
28
}
29
30
package() {
31
cd $pkgname-$pkgver
32
install -Dpm 755 sobj/liblevmar.so.2.2 $pkgdir/usr/lib/liblevmar.so.2.2
33
install -Dpm 644 levmar.h $pkgdir/usr/include/levmar/levmar.h
34
ln -rs $pkgdir/usr/lib/liblevmar.so.2{.2,}
35
ln -rs $pkgdir/usr/lib/liblevmar.so{.2.2,}
36
}
37
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 |