lhapdf
LOW
maintainer fsiegert
0 votes
scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |