petsc-complex
maintainer carlosal1015
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
MEDIUM
source=() URL on a non-standard host
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
1
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
2
# Maintainer: Auto update bot <auto-update-bot@jingbei.li>
3
# Maintainer: Jingbei Li <i@jingbei.li>
4
# Contributor: Sigvald Marholm <marholm@marebakken.com>
5
# Adapted from the package petsc with the following original contributors:
6
# Contributor: Martin Diehl <https://martin-diehl.net>
7
# Contributor: Andreas Bilke <abilke at cosy dot sbg dot ac dot at>
8
# Contributor: Myles English <myles at rockhead dot biz>
9
# Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com>
10
_base=petsc
11
pkgname=${_base}-complex
12
pkgver=3.25.4
13
pkgrel=1
14
_config=linux-c-opt
15
# if --with-debugging=yes is set then PETSC_ARCH is automatically set to
16
#"linux-c-debug" for some things, so the _config should be changed too
17
#_config=linux-c-debug
18
pkgdesc="Portable, extensible toolkit for scientific computation (complex scalars)"
19
arch=(i686 x86_64)
20
url="https://${_base}.org"
21
license=(BSD-2-Clause)
22
options=(staticlibs)
23
conflicts=(${_base})
24
provides=("${_base}=${pkgver}")
25
depends=(hdf5-openmpi fftw-openmpi gsl lapack libjpeg-turbo libyaml netcdf-openmpi
26
python-numpy python-mpi4py pastix scotch superlu suitesparse zfp zlib hwloc)
27
makedepends=(cmake cython gcc gcc-fortran python-setuptools)
28
# checkdepends=()
29
optdepends=('hypre: support for the hypre sparse system solver'
30
'kokkos: support for Kokkos'
31
'metis: support for metis graph partitioning library'
32
'mumps: support for the mumps sparse solver'
33
'parmetis: support for parmetis parallel graph partitioning library'
34
'scalapack: support for ScaLAPACK'
35
'superlu_dist: support for the superlu_dist sparse solver'
36
'triangle: support for the two-dimensional quality mesh generator and Delaunay triangulator'
37
'valgrind: support for valgrind to help find memory-management problems in programs'
38
'zoltan: support for zoltan')
39
install=${_base}.install
40
source=(https://web.cels.anl.gov/projects/${_base}/download/release-snapshots/${_base}-lite-${pkgver}.tar.gz
41
test_optdepends.sh)
42
sha512sums=('7b31561c0ffac2b5795a33e48261983e6d7950ddfd72f4879ede121a4e6b9affdd20245f94a3e32cbb1c68884cd179a0551b661eadd1b7d751ad2ddedc7958aa'
43
'ecffd8038523be647d730d4148fc2edf68a7ac2681433ff1d8377ad65fc871c19b4de78e09796e3968d7589c506dd436c16a52927f8503bd6a44604c45ff30ce')
44
45
_install_dir=/opt/${_base}/${_config}
46
_petsc_arch=arch-${_config}
47
48
build() {
49
_build_dir=${srcdir}/${_base}-${pkgver}
50
cd ${_build_dir}
51
52
export PETSC_ARCH=${_petsc_arch}
53
export PETSC_DIR=${_build_dir}
54
55
OPTFLAGS='-O3 -march=native'
56
CONFOPTS="
57
--with-petsc4py=1 \
58
--with-shared-libraries=1 \
59
--with-mpi-f90module-visibility=0 \
60
--with-bison=1 \
61
--with-cmake=0 \
62
--with-mpi-dir=/usr \
63
--with-netcdf=1 \
64
--with-libjpeg=1 \
65
--with-yaml=1 \
66
--with-fftw=1 \
67
--with-gsl=1 \
68
--with-zlib=1 \
69
--with-superlu-lib=-lsuperlu --with-superlu-include=/usr/include/superlu \
70
--with-suitesparse=1 \
71
--with-hdf5=1 --with-hdf5-fortran-bindings=1 \
72
--with-hwloc=1 \
73
--with-pastix=1 \
74
--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 \
75
--with-scalar-type=complex \
76
--without-zfp \
77
$(sh ${srcdir}/test_optdepends.sh)"
78
79
echo ${CONFOPTS}
80
python ./configure --prefix=${_install_dir} ${CONFOPTS} \
81
--COPTFLAGS=${OPTFLAGS} --CXXOPTFLAGS=${OPTFLAGS} --FOPTFLAGS=${OPTFLAGS}
82
83
make ${MAKEFLAGS} all
84
make DESTDIR=${srcdir}/tmp install
85
}
86
87
# check() {
88
# cd ${srcdir}/${_base}-${pkgver}
89
# PYTHONPATH=${srcdir}/tmp/${_install_dir}/lib:${PYTHONPATH} make check
90
# }
91
92
package() {
93
_build_dir=${srcdir}/${_base}-${pkgver}
94
95
mkdir -p ${pkgdir}/${_install_dir}
96
cp -Hr ${srcdir}/tmp/* ${pkgdir}
97
98
# install licence (even though there is no such word as licenses)
99
install -Dm 644 ${_build_dir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
100
101
mkdir -p ${pkgdir}/etc/profile.d
102
echo export PETSC_DIR=${_install_dir} >${pkgdir}/etc/profile.d/petsc.sh
103
echo export PYTHONPATH=${_install_dir}/lib:'${PYTHONPATH}' >>${pkgdir}/etc/profile.d/petsc.sh
104
chmod +x ${pkgdir}/etc/profile.d/petsc.sh
105
106
# show where the shared libraries are
107
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d/
108
echo ${_install_dir}/lib >${pkgdir}/etc/ld.so.conf.d/petsc.conf
109
110
# install pkgconfig settings
111
install -Dm 644 ${_build_dir}/${_petsc_arch}/lib/pkgconfig/PETSc.pc ${pkgdir}/usr/share/pkgconfig/PETSc.pc
112
}
113
Changes since previous scan
--- PKGBUILD @ 2026-07-31 00:14+++ PKGBUILD @ 2026-08-03 00:08@@ -9,7 +9,7 @@ # Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com> _base=petsc pkgname=${_base}-complex-pkgver=3.25.3+pkgver=3.25.4 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=('8232e6d2d8c393a2e85d8739f3aaebc655fbf8a6ae68fc0b0cd576697ccd1c6b187b62124af1fe44c9ad6f3aeb31cba656f107f53659b4e7a8b4c01eacef78cc'+sha512sums=('7b31561c0ffac2b5795a33e48261983e6d7950ddfd72f4879ede121a4e6b9affdd20245f94a3e32cbb1c68884cd179a0551b661eadd1b7d751ad2ddedc7958aa' 'ecffd8038523be647d730d4148fc2edf68a7ac2681433ff1d8377ad65fc871c19b4de78e09796e3968d7589c506dd436c16a52927f8503bd6a44604c45ff30ce') _install_dir=/opt/${_base}/${_config}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 11:17:50 | MEDIUM | 1 |
| 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 |