From 9f7c7b47f72849298c7b09096808885f5ddc9c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de> Date: Wed, 28 Jun 2023 10:57:36 +0200 Subject: [PATCH] Fix bug in build_icon.sh when setting up the eccodes env file. Removing debug spack spec. --- templates/common/build_icon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/common/build_icon.sh b/templates/common/build_icon.sh index 460d98d..e455295 100644 --- a/templates/common/build_icon.sh +++ b/templates/common/build_icon.sh @@ -39,7 +39,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then else spack repo add ${WORKDIR}/production_project/spack_repo fi - spack spec $SPACK_BUILD_ICON + spack install --reuse $SPACK_BUILD_ICON #TODO: had some problems with spack load when more than one version is available, adding --first to overcome that # although in principle we should not install the model if its already installed. @@ -71,6 +71,6 @@ if [ ! -f "${definitions_tar_file}" ]; then echo "export ECCODES_DEFINITION_PATH=${WORKDIR}/definitions.edzw-${eccodes_version}-1" >eccodes_defs.env ECCODES_PATH=$( spack find -p eccodes%${COMPILER} | grep -i $USER | cut -d" " -f 3 ) - echo "export LD_LIBRARY_PATH=${ECCODES_PATH}/lib:\${LD_LIBRARY_PATH}" >> eccodes_defs.env + echo "export LD_LIBRARY_PATH=${ECCODES_PATH}/lib:\${LD_LIBRARY_PATH:-}" >> eccodes_defs.env fi -- GitLab