Skip to content

Commit

Permalink
Merge pull request #2369 from ganga-devs/centos7_fix
Browse files Browse the repository at this point in the history
fix for LbEnv
  • Loading branch information
mesmith75 authored Jul 2, 2024
2 parents 4b18df0 + e0ed59b commit cda3ea8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ganga/GangaLHCb/Lib/Applications/GaudiExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def getEnvScript(self, isLbEnv):
Return the script which wraps the running command in a correct environment
"""
if isLbEnv:
return 'source /cvmfs/lhcb.cern.ch/lib/LbEnv && export BINARY_TAG={PLATFORM}'\
return 'unset LBENV_SOURCED && source /cvmfs/lhcb.cern.ch/lib/LbEnv && export BINARY_TAG={PLATFORM}'\
' && export CMTCONFIG={PLATFORM} && '.format(PLATFORM=self.platform)
else:
return 'export CMTCONFIG=%s; source /cvmfs/lhcb.cern.ch/lib/LbLogin.sh --cmtconfig=%s && ' % (
Expand Down Expand Up @@ -550,12 +550,11 @@ def execCmd(self, cmd):
# I would have preferred to execute all commands against inside `./run` so we have some sane behaviour
# but this requires a build to have been run before we can use this
# command reliably... so we're just going to be explicit

if not path.isfile(path.join(self.directory, 'build.%s' % self.platform, 'run')):
initialCommand = 'export CMTCONFIG=%s && export BINARY_TAG=%s && source /cvmfs/lhcb.cern.ch/lib/LbLogin.sh --cmtconfig=%s && make -j%s' % (
self.platform, self.platform, self.platform, self.nMakeCores)
if isLbEnv:
initialCommand = 'source /cvmfs/lhcb.cern.ch/lib/LbEnv && source LbLogin.sh -c %s && make -j%s' % (
initialCommand = 'unset LBENV_SOURCED && source /cvmfs/lhcb.cern.ch/lib/LbEnv && lb-set-platform %s && make -j%s' % (
self.platform, self.nMakeCores)
if self.useApptainer or 'slc6' in self.platform:
try:
Expand Down

0 comments on commit cda3ea8

Please sign in to comment.