dumux

maintainer carlosal1015 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a tarball from a university-hosted GitLab instance, which is plausibly the project's official repository; building from project-owned infrastructure, even on a non-whitelisted host, is normal for AUR packages and does not constitute a high 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 source is a tarball from a university-hosted GitLab instance, which is plausibly the project's official repository; building from project-owned infrastructure, even on a non-whitelisted host, is normal for AUR packages and does not constitute a high 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:21 source=(https://git.iws.uni-stuttgart.de/${pkgname}-repositories/${pkgname}/-/archive/${_tar})

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
2pkgname=dumux
3_dunever=2.10.0
4_tarver=3.10.0
5_tar="${_tarver}/${pkgname}-${_tarver}.tar.gz"
6pkgver="${_tarver}"
7pkgrel=2
8pkgdesc="An open-source simulator and research code in modern C++"
9arch=(x86_64)
10url="https://${pkgname}.org"
11license=(GPL-3.0-or-later)
12depends=("dune-grid>=${_dunever}" "dune-istl>=${_dunever}" "dune-localfunctions>=${_dunever}")
13makedepends=(doxygen graphviz python-scikit-build)
14optdepends=('dune-alugrid: for grid manager ALUGrid support'
15 'dune-foamgrid: for grid manager FoamGrids support'
16 'dune-functions: for functions spaces support'
17 'opm-grid: for cornerpoint grid support'
18 'dune-subgrid: for grid manager SubGrid support'
19 'dune-spgrid: for grid manager SPGrid support'
20 'dune-mmesh: for grid manager MMesh support')
21source=(https://git.iws.uni-stuttgart.de/${pkgname}-repositories/${pkgname}/-/archive/${_tar})
22sha512sums=('4f285e359fc999949ec347390bcc6feb5c291d10e974a720d1f1468a771177d231240da6094c2fa3941adb799ccd097fc58376c20fc7d0fd9518fa21ef0f6f01')
23
24prepare() {
25 cd ${pkgname}-${pkgver}
26 export _pyversion=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
27 sed -i 's/^Version: '"${pkgver%%.0}"'/Version: '"${pkgver}"'/' dune.module
28 sed -i "s/'requests',/'requests', 'dune-geometry',/" pyproject.toml
29 sed -i 's/"python"/"\/usr\/include\/dumux\/common\/"/' python/dumux/common/properties.py
30 python -m venv --system-site-packages _skbuild/linux-${CARCH}-${_pyversion}/cmake-build/dune-env
31}
32
33build() {
34 cd ${pkgname}-${pkgver}
35
36 XDG_CACHE_HOME="${PWD}" \
37 python setup.py build \
38 --build-type=None \
39 -G 'Unix Makefiles' \
40 -DBUILD_SHARED_LIBS=TRUE \
41 -DCMAKE_CXX_STANDARD=17 \
42 -DCMAKE_C_COMPILER=gcc \
43 -DCMAKE_CXX_COMPILER=g++ \
44 -DCMAKE_C_FLAGS='-Wall -fdiagnostics-color=always' \
45 -DCMAKE_CXX_FLAGS="-O2 -Wall -fdiagnostics-color=always -mavx" \
46 -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
47 -DALLOW_CXXFLAGS_OVERWRITE=ON \
48 -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=FALSE \
49 -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=FALSE \
50 -DENABLE_HEADERCHECK=ON \
51 -DDUNE_ENABLE_PYTHONBINDINGS=ON \
52 -DDUNE_PYTHON_INSTALL_LOCATION='none' \
53 -DDUNE_PYTHON_WHEELHOUSE="dist"
54}
55
56package() {
57 cd ${pkgname}-${pkgver}
58 PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py --skip-cmake install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
59 install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
60 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
61 install -Dm 644 python/${pkgname}/__init__.py -t "${pkgdir}${site_packages}"/${pkgname}
62 find "${pkgdir}" -type d -empty -delete
63}
64

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion