petsc-complex
The source is a tarball from the official project's domain (anl.gov), which is plausibly the project's own release infrastructure; building from this source is normal AUR packaging despite the non-whitelisted host.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from the official project's domain (anl.gov), which is plausibly the project's own release infrastructure; building from this source is normal AUR packaging despite the non-whitelisted host.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:40
source=(https://web.cels.anl.gov/projects/${_base}/download/release-snapshots/${_base}-lite-${pkgver}.tar.gz
PKGBUILD
1 offending line(s) highlighted# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Maintainer: Auto update bot <auto-update-bot@jingbei.li>
# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Sigvald Marholm <marholm@marebakken.com>
# Adapted from the package petsc with the following original contributors:
# Contributor: Martin Diehl <https://martin-diehl.net>
# Contributor: Andreas Bilke <abilke at cosy dot sbg dot ac dot at>
# Contributor: Myles English <myles at rockhead dot biz>
# Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com>
_base=petsc
pkgname=${_base}-complex
pkgver=3.25.5
pkgrel=1
_config=linux-c-opt
# if --with-debugging=yes is set then PETSC_ARCH is automatically set to
#"linux-c-debug" for some things, so the _config should be changed too
#_config=linux-c-debug
pkgdesc="Portable, extensible toolkit for scientific computation (complex scalars)"
arch=(i686 x86_64)
url="https://${_base}.org"
license=(BSD-2-Clause)
options=(staticlibs)
conflicts=(${_base})
provides=("${_base}=${pkgver}")
depends=(hdf5-openmpi fftw-openmpi gsl lapack libjpeg-turbo libyaml netcdf-openmpi
python-numpy python-mpi4py pastix scotch superlu suitesparse zfp zlib hwloc)
makedepends=(cmake cython gcc gcc-fortran python-setuptools)
# checkdepends=()
optdepends=('hypre: support for the hypre sparse system solver'
'kokkos: support for Kokkos'
'metis: support for metis graph partitioning library'
'mumps: support for the mumps sparse solver'
'parmetis: support for parmetis parallel graph partitioning library'
'scalapack: support for ScaLAPACK'
'superlu_dist: support for the superlu_dist sparse solver'
'triangle: support for the two-dimensional quality mesh generator and Delaunay triangulator'
'valgrind: support for valgrind to help find memory-management problems in programs'
'zoltan: support for zoltan')
install=${_base}.install
source=(https://web.cels.anl.gov/projects/${_base}/download/release-snapshots/${_base}-lite-${pkgver}.tar.gz
test_optdepends.sh)
sha512sums=('a0d96539171f7cd59a1c2e53fb37adc26467dbab93d3445fc56c7cffdc88f6f04c6ca9798d5117f16f28ed331f1e59dfe52b7ebb4f1c848a2c90ad70c48826da'
'ecffd8038523be647d730d4148fc2edf68a7ac2681433ff1d8377ad65fc871c19b4de78e09796e3968d7589c506dd436c16a52927f8503bd6a44604c45ff30ce')
_install_dir=/opt/${_base}/${_config}
_petsc_arch=arch-${_config}
build() {
_build_dir=${srcdir}/${_base}-${pkgver}
cd ${_build_dir}
export PETSC_ARCH=${_petsc_arch}
export PETSC_DIR=${_build_dir}
OPTFLAGS='-O3 -march=native'
CONFOPTS="
--with-petsc4py=1 \
--with-shared-libraries=1 \
--with-mpi-f90module-visibility=0 \
--with-bison=1 \
--with-cmake=0 \
--with-mpi-dir=/usr \
--with-netcdf=1 \
--with-libjpeg=1 \
--with-yaml=1 \
--with-fftw=1 \
--with-gsl=1 \
--with-zlib=1 \
--with-superlu-lib=-lsuperlu --with-superlu-include=/usr/include/superlu \
--with-suitesparse=1 \
--with-hdf5=1 --with-hdf5-fortran-bindings=1 \
--with-hwloc=1 \
--with-pastix=1 \
--with-ptscotch=1 --with-bison=1 --with-ptscotch-lib=[libesmumps.so,libptscotch.so,libptscotcherr.so,libscotch.so,libscotcherr.so] --with-ptscotch-include=/usr/include/scotch \
--with-scalar-type=complex \
--without-zfp \
$(sh ${srcdir}/test_optdepends.sh)"
echo ${CONFOPTS}
python ./configure --prefix=${_install_dir} ${CONFOPTS} \
--COPTFLAGS=${OPTFLAGS} --CXXOPTFLAGS=${OPTFLAGS} --FOPTFLAGS=${OPTFLAGS}
make ${MAKEFLAGS} all
make DESTDIR=${srcdir}/tmp install
}
# check() {
# cd ${srcdir}/${_base}-${pkgver}
# PYTHONPATH=${srcdir}/tmp/${_install_dir}/lib:${PYTHONPATH} make check
# }
package() {
_build_dir=${srcdir}/${_base}-${pkgver}
mkdir -p ${pkgdir}/${_install_dir}
cp -Hr ${srcdir}/tmp/* ${pkgdir}
# install licence (even though there is no such word as licenses)
install -Dm 644 ${_build_dir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
mkdir -p ${pkgdir}/etc/profile.d
echo export PETSC_DIR=${_install_dir} >${pkgdir}/etc/profile.d/petsc.sh
echo export PYTHONPATH=${_install_dir}/lib:'${PYTHONPATH}' >>${pkgdir}/etc/profile.d/petsc.sh
chmod +x ${pkgdir}/etc/profile.d/petsc.sh
# show where the shared libraries are
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d/
echo ${_install_dir}/lib >${pkgdir}/etc/ld.so.conf.d/petsc.conf
# install pkgconfig settings
install -Dm 644 ${_build_dir}/${_petsc_arch}/lib/pkgconfig/PETSc.pc ${pkgdir}/usr/share/pkgconfig/PETSc.pc
}
Changes since previous scan
--- PKGBUILD @ 2026-09-01 00:11+++ PKGBUILD @ 2026-09-17 00:27@@ -9,7 +9,7 @@ # Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com> _base=petsc pkgname=${_base}-complex-pkgver=3.25.4+pkgver=3.25.5 pkgrel=1 _config=linux-c-opt # if --with-debugging=yes is set then PETSC_ARCH is automatically set to@@ -39,7 +39,7 @@ install=${_base}.install source=(https://web.cels.anl.gov/projects/${_base}/download/release-snapshots/${_base}-lite-${pkgver}.tar.gz test_optdepends.sh)-sha512sums=('7b31561c0ffac2b5795a33e48261983e6d7950ddfd72f4879ede121a4e6b9affdd20245f94a3e32cbb1c68884cd179a0551b661eadd1b7d751ad2ddedc7958aa'+sha512sums=('a0d96539171f7cd59a1c2e53fb37adc26467dbab93d3445fc56c7cffdc88f6f04c6ca9798d5117f16f28ed331f1e59dfe52b7ebb4f1c848a2c90ad70c48826da' 'ecffd8038523be647d730d4148fc2edf68a7ac2681433ff1d8377ad65fc871c19b4de78e09796e3968d7589c506dd436c16a52927f8503bd6a44604c45ff30ce') _install_dir=/opt/${_base}/${_config}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 03:46:42 | Medium | 1 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |