Ganga input sandbox not working with new style CMake configuration
Reported by @cburr:
lb-dev -c x86_64_v2-centos7-gcc11-opt DaVinci/v54r1
cd DaVinciDev_v54r1/
make ganga-input-sandbox
bash -x ./build.x86_64_v2-centos7-gcc11-opt/ganga/run
+++ dirname ./build.x86_64_v2-centos7-gcc11-opt/ganga/run
++ cd ./build.x86_64_v2-centos7-gcc11-opt/ganga
++ pwd
+ exec lb-run --siteroot=/cvmfs/lhcb.cern.ch/lib -c x86_64_v2-centos7-gcc11-opt --user-area /tmp/DaVinciDev_v54r1/build.x86_64_v2-centos7-gcc11-opt/ganga DaVinciDev/54.1
WARNING:lb-run:Decided best container to use is None
WARNING:lb-run:trying old SetupProject (cannot find project DaVinciDev v54r1 for x86_64_v2-centos7-gcc11-opt in /tmp/DaVinciDev_v54r1/build.x86_64_v2-centos7-gcc11-opt/ganga:/cvmfs/lhcb.cern.ch/lib/lhcb:/cvmfs/lhcb.cern.ch/lib/lcg/releases:/cvmfs/lhcb.cern.ch/lib/lcg/app/releases:/cvmfs/lhcb.cern.ch/lib/lcg/external:/cvmfs/lhcb.cern.ch/lib/contrib:/cvmfs/lhcb.cern.ch/lib/cmake:/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2252/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake:/cvmfs/lhcb.cern.ch/lib/lhcb:/cvmfs/lhcb.cern.ch/lib/lcg/releases:/cvmfs/lhcb.cern.ch/lib/lcg/app/releases:/cvmfs/lhcb.cern.ch/lib/lcg/external:/cvmfs/lhcb.cern.ch/lib/contrib:/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2252/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake)
ALWAYS:SetupProject:Configuring DaVinciDev 54.1 from /tmp/DaVinciDev_v54r1/build.x86_64_v2-centos7-gcc11-opt/ganga/DaVinciDev_54.1
ERROR:SetupProject:#CMT---> Warning: package DaVinciDevSys * not found (requested by cmt_standalone)
ERROR:SetupProject:Could not produce the environment, check the arguments
The problem is that with the new CMake configuration we create the directory DaVinciDev_54.1
in the Ganga input sandbox, but lb-run DaVinciDev/54.1
is not able to find it.
Possible solutions:
- change the generation of the input sandbox to create
DaVinciDev_v54r1
- change the implementation of the
run
script to uselb-run --path-to-project
to bypass the lookup - change
lb-run
to matchDaVinciDev_54.1