med-openmpi-docs
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
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)
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# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Original: Michele Mocciola <mickele>
# Contributor: Brice Méalier <mealier_brice@yahoo.fr>
# Contributor: César Vecchio <cesar UNDERSTRIKE vecchio AT yahoo DOT com>
# Contributor: valandil
# Contributor: nim65s
# Contributor: Joey Dumont <joey.dumont@gmail.com>
# Contributor: simonp
# Contributor: Martin Ortbauer <mortbauer@gmail.com>
_pkgname=med
pkgname=med-openmpi-docs
pkgver=4.1.1
pkgrel=1
pkgdesc="Generic pre- and post-processing platform for numerical simulation (openmpi version) (Documentation)"
url="https://www.salome-platform.org/downloads"
license=('LGPL')
depends=("med=$pkgver")
makedepends=('gcc-fortran'
'hdf5-openmpi'
'cmake'
'doxygen'
'graphviz'
)
arch=('any')
source=("http://files.salome-platform.org/Salome/other/${_pkgname}-${pkgver}.tar.gz"
'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'
)
sha256sums=('dc2b5d54ebf0666e3ff2e974041d2ab0da906061323537023ab165d573389dd0'
'82d28b6ae2ee6ceb3c6de9acb861a49741e2e759c7c556217f7d284216788206')
options=('debug')
prepare() {
patch -d "${_pkgname}-${pkgver}_SRC" -p1 -i "${srcdir}/hdf5-1.12.patch"
sed 's/if H5_VERS_MINOR > 10/if 0/g' -i "${_pkgname}-${pkgver}_SRC/src/ci/MEDfileCompatibility.c"
# set libdir as cmake install path instead of share
sed 's|share/cmake|lib${LIB_SUFFIX}/cmake|g' -i "${_pkgname}-${pkgver}_SRC/CMakeLists.txt"
}
build() {
CXX="mpicxx" \
CC="mpicc" \
FC="mpif90" \
F9X="mpif90" \
CFLAGS+=" -DH5_USE_18_API" \
cmake -S "${_pkgname}-${pkgver}_SRC" -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMEDFILE_USE_MPI=ON \
-DMEDFILE_BUILD_PYTHON=OFF \
-DMEDFILE_BUILD_DOC=ON \
-DMEDFILE_BUILD_TESTS=OFF \
-DMEDFILE_INSTALL_DOC=ON \
-DCMAKE_SKIP_RPATH=ON
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
# remove headers, binaries and libraries
rm -rf "${pkgdir}/usr/include"
rm -rf "${pkgdir}/usr/bin"
rm -rf "${pkgdir}/usr/lib"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |