Commit dc2cadd1 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Improve integration of private overrides from CORAL and COOL.


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19930 4525493e-7705-40b1-a816-d608a930855b
parent c633ad54
CORAL_base=
if [ "$HOSTNAME" == "buildcoverity.cern.ch" ]; then
# Override CORAL version (use own local build)
export CMAKE_PREFIX_PATH=/builda/Persistency/CORAL/trunk/$BINARY_TAG
CORAL_base=/builda/Persistency/CORAL/trunk
elif [ "$HOSTNAME" == "moonshot-arm64-04" ]; then
unset CORALCOOL_CMAKE_LCGSUMMARY
export BINARY_TAG=aarch64-ubuntu1404-gcc49-opt
export LCG_releases_base=/home/avalassi/nightlies/20160207
for pkg in `ls -d $LCG_releases_base/*/*/$BINARY_TAG | egrep -v "(CORAL|COOL)"`; do
export CMAKE_PREFIX_PATH=$pkg:$CMAKE_PREFIX_PATH
done
export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG:$CMAKE_PREFIX_PATH
CORAL_base=/home/avalassi/CORAL/trunk
elif [ "$USER" == "avalassi" ]; then
CORAL_base=/home/avalassi/CORAL/trunk
fi
# Override the whole LCG stack (use the nightlies) for selected platforms
if [ "$BINARY_TAG" == "x86_64-slc6-clang37-opt" ]; then
export CORALCOOL_CMAKE_LCGSUMMARY=/tmp/LCG_externals_${BINARY_TAG}.txt
export LCG_releases_base=/afs/cern.ch/sw/lcg/app/nightlies/dev2/Tue
if [ ! -f ${CORALCOOL_CMAKE_LCGSUMMARY} ]; then
###\rm -f ${CORALCOOL_CMAKE_LCGSUMMARY}
touch ${CORALCOOL_CMAKE_LCGSUMMARY}
echo "PLATFORM: ${BINARY_TAG}" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
echo "COMPILER: clang; 3.7" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
ngt=${LCG_releases_base}
# NB keep both tcmalloc and gperftools for now (eventually drop tcmalloc)
for pkg in Boost CppUnit expat Frontier_Client mysql oracle Python QMtest sqlite gperftools tcmalloc valgrind XercesC igprof libunwind CORAL Qt ROOT; do
pkg1=$pkg
if [ "$pkg" == "Frontier_Client" ]; then pkg1=frontier_client; fi
if [ "$pkg" == "Qt" ]; then pkg1=qt; fi
if [ -d $ngt/$pkg1 ]; then
pkg2=`find $ngt/$pkg1 -mindepth 2 -maxdepth 2 -name $BINARY_TAG`
if [ "$pkg2" != "" ]; then
echo "$pkg; xxx; xxx; $pkg2" >> ${CORALCOOL_CMAKE_LCGSUMMARY}
fi
fi
done
unset pkg2
unset ngt
fi
# [DEFAULT] Override CORAL version (use own local build)
# Override CORAL version (use own local build) and execute any overrides therein
if [ "$CORAL_base" != "" ]; then
if [ -f $CORAL_base/overrideSetupCMake.sh ]; then
echo "INFO: additional overrides from $CORAL_base/overrideSetupCMake.sh"
. $CORAL_base/overrideSetupCMake.sh
else
###echo Nothing to override # A statement is needed in the else block!
export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG
###export CMAKE_PREFIX_PATH=/home/avalassi/CORAL/trunk/$BINARY_TAG:/afs/cern.ch/sw/lcg/app/releases/ROOT/6.06.00/x86_64-slc6-gcc48-opt/root # Also override ROOT to debug ROOT-7864 in ROOT 6.06.00
echo "INFO: no additional overrides from CORAL"
fi
# NB BINARY_TAG may have been set in the CORAL overrides (eg on ARM)
export CMAKE_PREFIX_PATH=$CORAL_base/$BINARY_TAG:$CMAKE_PREFIX_PATH
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment