]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
fix texmf conflicts if several concurrent builds on different linux distributions...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 7 Oct 2022 12:37:42 +0000 (14:37 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 7 Oct 2022 12:37:42 +0000 (14:37 +0200)
products/compil_scripts/openturns-1.18.sh
products/compil_scripts/openturns-1.19.sh

index ada4b7860b3463e0c995d75d1e0ea648b45a06fe..ee93b1a7c95b722d7a45709851c05082ce48e634 100755 (executable)
@@ -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 ]
index 1fc4f1237e95d7055a98c29fcdf73ce24d30dd76..6e62bf8d54ea776bcc5488f3719fdc8d215d83a7 100755 (executable)
@@ -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 ]