geant4
MEDIUM
maintainer donpicoro
19 votes
scanned 2026-10-05 23:40:58.404909
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
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:47
source=("http://geant4-data.web.cern.ch/releases/${pkgname}-${_pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Luis Sarmiento < Luis.Sarmiento-ala-nuclear.lu.se >
2
pkgname='geant4'
3
pkgver=11.4.3
4
_pkgver=v${pkgver}
5
pkgrel=1
6
pkgdesc="A simulation toolkit for particle physics interactions."
7
# https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/gettingstarted.html
8
# cmake version? https://bugzilla-geant4.kek.jp/show_bug.cgi?id=2700
9
depends=('cmake>=3.16'
10
'clhep>=2.4.6.0'
11
'expat>=2.0.1'
12
'xerces-c>=3'
13
'qt6-base' # soqt depends on qt6-base
14
'glu'
15
'openmotif'
16
'soqt' # this depends on qt6-base anyway
17
'zlib>=1.2.3'
18
'python>=3'
19
'boost'
20
)
21
conflicts=('geant4_devel')
22
# Datasets in order as they appear on https://geant4.web.cern.ch/download/#version#.html
23
optdepends=('java-environment: for histogram visualizations and analysis'
24
'tcsh: for C Shell support'
25
'python: for G4Python support'
26
'geant4-neutronhpdata: Experimental neutron data files with thermal cross sections'
27
'geant4-ledata: Data files for low energy electromagnetic processes'
28
'geant4-levelgammadata: Data files for photon evaporation'
29
'geant4-radioactivedata: Data files for radioactive decay hadronic processes'
30
'geant4-particlexsdata: Data files for evaluated p, d, t, He3, He4 and gamma cross sections, replaces geant4-neutronxsdata'
31
'geant4-piidata: Data files for shell ionisation cross sections'
32
'geant4-realsurfacedata: Data files for measured optical surface reflectance'
33
'geant4-saiddata: Data files from evaluated cross-sections in SAID data-base'
34
'geant4-abladata: Data files for nuclear shell effects in INCL/ABLA hadronic mode'
35
'geant4-incldata: Data files for proton and neutron density profiles'
36
'geant4-ensdfstatedata: Nuclei properties from the Evaluated Nuclear Structure Data Files'
37
'geant4-channelingdata: Data files for the simulations of channeling trajectories'
38
'geant4-particlehpdata: Data files from the TALYS nuclear model code'
39
'geant4-nudexlibdata: Nuclear De-excitation data library for (n,gamma) reactions'
40
'geant4-urrptdata: Particle Tables for the treatment of low-energy neutrons in the Unresolved Resonance Region (URR)'
41
)
42
url="http://geant4.cern.ch/"
43
arch=('x86_64')
44
license=('custom: http://geant4.cern.ch/license/')
45
options=('!emptydirs' '!debug')
46
install="${pkgname}.install"
47
source=("http://geant4-data.web.cern.ch/releases/${pkgname}-${_pkgver}.tar.gz"
48
"${pkgname}.install")
49
sha256sums=('f192bd580a6e3a4f606000e81c3f7d7089644de2906a42233d9f223b74b4a944'
50
'0eae153900d995603b0b465c9f17225ba76dd8118377507916fc709360482058')
51
52
## Remove this if you want to keep an even smaller package
53
## No need to wait for compression when just installing it.
54
PKGEXT='.pkg.tar'
55
56
prepare() {
57
58
cd ${srcdir}
59
60
local cmake_options=(
61
-B build
62
-S ${pkgname}-${_pkgver}
63
# Standard options
64
-D CMAKE_INSTALL_PREFIX=/usr
65
-D GEANT4_USE_G3TOG4=ON
66
-D GEANT4_USE_GDML=ON
67
-D GEANT4_USE_INVENTOR_QT=ON
68
-D GEANT4_USE_OPENGL_X11=ON
69
-D GEANT4_USE_QT=ON
70
-D GEANT4_USE_RAYTRACER_X11=ON
71
-D GEANT4_USE_SYSTEM_CLHEP=ON
72
-D GEANT4_USE_SYSTEM_ZLIB=ON
73
-D GEANT4_USE_XM=ON
74
# Advanced options
75
-D GEANT4_INSTALL_PACKAGE_CACHE=OFF
76
-D GEANT4_BUILD_TLS_MODEL=global-dynamic
77
)
78
79
env -i \
80
QT_SELECT=6 \
81
PATH=/usr/bin \
82
cmake "${cmake_options[@]}"
83
}
84
85
build() {
86
87
cd ${srcdir}
88
G4VERBOSE=1 cmake --build build
89
}
90
91
package() {
92
93
# normally the geant4.[c]sh is meant to configure the
94
# LD_LIBRARY_PATH, PATH and the "G4DATASETS". Let's not source that
95
# script since
96
#
97
# - LD_LIBRARY_PATH can be set using ldconf
98
# - PATH is not really needed
99
# - the "G4DATASETS" are not installed by default in this package
100
101
cd ${srcdir}
102
DESTDIR="${pkgdir}" cmake --build build --target install
103
}
104
105
# All this is just a comment
106
echo ""
107
: <<'EOF'
108
109
From: https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/installguide.html#geant4-build-options
110
Last revisited: Jan 14, 2026. (11.4)
111
112
|----------------------------------+------------------------------------------------------+----------------|
113
| option | default | set to |
114
|----------------------------------+------------------------------------------------------+----------------|
115
| CMAKE_INSTALL_PREFIX | /usr/local | /usr |
116
| CMAKE_BUILD_TYPE | Release | |
117
| GEANT4_BUILD_MULTITHREADED | ON | |
118
| GEANT4_INSTALL_DATA | OFF | |
119
| GEANT4_INSTALL_DATADIR | CMAKE_INSTALL_DATAROOTDIR | |
120
| GEANT4_USE_G3TOG4 | OFF | ON |
121
| GEANT4_USE_GDML | OFF | ON |
122
| GEANT4_USE_INVENTOR | OFF | |
123
| GEANT4_USE_INVENTOR_QT | OFF | ON |
124
| GEANT4_USE_OPENGL_WIN32 | OFF, Windows Only | |
125
| GEANT4_USE_OPENGL_X11 | OFF, Unix Only | ON |
126
| GEANT4_USE_QT | OFF | ON |
127
| GEANT4_USE_RAYTRACER_X11 | OFF, Unix only | ON |
128
| GEANT4_USE_SYSTEM_CLHEP | OFF | ON |
129
| GEANT4_USE_SYSTEM_EXPAT | ON | |
130
| GEANT4_USE_SYSTEM_ZLIB | OFF | ON |
131
| GEANT4_USE_VTK | OFF | |
132
| GEANT4_USE_XM | OFF, Unix Only | ON |
133
|----------------------------------+------------------------------------------------------+----------------|
134
| BUILD_SHARED_LIBS | ON | |
135
| BUILD_STATIC_LIBS | OFF | |
136
| CMAKE_CXX_STANDARD | 17 | |
137
| CMAKE_INSTALL_BINDIR | bin | |
138
| CMAKE_INSTALL_INCLUDEDIR | include | |
139
| CMAKE_INSTALL_LIBDIR | lib(+?SUFFIX) | |
140
| CMAKE_INSTALL_DATAROOTDIR | share | |
141
| GEANT4_INSTALL_DATA_TIMEOUT | 1500 | |
142
| GEANT4_INSTALL_EXAMPLES | ON | |
143
| GEANT4_INSTALL_PACKAGE_CACHE | ON | OFF |
144
| GEANT4_INSTALL_DATASETS_TENDL | OFF | |
145
| GEANT4_INSTALL_DATASETS_NUDEXLIB | OFF | |
146
| GEANT4_INSTALL_DATASETS_URRPT | OFF | |
147
| GEANT4_BUILD_MSVC_MP | OFF, Windows Only | |
148
| GEANT4_BUILD_TLS_MODEL | initial-exec, Unix only | global-dynamic |
149
| GEANT4_BUILD_STORE_TRAJECTORY | ON | |
150
| GEANT4_BUILD_VERBOSE_CODE | ON | |
151
| GEANT4_BUILD_BUILTIN_BACKTRACE | OFF | |
152
| GEANT4_BUILD_PHP_AS_HP | OFF what's this? | |
153
| GEANT4_USE_QT_QT5 | OFF | |
154
| GEANT4_USE_SMARTSTACK | OFF what's this | |
155
| GEANT4_USE_SYSTEM_PTL | OFF | |
156
| GEANT4_USE_TBB | OFF | |
157
| GEANT4_ENABLE_TESTING | OFF | |
158
| GEANT4_USE_FREETYPE | OFF | |
159
| GEANT4_USE_HDF5 | OFF | |
160
| GEANT4_USE_USOLIDS | OFF | |
161
| CMAKE_PREFIX_PATH | | |
162
|----------------------------------+------------------------------------------------------+----------------|
163
164
|--------------------------------+-----------------------------------------------------------------------------------------|
165
| CMAKE_CXX_FLAGS | -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith |
166
| | -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe |
167
| CMAKE_CXX_FLAGS_RELEASE | -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno |
168
| CMAKE_CXX_FLAGS_DEBUG | -g |
169
| CMAKE_CXX_FLAGS_RELWITHDEBINFO | -O2 -g |
170
|--------------------------------+-----------------------------------------------------------------------------------------|
171
EOF
172
echo ""
173
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-10-05 23:40@@ -1,6 +1,6 @@ # Maintainer: Luis Sarmiento < Luis.Sarmiento-ala-nuclear.lu.se > pkgname='geant4'-pkgver=11.4.2+pkgver=11.4.3 _pkgver=v${pkgver} pkgrel=1 pkgdesc="A simulation toolkit for particle physics interactions."@@ -46,7 +46,7 @@ install="${pkgname}.install" source=("http://geant4-data.web.cern.ch/releases/${pkgname}-${_pkgver}.tar.gz" "${pkgname}.install")-sha256sums=('5720f2bba6921027e206ad4f0a06f9bcc348adab36240e8b27710f20ce3e971a'+sha256sums=('f192bd580a6e3a4f606000e81c3f7d7089644de2906a42233d9f223b74b4a944' '0eae153900d995603b0b465c9f17225ba76dd8118377507916fc709360482058') ## Remove this if you want to keep an even smaller packageScan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-05 23:40:58 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 18:04:49 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |