From f2654bdf78a53048d5a5ea2a643feafe0f864de4 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 23 Apr 2021 16:03:26 +0200 Subject: [PATCH] spns #24217 Validation SALOME 9.7.0 - medfile embed libgfortran.so.5 if devtoolset-8 and CentOS 7 - relies on X_SCLS environment variable --- products/compil_scripts/med.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/products/compil_scripts/med.sh b/products/compil_scripts/med.sh index 0481354..b5d7f63 100755 --- a/products/compil_scripts/med.sh +++ b/products/compil_scripts/med.sh @@ -66,6 +66,25 @@ then exit 3 fi +# post-build action in case devtoolset-8 is used +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +case $LINUX_DISTRIBUTION in + CO7) + if [ -n "$X_SCLS" ] + then + X_SCLSVALUE=$(echo $X_SCLS) + if [ $X_SCLSVALUE == "devtoolset-8" ]; then + echo "WARNING: devtoolset-8 is installed on ${LINUX_DISTRIBUTION} - libgfortran will be embedded..." + cp -RP /usr/lib64/libgfortran.so.5* $PRODUCT_INSTALL/lib/ + fi + else + echo "INFO: X_SCLS does not seem to be set. skipping..." + fi + ;; + *) + ;; +esac + echo echo "########## END" -- 2.39.2