We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc4a23 commit b3f2a76Copy full SHA for b3f2a76
1 file changed
ci/package_install.sh
@@ -93,8 +93,14 @@ archive_name_from_data_dir() {
93
94
geant4_dataset_records=()
95
96
-if command -v geant4-config >/dev/null 2>&1; then
97
- eval "$(geant4-config --sh)"
+# Populate the G4*DATA descriptors from geant4-config only when they are not
+# already exported. A relocated geant4.env (the macOS tarball flow) exports them
98
+# pointing at the data it actually installed; geant4-config instead reports the
99
+# absolute paths baked in at build time, which do not exist after relocation.
100
+if ! env | grep -qE '^G4[A-Z0-9_]*DATA='; then
101
+ if command -v geant4-config >/dev/null 2>&1; then
102
+ eval "$(geant4-config --sh)"
103
+ fi
104
fi
105
106
while IFS='=' read -r env_name env_path; do
0 commit comments