Skip to content

Commit

Permalink
build: Add cvmfs setup for LCG105 on centos7/8 and RHEL9 lxplus (acts…
Browse files Browse the repository at this point in the history
…-project#2911)

The LXPLUS machines are slowly moving to [RHEL9](https://linux.web.cern.ch/rhel/). 
I use LCG cmvfs setup often to compile acts on lxplus. I've added a setup script to extend the setup of the correct environment on rhel9 machines and keeps the support for centos7/8 using LCG105. 
I successfully compiled and ran the odd full chain on RHEL9. 
In the future deprecated LCG setups should be cleaned.
  • Loading branch information
pbutti authored Feb 1, 2024
1 parent a76b24c commit 9b2fd7d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CI/setup_cvmfs_lcg105.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# setup appropriate LCG release via cvmfs

if test -e /etc/centos-release && grep 'CentOS Linux release 7' /etc/centos-release; then
lcg_os=centos7
elif test -e /etc/centos-release && grep 'CentOS Stream release 8' /etc/centos-release; then
lcg_os=centos8
# not centos. Check for RHEL
elif test -e /etc/redhat-release && grep 'Linux release 9' /etc/redhat-release; then
lcg_os=el9
else
echo "Unsupported system" 1>&2
return
fi

lcg_release=LCG_105
lcg_compiler=gcc11-opt
lcg_platform=x86_64-${lcg_os}-${lcg_compiler}
lcg_view=/cvmfs/sft.cern.ch/lcg/views/${lcg_release}/${lcg_platform}

source ${lcg_view}/setup.sh
# extra variables required to build acts
export DD4hep_DIR=${lcg_view}

0 comments on commit 9b2fd7d

Please sign in to comment.