dune-istl
maintainer carlosal1015
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from the official project's download domain; building from official project sources, even on a non-whitelisted host, is standard and low risk.
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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a source tarball from the official project's download domain; building from official project sources, even on a non-whitelisted host, is standard and low risk.
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:24
source=(https://dune-project.org/download/${_tar}{,.asc})
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Josh Hoffer < hoffer dot joshua at gmail dot com >
2
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
3
# Contributor: Lukas Böger <dev___AT___lboeger___DOT___de>
4
pkgname=dune-istl
5
_tarver=2.10.0
6
_tar="${_tarver}/${pkgname}-${_tarver}.tar.gz"
7
pkgver="${_tarver}"
8
pkgrel=1
9
pkgdesc="Iterative Solver Template Library"
10
arch=(x86_64)
11
url="https://dune-project.org/modules/${pkgname}"
12
license=(LicenseRef-GPL-2.0-only-with-DUNE-exception)
13
depends=("dune-common>=${pkgver}" arpack)
14
makedepends=(texlive-latexextra biber doxygen graphviz python-scikit-build)
15
optdepends=('vc: C++ Vectorization library'
16
'doxygen: Generate the class documentation from C++ sources'
17
'graphviz: Graph visualization software'
18
'parmetis: Parallel Graph Partitioning and Fill-reducing Matrix Ordering'
19
'scotch: Software package and libraries for graph, mesh and hypergraph partitioning, static mapping, and sparse matrix block ordering'
20
'superlu: Set of subroutines to solve a sparse linear system'
21
'arpackpp: C++ interface to ARPACK'
22
'suitesparse: A collection of sparse matrix libraries')
23
options=(!emptydirs)
24
source=(https://dune-project.org/download/${_tar}{,.asc})
25
sha512sums=('067fc9a35704a63b7b1c81ca20893b3e47af69633db409d7faa1501a1a0f920bcf5b76c005ee29c65c2ebf0d05bced242313cefe93641cd262317c4e4cf9e5a3'
26
'SKIP')
27
validpgpkeys=('703607A1FD9AF4205E735522B95BE0EFB19724A1') # Simon Praetorius <simon.praetorius@tu-dresden.de>
28
29
prepare() {
30
cd ${pkgname}-${pkgver}
31
# install header for run test/linear/test_linearsolver.cc in dumux
32
sed -i '115 a install(FILES anisotropic.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/istl/paamg/test)' dune/istl/paamg/test/CMakeLists.txt
33
sed -i '8 a BUILD_ON_INSTALL' doc/CMakeLists.txt
34
# https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/blob/master/patches/istl-2.6.patch
35
sed -i 's/*coarseSmoother_, 1E-2, 1000, 0/*coarseSmoother_, 1E-12, 1000, 0/' dune/istl/paamg/amg.hh
36
export _pyversion=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
37
python -m venv --system-site-packages _skbuild/linux-${CARCH}-${_pyversion}/cmake-build/dune-env
38
}
39
40
build() {
41
cd ${pkgname}-${pkgver}
42
43
XDG_CACHE_HOME="${PWD}" \
44
python setup.py build \
45
--build-type=None \
46
-G 'Unix Makefiles' \
47
-DBUILD_SHARED_LIBS=TRUE \
48
-DCMAKE_CXX_STANDARD=20 \
49
-DCMAKE_C_COMPILER=gcc \
50
-DCMAKE_CXX_COMPILER=g++ \
51
-DCMAKE_C_FLAGS='-Wall -fdiagnostics-color=always' \
52
-DCMAKE_CXX_FLAGS="-O2 -Wall -fdiagnostics-color=always -mavx" \
53
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
54
-DCMAKE_DISABLE_FIND_PACKAGE_LATEX=FALSE \
55
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=FALSE \
56
-DCMAKE_DISABLE_FIND_PACKAGE_Vc=TRUE \
57
-DENABLE_HEADERCHECK=ON \
58
-DDUNE_ENABLE_PYTHONBINDINGS=ON \
59
-DDUNE_PYTHON_INSTALL_LOCATION='none' \
60
-DDUNE_PYTHON_WHEELHOUSE="dist"
61
}
62
63
package() {
64
cd ${pkgname}-${pkgver}
65
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py --skip-cmake install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
66
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
67
}
68
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 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 |
| 2026-07-15 00:09:25 | LOW | 2 |