petsc

MEDIUM
maintainer MartinDiehl 20 votes scanned 2026-11-01 14:00:44.307000
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

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:30 source=(http://web.cels.anl.gov/projects/petsc/download/release-snapshots/${pkgname}-${pkgver}.tar.gz

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Martin Diehl <aur@martin-diehl.net>
2# Contributor: Andreas Bilke <abilke at cosy dot sbg dot ac dot at>
3# Contributor: Myles English <myles at rockhead dot biz>
4# Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com>
5pkgver=3.26.1
6pkgrel=1
7pkgname=petsc
8pkgdesc="Portable, extensible toolkit for scientific computation"
9arch=('i686' 'x86_64')
10url="https://petsc.org"
11license=('BSD-2-Clause')
12options=(staticlibs)
13depends=('openmpi' 'lapack' 'bison' 'fftw-openmpi' 'gsl' 'hdf5-openmpi' 'hwloc' 'libjpeg-turbo' 'libyaml'
14 'pastix' 'scotch' 'suitesparse' 'superlu' 'superlu_dist' 'zfp' 'zlib'
15 'python-numpy' 'python-mpi4py')
16makedepends=('gcc' 'gcc-fortran' 'cmake' 'cython' 'python-setuptools')
17provides=('petsc4py')
18optdepends=(
19 'hypre: support for HYPRE'
20 'kokkos: support Kokkos'
21 'metis: support for METIS'
22 'mumps: support for MUMPS'
23 'parmetis: support for ParMETIS'
24 'scalapack: support for ScaLAPACK'
25 'triangle: support for Triangle'
26 'zoltan: support for zoltan'
27 )
28
29install=petsc.install
30source=(http://web.cels.anl.gov/projects/petsc/download/release-snapshots/${pkgname}-${pkgver}.tar.gz
31 test_optdepends.sh
32 setuptools.patch)
33sha512sums=('78c260d628c8572e44b70b34ed57b220b5dfc3f6f561a9861f095ce2d329bcd14831bd6875d2cdf86416dda7ca27d55ec636eb5185fb1a73d38acbd63f62bb5c'
34 '4dc58de1393c2920de6ca08dcab71af0b13d21391d6b46f4a48aab122f087a3f4e4deae7b72b15fde5c7d344bcf12f5b766ff7c0ba4d816b074f94091a00cb97'
35 '3b89914d70a9788d8a0ecc059283320beabd96c163302f0d3c89405afac9969d282462e1372830025f74509c925c2b9b5a80a81e62a9e48fc7dcb8adbf18fe23')
36
37PETSC_ARCH=linux-c-opt
38_install_dir=/opt/petsc/${PETSC_ARCH}
39
40build() {
41 cd ${pkgname}-${pkgver}
42 export PETSC_DIR=${PWD}
43 export PETSC_ARCH=${PETSC_ARCH}
44
45 CONFOPTS="--with-shared-libraries=1 \
46 --with-petsc4py=1 \
47 --with-mpi-ftn-module=mpi_f08 \
48 --with-cmake=0 \
49 --with-debugging=0 \
50 --with-mpi-dir=/usr \
51 --with-fftw=1 \
52 --with-gsl=1 \
53 --with-hdf5=1 --with-hdf5-fortran-bindings=1 \
54 --with-hwloc=1 \
55 --with-libjpeg=1 \
56 --with-pastix=1 \
57 --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 \
58 --with-suitesparse=1 \
59 --with-superlu-lib=-lsuperlu --with-superlu-include=/usr/include/superlu \
60 --with-superlu_dist-lib=-lsuperlu_dist --with-superlu_dist-include=/usr/include/superlu_dist \
61 --with-yaml=1 \
62 --with-zfp=1 \
63 $(sh ${srcdir}/test_optdepends.sh)"
64
65 echo './configure' ${CONFOPTS}
66 echo 'CFLAGS='${CFLAGS}
67 echo 'CXXFLAGS='${CXXFLAGS}
68 echo 'FFLAGS='${FFLAGS}
69 echo 'LDFLAGS='${LDFLAGS}
70 echo 'MAKEFLAGS='${MAKEFLAGS}
71
72 ./configure --prefix=${_install_dir} ${CONFOPTS} \
73 "CFLAGS=$CFLAGS" \
74 "CXXFLAGS=$CXXFLAGS" \
75 "FFLAGS=$FFLAGS" \
76 "LDFLAGS=$LDFLAGS -lstdc++" \
77 "MAKEFLAGS=$MAKEFLAGS"
78
79 make all
80}
81
82package() {
83 cd ${pkgname}-${pkgver}
84 export PETSC_DIR=${PWD}
85 export PETSC_ARCH=${PETSC_ARCH}
86
87 make DESTDIR=${pkgdir} install
88
89 install -Dm 644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
90
91 mkdir -p ${pkgdir}/etc/profile.d
92 echo export PETSC_DIR=${_install_dir} > ${pkgdir}/etc/profile.d/petsc.sh
93 echo export PYTHONPATH=${_install_dir}/lib:'${PYTHONPATH}' >> ${pkgdir}/etc/profile.d/petsc.sh
94 chmod 644 ${pkgdir}/etc/profile.d/petsc.sh
95
96 # show where the shared libraries are
97 install -dm 755 ${pkgdir}/etc/ld.so.conf.d/
98 echo ${_install_dir}/lib > ${pkgdir}/etc/ld.so.conf.d/petsc.conf
99
100 # install pkgconfig settings
101 install -Dm 644 ${PETSC_ARCH}/lib/pkgconfig/PETSc.pc ${pkgdir}/usr/share/pkgconfig/PETSc.pc
102}
103

Changes since previous scan

--- PKGBUILD @ 2026-11-01 00:21
+++ PKGBUILD @ 2026-11-01 14:00
@@ -2,7 +2,7 @@
# 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>
-pkgver=3.26.0
+pkgver=3.26.1
pkgrel=1
pkgname=petsc
pkgdesc="Portable, extensible toolkit for scientific computation"
@@ -30,7 +30,7 @@
source=(http://web.cels.anl.gov/projects/petsc/download/release-snapshots/${pkgname}-${pkgver}.tar.gz
test_optdepends.sh
setuptools.patch)
-sha512sums=('2c956d384453171e84f71ae988ef8f2762d40bc5e45cae262525761fc19b8c013250912d04270e101345c099c45c86d700162471d99a68dbfe94c5235b08d2f9'
+sha512sums=('78c260d628c8572e44b70b34ed57b220b5dfc3f6f561a9861f095ce2d329bcd14831bd6875d2cdf86416dda7ca27d55ec636eb5185fb1a73d38acbd63f62bb5c'
'4dc58de1393c2920de6ca08dcab71af0b13d21391d6b46f4a48aab122f087a3f4e4deae7b72b15fde5c7d344bcf12f5b766ff7c0ba4d816b074f94091a00cb97'
'3b89914d70a9788d8a0ecc059283320beabd96c163302f0d3c89405afac9969d282462e1372830025f74509c925c2b9b5a80a81e62a9e48fc7dcb8adbf18fe23')

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 14:00:44 Medium 1
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion