med-openmpi-docs
maintainer orphaned
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads the source from a project-associated host (salome-platform.org) and a patch from Gentoo's official repository; both are legitimate sources for building the software, and the build process is standard without any obfuscated or malicious behavior.
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 the source from a project-associated host (salome-platform.org) and a patch from Gentoo's official repository; both are legitimate sources for building the software, and the build process is standard without any obfuscated or malicious behavior.
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:26
source=("http://files.salome-platform.org/Salome/other/${_pkgname}-${pkgver}.tar.gz" -
PKGBUILD:27
'hdf5-1.12.patch::https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/med/files/med-4.1.0-0003-build-against-hdf5-1.12.patch?id=350ea3e89d0e87e35a3a4b5f2ce92b55aae9d226'
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
2
# Original: Michele Mocciola <mickele>
3
# Contributor: Brice Méalier <mealier_brice@yahoo.fr>
4
# Contributor: César Vecchio <cesar UNDERSTRIKE vecchio AT yahoo DOT com>
5
# Contributor: valandil
6
# Contributor: nim65s
7
# Contributor: Joey Dumont <joey.dumont@gmail.com>
8
# Contributor: simonp
9
# Contributor: Martin Ortbauer <mortbauer@gmail.com>
10
11
_pkgname=med
12
pkgname=med-openmpi-docs
13
pkgver=4.1.1
14
pkgrel=1
15
pkgdesc="Generic pre- and post-processing platform for numerical simulation (openmpi version) (Documentation)"
16
url="https://www.salome-platform.org/downloads"
17
license=('LGPL')
18
depends=("med=$pkgver")
19
makedepends=('gcc-fortran'
20
'hdf5-openmpi'
21
'cmake'
22
'doxygen'
23
'graphviz'
24
)
25
arch=('any')
26
source=("http://files.salome-platform.org/Salome/other/${_pkgname}-${pkgver}.tar.gz"
27
'hdf5-1.12.patch::https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/med/files/med-4.1.0-0003-build-against-hdf5-1.12.patch?id=350ea3e89d0e87e35a3a4b5f2ce92b55aae9d226'
28
)
29
sha256sums=('dc2b5d54ebf0666e3ff2e974041d2ab0da906061323537023ab165d573389dd0'
30
'82d28b6ae2ee6ceb3c6de9acb861a49741e2e759c7c556217f7d284216788206')
31
options=('debug')
32
33
prepare() {
34
patch -d "${_pkgname}-${pkgver}_SRC" -p1 -i "${srcdir}/hdf5-1.12.patch"
35
sed 's/if H5_VERS_MINOR > 10/if 0/g' -i "${_pkgname}-${pkgver}_SRC/src/ci/MEDfileCompatibility.c"
36
# set libdir as cmake install path instead of share
37
sed 's|share/cmake|lib${LIB_SUFFIX}/cmake|g' -i "${_pkgname}-${pkgver}_SRC/CMakeLists.txt"
38
}
39
40
build() {
41
CXX="mpicxx" \
42
CC="mpicc" \
43
FC="mpif90" \
44
F9X="mpif90" \
45
CFLAGS+=" -DH5_USE_18_API" \
46
cmake -S "${_pkgname}-${pkgver}_SRC" -B build \
47
-DCMAKE_BUILD_TYPE=Release \
48
-DCMAKE_INSTALL_PREFIX=/usr \
49
-DMEDFILE_USE_MPI=ON \
50
-DMEDFILE_BUILD_PYTHON=OFF \
51
-DMEDFILE_BUILD_DOC=ON \
52
-DMEDFILE_BUILD_TESTS=OFF \
53
-DMEDFILE_INSTALL_DOC=ON \
54
-DCMAKE_SKIP_RPATH=ON
55
56
cmake --build build
57
}
58
59
package() {
60
DESTDIR="${pkgdir}" cmake --install build
61
62
# remove headers, binaries and libraries
63
rm -rf "${pkgdir}/usr/include"
64
rm -rf "${pkgdir}/usr/bin"
65
rm -rf "${pkgdir}/usr/lib"
66
}
67
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 |