From: Nabil Ghodbane Date: Fri, 7 Oct 2022 12:37:42 +0000 (+0200) Subject: fix texmf conflicts if several concurrent builds on different linux distributions... X-Git-Tag: V9_11_0~249 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=942646b38b7048849640b147b3f72d61e4ca4fdb;p=tools%2Fsat_salome.git fix texmf conflicts if several concurrent builds on different linux distributions. see https://tex.stackexchange.com/questions/467824/is-it-possible-to-relocate-my-texmf-directory for additional information --- diff --git a/products/compil_scripts/openturns-1.18.sh b/products/compil_scripts/openturns-1.18.sh index ada4b78..ee93b1a 100755 --- a/products/compil_scripts/openturns-1.18.sh +++ b/products/compil_scripts/openturns-1.18.sh @@ -112,6 +112,18 @@ echo "*** cmake" $CMAKE_OPTIONS mkdir -p $BUILD_DIR/openturns mkdir -p $BUILD_DIR/cache/pip + +# since we are using several nodes and share the same $HOME +# compilation can get screwed up. +# following this discussion: https://tex.stackexchange.com/questions/467824/is-it-possible-to-relocate-my-texmf-directory +# we define the following environment variables +export TEXMFHOME=$BUILD_DIR/texmf +export TEXMFVAR=$BUILD_DIR/texlive +export TEXMFCONFIG=$BUILD_DIR/texlive +mkdir -p $TEXMFHOME +mkdir -p $TEXMFVAR +mkdir -p $TEXMFCONFIG + cd $BUILD_DIR/openturns cmake $CMAKE_OPTIONS $SOURCE_DIR/openturns-1.18 if [ $? -ne 0 ] diff --git a/products/compil_scripts/openturns-1.19.sh b/products/compil_scripts/openturns-1.19.sh index 1fc4f12..6e62bf8 100755 --- a/products/compil_scripts/openturns-1.19.sh +++ b/products/compil_scripts/openturns-1.19.sh @@ -112,6 +112,18 @@ echo "*** cmake" $CMAKE_OPTIONS rm -rf $BUILD_DIR mkdir -p $BUILD_DIR/openturns mkdir -p $BUILD_DIR/cache/pip + +# since we are using several nodes and share the same $HOME +# compilation can get screwed up. +# following this discussion: https://tex.stackexchange.com/questions/467824/is-it-possible-to-relocate-my-texmf-directory +# we define the following environment variables +export TEXMFHOME=$BUILD_DIR/texmf +export TEXMFVAR=$BUILD_DIR/texlive +export TEXMFCONFIG=$BUILD_DIR/texlive +mkdir -p $TEXMFHOME +mkdir -p $TEXMFVAR +mkdir -p $TEXMFCONFIG + cd $BUILD_DIR/openturns cmake $CMAKE_OPTIONS $SOURCE_DIR/openturns-1.19 if [ $? -ne 0 ]