From 942646b38b7048849640b147b3f72d61e4ca4fdb Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 7 Oct 2022 14:37:42 +0200 Subject: [PATCH] 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 --- products/compil_scripts/openturns-1.18.sh | 12 ++++++++++++ products/compil_scripts/openturns-1.19.sh | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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 ] -- 2.39.2