mingw-w64-ann
maintainer orphaned
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is downloaded from the project's official academic website (cs.umd.edu), which is plausibly the project's own infrastructure; building from source is standard practice, and the library is not executable code.
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 downloaded from the project's official academic website (cs.umd.edu), which is plausibly the project's own infrastructure; building from source is standard practice, and the library is not executable code.
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://www.cs.umd.edu/~mount/ANN/Files/$pkgver/ann_$pkgver.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
pkgname=mingw-w64-ann
2
pkgver=1.1.2
3
pkgrel=1
4
pkgdesc="Approximate nearest neighbor library. (mingw-w64)"
5
url="https://www.cs.umd.edu/~mount/ANN/"
6
arch=('any')
7
license=("LGPL")
8
depends=('mingw-w64-crt')
9
makedepends=('mingw-w64-gcc')
10
options=('!buildflags' '!strip' 'staticlibs')
11
source=("http://www.cs.umd.edu/~mount/ANN/Files/$pkgver/ann_$pkgver.tar.gz"
12
parallel.patch)
13
md5sums=('7ffaacc7ea79ca39d4958a6378071365'
14
'b332924dd27ee8a7fc479f28761a4381')
15
16
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
17
18
prepare () {
19
cd "$srcdir/ann_$pkgver"
20
patch -p1 < $srcdir/parallel.patch
21
}
22
23
build() {
24
cd "$srcdir"
25
for _arch in ${_architectures}; do
26
cp -r ann_$pkgver build-${_arch} && pushd build-${_arch}
27
sed -i "s|C++|CXX|g" src/Makefile
28
make ANNLIB=libANN.a CXX=${_arch}-g++ \
29
CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -DDLL_EXPORTS" \
30
MAKELIB="${_arch}-ar ruv" RANLIB=${_arch}-ranlib targets -C src
31
popd
32
done
33
}
34
35
package () {
36
for _arch in ${_architectures}; do
37
cd "$srcdir/build-${_arch}"
38
install -d "$pkgdir"/usr/${_arch}/{lib,include/ANN}
39
install -m644 lib/libANN.a "$pkgdir"/usr/${_arch}/lib
40
install -m644 include/ANN/* "$pkgdir"/usr/${_arch}/include/ANN
41
# ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
42
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
43
done
44
}
45
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 |