levmar
LOW
maintainer zkhr6
25 votes
scanned 2026-11-01 00:21:48.120785
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-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 |