lhapdf
LOW
maintainer fsiegert
0 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The source is a tarball from hepforge.org, a project-affiliated host, used to build the software from source; this is normal AUR packaging behavior despite the non-whitelisted domain.
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 hepforge.org, a project-affiliated host, used to build the software from source; this is normal AUR packaging behavior despite the non-whitelisted domain.
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:14
source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Konstantin Gizdov <arch at kge dot pw>
2
# Contributor: Frank Siegert <frank dot siegert at googlemail dot com>
3
# Contributor: JP-Ellis <josh at jpellis dot me>
4
pkgname=lhapdf
5
pkgver=6.5.5
6
pkgrel=1
7
pkgdesc="A particle physics tool for evaluating PDFs from discretised data files"
8
arch=('x86_64')
9
url="https://lhapdf.hepforge.org/"
10
license=('GPL3')
11
makedepends=('cython')
12
depends=('python-numpy')
13
install=lhapdf.install
14
source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz"
15
'fix_installed_pdf_permissions.patch')
16
b2sums=('14677cfb0e40e61006eb2cd69373a14d8c4049a6c19d2a504b736c733be35c25a11362e5aa0d0fe233d7c477fe5f9ef60084ca71330566b2728908017ccf90e7'
17
'5d47b87e8a83e177d93960140c71367d53ae07d3c861b0ed28efcdcee88e9ebb03e1292220ab1c061c63176aba9e5a304e24d535c8c78d9cd50a688a604f5f45')
18
19
prepare() {
20
cd "${srcdir}/LHAPDF-${pkgver}"
21
22
# add in correct flags
23
sed '/linkargs =/a linkargs += " '"${LDFLAGS} ${LTOFLAGS}"' "' -i wrappers/python/build.py.in
24
# installed PDFs must respect system permissions and ownership structure
25
patch -Np1 -i "${srcdir}/fix_installed_pdf_permissions.patch"
26
}
27
28
build() {
29
cd "${srcdir}/LHAPDF-${pkgver}"
30
export CXXFLAGS="$CFLAGS" # do not define _GLIBCXX_ASSERTIONS
31
autoreconf -i
32
./configure \
33
--prefix=/usr \
34
--sysconfdir=/etc \
35
--localstatedir=/var \
36
--runstatedir=/run \
37
--datarootdir=/usr/share/${pkgname} \
38
--datadir=/usr/share/${pkgname} \
39
--docdir=/usr/share/doc/${pkgname} \
40
--pdfdir=/usr/share/${pkgname}/LHAPDF \
41
--localedir=/usr/share/locale
42
# for some reason Python build fails otherwise
43
export RIVET_LOCAL=ON
44
make
45
}
46
47
check() {
48
cd "${srcdir}/LHAPDF-${pkgver}"
49
make -k check
50
}
51
52
package() {
53
cd "${srcdir}/LHAPDF-${pkgver}"
54
make DESTDIR="${pkgdir}/" install
55
}
56
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 |