structstore_py
maintainer mertemba
· 1 votes
· base
structstore
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The pip install is part of building the project's own Python bindings from its source repository, which is a normal build step for projects with Python components, and the source is from the project's official Codeberg repository.
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 pip install is part of building the project's own Python bindings from its source repository, which is a normal build step for projects with Python components, and the source is from the project's official Codeberg repository.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
pip install of an external package
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:28
pip install -r requirements.txt
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Max Mertens <git@mertemba.de>
2
3
pkgbase=structstore
4
pkgname=(structstore structstore_py)
5
pkgver=0.6.1
6
pkgrel=1
7
pkgdesc='Multi-process shared data structures without communication overhead'
8
arch=('x86_64' 'aarch64')
9
url='https://codeberg.org/mertemba/structstore'
10
license=('LGPL-3.0-only')
11
depends=('glibc' 'gcc-libs' 'yaml-cpp')
12
makedepends=('cmake' 'ninja' 'gcc' 'yaml-cpp' 'python' 'python-pip')
13
source=("git+https://codeberg.org/mertemba/structstore")
14
sha256sums=('SKIP')
15
options=(!debug)
16
17
pkgver() {
18
cd "$pkgbase"
19
# cutting off 'v' prefix that presents in the git tag
20
git describe --long --tags --abbrev=7 --always | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
21
}
22
23
build() {
24
cd "${srcdir}/${pkgbase}"
25
venvdir="${srcdir}/venv"
26
python -m venv "${venvdir}"
27
source "${venvdir}/bin/activate"
28
pip install -r requirements.txt
29
cmake -B build -S "." \
30
-G Ninja \
31
-DBUILD_WITH_PYTHON=ON \
32
-DCMAKE_BUILD_TYPE:STRING='None' \
33
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
34
-Wno-dev
35
cmake --build build
36
}
37
38
check() {
39
# ctest --test-dir build --output-on-failure
40
true
41
}
42
43
package_structstore() {
44
provides+=('libstructstore.so')
45
46
cd "${srcdir}/${pkgbase}"
47
venvdir="${srcdir}/venv"
48
source "${venvdir}/bin/activate"
49
DESTDIR="$pkgdir" cmake --install build
50
51
# keep only non-Python files
52
find "$pkgdir" -type f | sed "s@$pkgdir@@" \
53
| grep -i -e py -e nanobind -e binding \
54
| while IFS='' read f; do rm "$pkgdir/$f"; done
55
find "$pkgdir" -type d -empty -delete
56
}
57
58
package_structstore_py() {
59
depends+=('python' 'structstore')
60
61
cd "${srcdir}/${pkgbase}"
62
venvdir="${srcdir}/venv"
63
source "${venvdir}/bin/activate"
64
DESTDIR="$pkgdir" cmake --install build
65
66
# keep only Python files
67
find "$pkgdir" -type f | sed "s@$pkgdir@@" \
68
| grep -i -v -e py -e nanobind -e binding \
69
| while IFS='' read f; do rm "$pkgdir/$f"; done
70
find "$pkgdir" -type d -empty -delete
71
}
72
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 |