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-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 |