pacman-utils
The pip install occurs only in a conditional code path for a standalone virtualenv, which is disabled by default; the default build uses standard AUR practices with declared dependencies and installs from the project's own source tarball.
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 occurs only in a conditional code path for a standalone virtualenv, which is disabled by default; the default build uses standard AUR practices with declared dependencies and installs from the project's own source tarball.
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:52
pip install -r requirements.txt
PKGBUILD
1 offending line(s) highlighted# Maintainer: Tim Savannah <kata198@gmail.com>
# _STANDALONE_VIRTUALENV - Set to "true" to not require dependencies
# and build in a standalone virtualenv
_STANDALONE_VIRTUALENV="false"
#_STANDALONE_VIRTUALENV="true"
pkgname=pacman-utils
pkgver=1.1.0
pkgrel=1
pkgdesc="Some utils and helper scripts for archlinux packages "
# arch package url is https://github.com/kata198/pacman-utils-pkg
url="https://github.com/kata198/pacman-utils"
arch=(any)
license=(apache)
if [ "$_STANDALONE_VIRTUALENV" = "true" ];
then
makedepends=(python python-virtualenv python-setuptools)
depends=(wget curl python python-virtualenv python-setuptools)
install=install.sh
else
makedepends=(python python-setuptools 'python-cmp_version>=3.0.0' python-func_timeout)
depends=(wget curl python python-setuptools 'python-cmp_version>=3.0.0' python-func_timeout)
fi
optdepends=('pacman-utils-data: Data for whatprovides_upstream')
source=("https://github.com/kata198/pacman-utils/archive/${pkgver}.tar.gz")
sha512sums=("36c202bdfe7a86ce004ca9f731c8bb8458257ab6652b173b0324faf15e45877943b4617946ba4893af8f8bcf657d0e1cf29b5133ffdbd9b14af6df1ce7dc9c96")
build() {
cd "${pkgname}-${pkgver}"
}
_virtualenv_package() {
# _virtualenv_package - Called when _STANDALONE_VIRTUALENV is "true",
# and will create and install deps into a local virtualenv.
#
# Doing it this way ensures no additional AUR dependencies,
# but is sub-optimal. cmp_version and function_timeout are BOTH
# available in AUR.
mkdir -p "${pkgdir}/var/lib/pacman-utils"
pushd "${pkgdir}"
mkdir -p "${pkgdir}/var/lib/pacman-utils/env"
virtualenv "var/lib/pacman-utils/env"
source var/lib/pacman-utils/env/bin/activate
pushd "${srcdir}/${pkgname}-${pkgver}"
# Install deps into this virtualenv
pip install -r requirements.txt
./install.sh DESTDIR="${pkgdir}"
popd # back to pkgdir
deactivate;
sed -e "s|${pkgdir}||g" -i var/lib/pacman-utils/env/bin/activate
cd usr/bin
# Change all python code to use virtualenv root
for fname in $(grep -l '^#!/usr/bin/env python' *);
do
sed -e 's|^#!/usr/bin/env python|#!/var/lib/pacman-utils/env/bin/python|g' -i "${fname}"
done
popd
}
_standalone_package() {
# _standalone_package - Build this package the standard way.
# Called with _STANDALONE_VIRTUALENV is "false" (default).
#
# So this way, unless you just want to try it quick
# and not have to deal with multiple dep packages
cd ${pkgname}-$pkgver
./install.sh DESTDIR="${pkgdir}"
}
package() {
if [ "$_STANDALONE_VIRTUALENV" = "false" ];
then
_standalone_package;
else
_virtualenv_package;
fi
}
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 |