From 822a6b76113bca2b7ffbcaab6aa6c69d16420ef0 Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Wed, 6 Mar 2024 23:42:04 +0100 Subject: [PATCH] make dag_bootstrap_startup work on alma9. For #8256 (#8270) --- scripts/dag_bootstrap_startup.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/scripts/dag_bootstrap_startup.sh b/scripts/dag_bootstrap_startup.sh index da8a8f3212..0868864753 100755 --- a/scripts/dag_bootstrap_startup.sh +++ b/scripts/dag_bootstrap_startup.sh @@ -14,13 +14,21 @@ done export PATH="/usr/local/bin:/bin:/usr/bin:/usr/bin:$PATH" export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH -export PYTHONPATH=$PYTHONPATH:/data/srv/pycurl3/7.44.1 -#os_ver=$(source /etc/os-release;echo $VERSION_ID) -#curl_path="/cvmfs/cms.cern.ch/slc${os_ver}_amd64_gcc700/external/curl/7.59.0" -#libcurl_path="${curl_path}/lib" -#source ${curl_path}/etc/profile.d/init.sh -source /cvmfs/cms.cern.ch/slc7_amd64_gcc900/external/curl/7.59.0/etc/profile.d/init.sh +OS_Version=`cat /etc/os-release |grep VERSION_ID|cut -d= -f2|tr -d \"|cut -d. -f1` +if [ "$OS_Version" = "7" ] +then + # following two lines are needed to use pycurl on python3 without the full COMP or CMSSW env. + export PYTHONPATH=$PYTHONPATH:/data/srv/pycurl3/7.44.1 + source /cvmfs/cms.cern.ch/slc7_amd64_gcc900/external/curl/7.59.0/etc/profile.d/init.sh +elif [ "$OS_Version" = "9" ] +then + # alma9 comes with working curl and pycurl ! + : # ":" means do nothing in bash, like pass in python +else + echo " WE DO NOT SUPPORT OS_Version = $OS_Version " + exit 1 +fi srcname=$0 env > ${srcname%.sh}.env