Package Details: geant4-full 11.4.2-2

Git Clone URL: https://aur.archlinux.org/geant4-full.git (read-only, click to copy)
Package Base: geant4-full
Description: A simulation toolkit for particle physics interactions - includes all the optional libraries
Upstream URL: http://geant4.cern.ch/
Licenses: custom: http://geant4.cern.ch/license/
Conflicts: geant4, geant4-abladata, geant4-channelingdata, geant4-debug, geant4-ensdfstatedata, geant4-incldata, geant4-ledata, geant4-levelgammadata, geant4-neutronhpdata, geant4-neutronxsdata, geant4-nudexlibdata, geant4-particlehpdata, geant4-particlexsdata, geant4-piidata, geant4-radioactivedata, geant4-realsurfacedata, geant4-saiddata, geant4-uurptdata, geant4_devel
Provides: geant4, geant4-abladata, geant4-channelingdata, geant4-ensdfstatedata, geant4-incldata, geant4-ledata, geant4-levelgammadata, geant4-neutronhpdata, geant4-neutronxsdata, geant4-nudexlibdata, geant4-particlehpdata, geant4-particlexsdata, geant4-piidata, geant4-radioactivedata, geant4-realsurfacedata, geant4-saiddata, geant4-uurptdata
Submitter: effeffe
Maintainer: effeffe
Last Packager: effeffe
Votes: 2
Popularity: 0.000000
First Submitted: 2022-12-14 14:46 (UTC)
Last Updated: 2026-08-14 14:04 (UTC)

Dependencies (16)

Required by (48)

Sources (3)

Latest Comments

1 2 3 Next › Last »

effeffe commented on 2026-08-14 12:16 (UTC) (edited on 2026-08-14 14:26 (UTC) by effeffe)

I have updated the PKGBUILD to automatically detect hdf5-geant4. If this is present and installed on the system, geant4 builds against hdf5. I have also tested with remage, and it seems to compile.

-effeffe

effeffe commented on 2026-08-14 11:52 (UTC) (edited on 2026-08-14 14:05 (UTC) by effeffe)

Ciao @gipert,

I missed the fact there is !static in makepkg. I have just updated the hdf5-geant4 to be non-static, and pushed it =)

-effeffe

P.S.: thank you

gipert commented on 2026-08-14 09:20 (UTC)

Ciao @effeeffe,

I just gave it a go. It seems promising, there is just one thing to fix in hdf5-geant4 (figured out by Claude) I ran into while trying to build https://github.com/legend-exp/remage:

hdf5-geant4 2.2.0-1 is built with static libs on, so it installs hdf5_static-targets*.cmake and sets HDF5_PROVIDES_STATIC_LIBS YES — but makepkg's default !staticlibs deletes every .a. The export files then reference a missing /usr/lib/libhdf5.a and find_package(HDF5) dies with FATAL_ERROR, breaking Geant4's find_dependency(HDF5) and everything downstream.

Fix: add -DBUILD_STATIC_LIBS=OFF to the CMake line in the PKGBUILD, rebuild, reinstall. (Your old hdf5-threadsafe/PKGBUILD had it; the 2.2.0 one dropped it.) Then remage needs no HDF5 workaround.

Could you fix? Thank you.

PS: auguri per la tua tesi!

effeffe commented on 2026-08-13 14:55 (UTC) (edited on 2026-08-13 16:29 (UTC) by effeffe)

hi @gipert,

sorry, only now I had a bit of time to look into the hdf5 issue. Yes, we could have a hdf5 version for geant4. I see there is a openmpi version, but I'm not sure this would help. Personally, I use both openmpi and multi-threading as I run in HPC environemnts.

EDIT: I have published a hdf5-geant4 package onto the aur. This provides thread-safe and openmpi. I can only test it at with Geant4 at compile time as I don't have much experience with hdf5. Hence, i would appreciate if you could do some more tests with it.

I have added it into the Geant4 compile options (-DGEANT4_USE_HDF5) , yet it is OFF by default. To use it, please set it to ON before compiling.

Maybe you can have a look into it

EDIT2: there seem to be an issue with how geant4 handles hdf5, which results in compile error: "too many arguments to function ‘int H5Tget_array_dims2(hid_t, hsize_t*)’ "

EDIT3: I have patched hdf5_h within g4tools, and it now compiles. If you compile it with HDF5=ON, you can now test it.

Thank you, and sorry for the delay (Scusa el ritardo, ma son drio scrìvar la tesi)

Kind regards

-effeffe

gipert commented on 2025-03-13 09:49 (UTC)

Hi effeeffe, I've been using HDF5 output for quite a while now and it seems robust. I'd really like to see this option activated.

In the meanwhile, I tried enabling the option myself and already ran into issues. G4 requires a thread-safe build of HDF5, but there is unfortunately no Arch package that provides it at the moment (also on AUR). Additionally, I'm not sure it would be a good idea to swap the standard hdf5 package with a thread-safe one (for reasons I don't fully understand yet). I think the best would be to have a custom HDF5 install, exclusively used by Geant4. What do you think?

effeffe commented on 2025-03-13 00:25 (UTC)

Hi gipert, I'll see what I can do. I've been avoiding hf5 because it's still being tested, but I definitely can get vtk, smartstack and expat enabled. I'll look into qt3d. I'd still use the system zlib as it's the most updated one. I'd never enable static libs unless we have a use for it, and php_as_hp as it would remive fine tuning and the fundamental modular setting geant4 aims for. Similarly, usolids is unstable.

Hdf5 should really be tested before enabling it by default. If this is something you'd like to do, please feel free to report on this. It's just a matter of adding -DGEANT4_USE_HDF5=ON.

The main aim of the "full" package os to come with as many libraries as possible, and as many stable features as possible.

Cheers effeffe

gipert commented on 2025-03-12 22:54 (UTC)

Would it be possible to add HDF5 support? Would be great to see this package closer to "full"...

Known Features: staticlibs[no] multithreading[yes] smartstack[no] php_as_hp[no] clhep[yes] expat[no] zlib[no] gdml[yes] ptl[yes] usolids[no] freetype[yes] hdf5[no] g3tog4[yes] qt[yes] qt3d[no] motif[yes] raytracer-x11[yes] opengl-x11[yes] openinventor[yes] vtk[no]

effeffe commented on 2024-11-10 23:20 (UTC)

Just updated to 12.2.2

I had to patch a couple of files to remove non-implicit casting from G4String into QString.

Please let me know of any issues

ryottmp3 commented on 2024-02-28 18:31 (UTC)

makepkg stalls at: ==> Tidying install... -> Removing info/doc files... -> Compressing man pages... -> Stripping debugging symbols from binaries and libraries... for yay -S geant4-full I do not seem to have this problem with other packages. Editing PKGBUILD and passing '!strip' in options appears to patch the issue

FibonacciEffect commented on 2024-02-28 09:20 (UTC)

It works now, thanks a lot : )