From 99e8ae706c715a5e057b998e4917527f3f93d575 Mon Sep 17 00:00:00 2001 From: Kolja Kauder Date: Wed, 31 Jan 2024 13:19:54 -0500 Subject: [PATCH] Small fix to pushd and popd around source thisroot.sh --- scripts/jana-this.sh.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/jana-this.sh.in b/scripts/jana-this.sh.in index d39be9224..2b26be789 100644 --- a/scripts/jana-this.sh.in +++ b/scripts/jana-this.sh.in @@ -21,7 +21,11 @@ export PATH=@JANA_INSTALL_DIR@/bin:${PATH} if [ "@JANA2_HAVE_ROOT@" == "1" ]; then if [ -f "@ROOTSYS@/bin/thisroot.sh" ]; then unset ROOTSYS - . "@ROOTSYS@/bin/thisroot.sh" + # workaround for https://github.com/root-project/root/issues/14085 + # thisroot.sh does not recognize bash when running in qemu (like eic-shell on Silicon) + pushd @ROOT_BINDIR@ >/dev/null + source thisroot.sh + popd >/dev/null fi fi