From dfd456be6bfb75f99f4fe7d3242fd511d987a71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3=20Prims?= <oriol.tinto@lmu.de> Date: Mon, 27 Mar 2023 09:59:14 +0200 Subject: [PATCH] Using spack to satisfy bzip2 dependency. --- templates/common/build_icon.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/common/build_icon.sh b/templates/common/build_icon.sh index 0761921..78d386a 100644 --- a/templates/common/build_icon.sh +++ b/templates/common/build_icon.sh @@ -42,6 +42,11 @@ if [ ! -f "${definitions_tar_file}" ]; then defs_url=https://opendata.dwd.de/weather/lib/grib/${definitions_tar_file} wget "${defs_url}" + if [ ! $(rpm -qa | grep bzip2) ]; then + spack install bzip2 + spack load bzip2 + fi + # Decompress definitions file tar -xf "${definitions_tar_file}" # Create a file containing the environment variable that needs to be set in order to use DWD's definitions: -- GitLab