codechecker
The pip install is part of building the project's own dependencies in a local virtual environment, not installing arbitrary external packages; the source is from the project's official repository and the build process is standard for Python-based tools.
Triggered rules
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 dependencies in a local virtual environment, not installing arbitrary external packages; the source is from the project's official repository and the build process is standard for Python-based tools.
1 higher static finding superseded - not the current verdict (shown for transparency)
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:43
pip install setuptools
PKGBUILD
1 offending line(s) highlighted# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=codechecker
pkgver=6.26.2
pkgrel=1
pkgdesc="Analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy"
arch=(x86_64)
url="https://github.com/Ericsson/codechecker"
license=(Apache-2.0)
depends=(
gcc-libs
glibc
python
)
makedepends=(
npm
python-pip
)
optdepends=(
'clang: for running Clang Static Analyzer and Clang Tidy'
'cppcheck: for running CPPCheck analysis'
)
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"fix-ldflags.patch"
)
sha256sums=(
'fc72351fa0ed511b82c5ebd6c39a6f2d100c4340dd6e90c043c468ba892e584e'
'e59cb4d96642ccea7c3536e020b3961c1717bc65983424ced48b0ae1b1a3871a'
)
prepare() {
cd $pkgname-$pkgver
patch -Np1 < ../fix-ldflags.patch
}
build() {
cd $pkgname-$pkgver
make venv
# shellcheck disable=SC1091
source "$PWD/venv/bin/activate"
pip install setuptools
# Parallel builds fail
export MAKEFLAGS="-j1"
export BUILD_LOGGER_64_BIT_ONLY=YES
make package
tar -xf web/api/py/codechecker_api/dist/codechecker_api.tar.gz
tar -xf web/api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz
}
package() {
cd $pkgname-$pkgver
install -vdm755 "$pkgdir/opt"
cp -va build/CodeChecker "$pkgdir/opt"
rm -vr "$pkgdir/opt/CodeChecker/lib/python3/codechecker"
cp -vr venv/lib/python*/site-packages/* "$pkgdir/opt/CodeChecker/lib/python3/"
cp -va codechecker_api-*/codechecker_api/ "$pkgdir/opt/CodeChecker/lib/python3/"
cp -va codechecker_api_shared-*/codechecker_api_shared/ "$pkgdir/opt/CodeChecker/lib/python3/"
install -vdm755 "$pkgdir/usr/bin"
ln -vs /opt/CodeChecker/bin/CodeChecker "$pkgdir/usr/bin/CodeChecker"
}
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 |