From b14548d1428eeabf4460788a099f79cbc63b3086 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Tue, 12 Nov 2024 10:52:29 +0100 Subject: [PATCH] build: LC_ALL=C for DD4hep in setup (#3844) This popped up in Spack builds, and can cause Xerces-C failures like: ``` Could not load a transcoding service ``` See also: https://github.com/key4hep/key4hep-spack/issues/170 --- cmake/setup_withdeps.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/setup_withdeps.sh.in b/cmake/setup_withdeps.sh.in index b4a17641134..ce1dc3506e7 100644 --- a/cmake/setup_withdeps.sh.in +++ b/cmake/setup_withdeps.sh.in @@ -51,6 +51,9 @@ if [[ -d "@Geant4_DIR@" ]]; then fi if [[ -d "@DD4hep_DIR@" ]]; then . @DD4hep_INCLUDE_DIRS@/../bin/thisdd4hep.sh + # Without this, DD4hep's Xerces-C XML parsing fails with: + # > Could not load a transcoding service + export LC_ALL=C fi if [[ -d "@podio_DIR@" ]]; then export LD_LIBRARY_PATH="@podio_LIBRARY_DIR@:${LD_LIBRARY_PATH}"