]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
SPNS #38031: support Debian 12 bookworm platform
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 22 Dec 2023 13:01:11 +0000 (14:01 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 22 Dec 2023 13:01:11 +0000 (14:01 +0100)
15 files changed:
applications/SALOME-9.12.0-native.pyconf
applications/SALOME-master-native.pyconf
products/ParaView.pyconf
products/PyFMI.pyconf
products/compil_scripts/C3PO.sh
products/compil_scripts/PyFMI-2.6.sh
products/compil_scripts/YACSGEN.sh
products/compil_scripts/med-4.1.1.sh
products/compil_scripts/opencv.sh
products/compil_scripts/openturns-1.21.sh
products/compil_scripts/tbb-2021.9.0.sh [new file with mode: 0755]
products/opencv.pyconf
products/openturns.pyconf
products/patches/paraview-5.11.0.p010-python-3.11.patch [new file with mode: 0644]
products/tbb.pyconf

index 6c8454a5511d488ed82e0085e2a87f95eec1ae66..b68cf83d4880feeb16584029c6c5898a0e05fcc9 100644 (file)
@@ -11,7 +11,7 @@ APPLICATION :
     debug : 'no'
     base : 'no'
     python3 : 'yes'
-    platform : ["FD32", "FD34", "FD36", "FD37", "FD38", "CO8", "CO9", "DB10", "DB11", "UB20.04", "UB22.04"]
+    platform : ["FD32", "FD34", "FD36", "FD37", "FD38", "CO8", "CO9", "DB10", "DB11", "DB12", "UB20.04", "UB22.04"]
     environ :
     {
         build :
@@ -255,6 +255,18 @@ __overwrite__ :
         'APPLICATION.products.PyFMI'            : {tag:'2.6',    base: 'no', section: 'version_2_6_no_pip'}
         'APPLICATION.products.MEDCOUPLING' : {tag:'V9_12_0', base: 'no', section: 'default_MPI', hpc: 'yes'}
     }
+    {
+        __condition__ : "VARS.dist in ['DB12']"
+        'APPLICATION.rm_products'               : ['root', 'URANIE']
+        'APPLICATION.products.cmake'            : 'native' # TTK requires cmake > 3.21
+        'APPLICATION.products.opencv'           : {tag: '3.2.0',     base: 'no', section: 'version_3_2_0_DB12'}
+        'APPLICATION.products.cminpack'         : 'native'
+        'APPLICATION.products.tbb'              : '2021.9.0'
+        'APPLICATION.products.PyFMI'            : {tag: '2.6',       base: 'no', section: 'version_2_6_DB12'          }
+        'APPLICATION.products.nlopt'            : '2.5.0'
+        'APPLICATION.products.openturns'        : {tag: '1.21',  base: 'no', section: 'version_1_21_DB12'        }
+        'APPLICATION.products.ParaView'         : {tag: '5.11.0',    base: 'no', section: 'version_5_11_0_MPI_DB12', hpc: 'yes' }
+    }
     {
         # CentOS 8 repositories don't include sphinxintl package which must be installed through pip.
         # To avoid its missing (system_info pyconf key doesn't handle this use case), we embed it.
@@ -285,8 +297,8 @@ __overwrite__ :
          'APPLICATION.products.statsmodels'      : {tag: '0.6.1',   base: 'no', section: 'version_0_6_1_no_pip'              }
          'APPLICATION.products.nose'             : {tag: '1.3.7',   base: 'no', section: 'version_1_3_7_no_pip'              }
          'APPLICATION.products.ParaView'         : {tag: '5.11.0',  base: 'no', section: 'version_5_11_0_MPI_CO9', hpc: 'yes'}
-         'APPLICATION.products.YDEFX'            : {tag: 'V9_12_0',base: 'no', section: 'version_V9_12_0_CO9'               }
-         'APPLICATION.products.YACS'             : {tag: 'V9_12_0',base: 'no',section: 'version_V9_12_0_CO9'               }
+         'APPLICATION.products.YDEFX'            : {tag: 'V9_12_0',base: 'no', section: 'version_V9_12_0_CO9'                }
+         'APPLICATION.products.YACS'             : {tag: 'V9_12_0',base: 'no',section: 'version_V9_12_0_CO9'                 }
     }
     {
         __condition__ : "VARS.dist in ['FD32']"
@@ -334,13 +346,13 @@ __overwrite__ :
         'APPLICATION.products.PyFMI'            : {tag: '2.6',       base: 'no', section: 'version_2_6_FD37'                    }
         'APPLICATION.products.medfile'          : {tag: '4.1.1',     base: 'no', section: 'version_4_1_1_FD37'                  }
         'APPLICATION.products.ParaView'         : {tag: '5.11.0',    base: 'no',  section: 'version_5_11_0_MPI_FD37', hpc: 'yes'}
-        'APPLICATION.products.CONFIGURATION'    : {tag:'V9_12_0',     base: 'no', section: 'default'                          }
-        'APPLICATION.products.SHAPER'           : {tag:'V9_12_0',     base: 'no', section: 'default',               hpc: 'no' }
+        'APPLICATION.products.CONFIGURATION'    : {tag:'V9_12_0',    base: 'no', section: 'default'                             }
+        'APPLICATION.products.SHAPER'           : {tag:'V9_12_0',    base: 'no', section: 'default',                  hpc: 'no' }
     }
 
     {
         __condition__ : "VARS.dist in ['FD38']"
-        'APPLICATION.rm_products' : ['root', 'URANIE', 'mesa']
+        'APPLICATION.rm_products' : ['root', 'URANIE']
         'APPLICATION.products.cmake'            : 'native'
         'APPLICATION.products.opencv'           : {tag: '3.2.0',     base: 'no', section: 'version_3_2_0_FD38'                  }
         'APPLICATION.products.omniORB'          : '4.2.5'
@@ -355,7 +367,7 @@ __overwrite__ :
         'APPLICATION.products.catalyst'         : {tag: '2.0',       base: 'no', section: 'version_2_0_FD38'                    }
         'APPLICATION.products.gmsh'             : {tag: '4.10.3',    base: 'no', section: 'version_4_10_3_FD38'                 }
         'APPLICATION.products.ParaView'         : {tag: '5.11.0',    base: 'no', section: 'version_5_11_0_MPI_FD38', hpc: 'yes' }
-        'APPLICATION.products.CONFIGURATION'    : {tag:'V9_12_0', base: 'no', section: 'default'                          }
-        'APPLICATION.products.SHAPER'           : {tag:'V9_12_0', base: 'no', section: 'default',              hpc: 'no'  }
+        'APPLICATION.products.CONFIGURATION'    : {tag:'V9_12_0',    base: 'no', section: 'default'                             }
+        'APPLICATION.products.SHAPER'           : {tag:'V9_12_0',    base: 'no', section: 'default',                 hpc: 'no'  }
     }
 ]
index 56d25115068b150e0a4ec324d2903e5abef4d4dc..edc0fa61f54f1a8ce46aa1d0b0025d29474ffd74 100644 (file)
@@ -11,7 +11,7 @@ APPLICATION :
     debug : 'no'
     base : 'no'
     python3 : 'yes'
-    platform : ["FD32", "FD34", "FD36", "FD37", "FD38", "CO8", "CO9", "DB10", "DB11", "UB20.04", "UB22.04"]
+    platform : ["FD32", "FD34", "FD36", "FD37", "FD38", "CO8", "CO9", "DB10", "DB11", "DB12", "UB20.04", "UB22.04"]
     environ :
     {
         build :
@@ -255,6 +255,18 @@ __overwrite__ :
         'APPLICATION.products.PyFMI'            : {tag:'2.6',    base: 'no', section: 'version_2_6_no_pip'}
         'APPLICATION.products.MEDCOUPLING' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'}
     }
+    {
+        __condition__ : "VARS.dist in ['DB12']"
+        'APPLICATION.rm_products'               : ['root', 'URANIE']
+        'APPLICATION.products.cmake'            : 'native' # TTK requires cmake > 3.21
+        'APPLICATION.products.opencv'           : {tag: '3.2.0',     base: 'no', section: 'version_3_2_0_DB12'}
+        'APPLICATION.products.cminpack'         : 'native'
+        'APPLICATION.products.tbb'              : '2021.9.0'
+        'APPLICATION.products.PyFMI'            : {tag: '2.6',       base: 'no', section: 'version_2_6_DB12'          }
+        'APPLICATION.products.nlopt'            : '2.5.0'
+        'APPLICATION.products.openturns'        : {tag: '1.21',  base: 'no', section: 'version_1_21_DB12'        }
+        'APPLICATION.products.ParaView'         : {tag: '5.11.0',    base: 'no', section: 'version_5_11_0_MPI_DB12', hpc: 'yes' }
+    }
     {
         # CentOS 8 repositories don't include sphinxintl package which must be installed through pip.
         # To avoid its missing (system_info pyconf key doesn't handle this use case), we embed it.
@@ -337,7 +349,6 @@ __overwrite__ :
         'APPLICATION.products.CONFIGURATION'    : {tag:'master',     base: 'no', section: 'default'                             }
         'APPLICATION.products.SHAPER'           : {tag:'master',     base: 'no', section: 'default',                  hpc: 'no' }
     }
-
     {
         __condition__ : "VARS.dist in ['FD38']"
         'APPLICATION.rm_products' : ['root', 'URANIE', 'mesa']
index 7d806dd3e6cc911e2d4ad20e49c90dd3df85d340..ade40700b63aa5ce6eff758d7ec07599805aa0fb 100755 (executable)
@@ -405,6 +405,33 @@ version_5_11_0_MPI_LATA_64BITS_IDS :
     opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst']
 }
 
+version_5_11_0_MPI_DB12 :
+{
+    compil_script :  'ParaView-5.11.0.sh'
+    archive_info : {archive_name : "ParaView-5.11.0.tar.gz"}
+    patches : ['paraview-5.11.0.p001-FindCGNS.patch',
+               'paraview-5.11.0.p002-FindMPI.patch',
+               'paraview-5.11.0.p006-GIL.patch',
+               'paraview-5.11.0.p007-mpi4py-FD37.patch',
+               'paraview-5.11.0.p009-openturns-1.21.patch',
+               'paraview-5.11.0.p010-python-3.11.patch'
+              ]
+    depend : [
+              'Python',
+              'hdf5',
+              'qt',
+              'PyQt',
+              'sip',
+              'boost',
+              'libxml2',
+              'freetype',
+              'matplotlib',
+              'cgns',
+              'Pygments'
+              ]
+    opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst']
+}
+
 version_5_11_0_MPI_DB10 :
 {
     compil_script :  'ParaView-5.11.0.sh'
@@ -492,7 +519,8 @@ version_5_11_0_MPI_FD38 :
                'paraview-5.11.0.p006-GIL.patch',
                'paraview-5.11.0.p007-mpi4py-FD37.patch',
                'paraview-5.11.0.p008-cstdint-FD38.patch',
-               'paraview-5.11.0.p009-openturns-1.21.patch'
+               'paraview-5.11.0.p009-openturns-1.21.patch',
+               'paraview-5.11.0.p010-python-3.11.patch'
               ]
     depend : [
               'Python',
@@ -518,7 +546,8 @@ version_5_11_0_MPI_FD37 :
                'paraview-5.11.0.p002-FindMPI.patch',
                'paraview-5.11.0.p006-GIL.patch',
                'paraview-5.11.0.p007-mpi4py-FD37.patch',
-               'paraview-5.11.0.p009-openturns-1.21.patch'
+               'paraview-5.11.0.p009-openturns-1.21.patch',
+               'paraview-5.11.0.p010-python-3.11.patch'
               ]
     depend : [
               'Python',
index e7261fe0a7c5b6524111e0780ec2f4a740844ca0..f30da845d8b49925126ef792b3de0fc228256f31 100644 (file)
@@ -51,6 +51,17 @@ version_2_6_win :
     }
 }
 
+version_2_6_DB12:
+{
+    patches: ['pyfmi-2.6-python-3.1x.01.patch']
+    compil_script : "PyFMI-2.6.sh"
+    properties:
+    {
+      incremental : "yes"
+      pip : "no"
+    }
+}
+
 version_2_6_UB22_04:
 {
     patches: ['pyfmi-2.6-python-3.1x.01.patch']
index 041be0fcedce19b55699fcc060c29c58386fc471..ba675475f50bdd26706aee8b2da69680e08576c8 100755 (executable)
@@ -38,6 +38,28 @@ then
     exit 4
 fi
 
+echo "INFO: check presence of $PRODUCT_INSTALL/local"
+if [ -d "$PRODUCT_INSTALL/local" ]; then
+    echo "INFO: $PRODUCT_INSTALL/local is present -  reearrange ..."
+    if [ -d ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ]; then
+        mv ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/site-packages
+    fi
+    for D in $(ls $PRODUCT_INSTALL/local); do
+        echo "INFO: next subdirectory: $PRODUCT_INSTALL/local/$D"
+        if [ -d $PRODUCT_INSTALL/$D ]; then
+            cp -r $PRODUCT_INSTALL/local/$D/* $PRODUCT_INSTALL/$D/
+        else
+            mv $PRODUCT_INSTALL/local/$D $PRODUCT_INSTALL/$D
+        fi
+    done
+    rm -rf $PRODUCT_INSTALL/local
+fi
+
+if [ -d $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages/c3po-2.0-py${PYTHON_VERSION}.egg/c3po ]; then
+    echo "WARNING: rearrange site-packages/c3po"
+    mv $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages/c3po-2.0-py${PYTHON_VERSION}.egg/c3po  $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages/c3po
+fi
+
 export LD_LIBRARY_PATH="${MEDCOUPLING_ROOT_DIR}/lib:${LD_LIBRARY_PATH}"
 export PYTHONPATH="${MEDCOUPLING_ROOT_DIR}/${PYTHON_LIBDIR}:${PYTHONPATH}"
 export PYTHONPATH="${MEDCOUPLING_ROOT_DIR}/lib:${PYTHONPATH}"
index b19361890f64272cee6645df9379ae36380ee98e..b14a3cb2b0810e5b5e35c1b1d1a051f5f91f40b7 100755 (executable)
@@ -4,17 +4,13 @@ echo "##########################################################################
 echo "PyFMI " $VERSION
 echo "##########################################################################"
 
-echo  "*** build in SOURCE directory"
-
-
+rm -rf $BUILD_DIR
 cd $BUILD_DIR
 cp -R $SOURCE_DIR/* .
 
 rm -f $BUILD_DIR/src/pyfmi/*.c
-#mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
 export PATH=$(pwd)/bin:$PATH
 export PYTHONPATH=$(pwd):$PYTHONPATH
-#export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
 
 echo
 echo "*** build with $PYTHONBIN"
@@ -42,6 +38,14 @@ elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
     echo "WARNING: renaming local/lib64 directory to lib"
     mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
     rm -rf $PRODUCT_INSTALL/local
+elif [ -d "$PRODUCT_INSTALL/local/lib" ]; then
+    echo "WARNING: renaming local/lib directory to lib"
+    mv $PRODUCT_INSTALL/local/lib $PRODUCT_INSTALL/lib
+    rm -rf $PRODUCT_INSTALL/local
+fi
+
+if [ -d "$PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/dist-packages" ]; then
+    mv $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/dist-packages $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
 fi
 
 echo
index 4afd768a9f90b5ec018d11bbd425747485824a0b..9f15eb73a9230f93e1b90dcafddc99a0b0851dc4 100755 (executable)
@@ -17,9 +17,16 @@ export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$
 
 echo
 echo "*** build and install with $PYTHONBIN"
-$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
-if [ $? -ne 0 ]
-then
+case $LINUX_DISTRIBUTION in
+    DB12)
+        $PYTHONBIN setup.py install --install-lib=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages --install-scripts=${PRODUCT_INSTALL}/bin
+        ;;
+    *)
+        $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
+        ;;
+esac
+
+if [ $? -ne 0 ]; then
     echo "ERROR on build/install"
     exit 3
 fi
index e963b86bdd77880c6cb7c6064abb8280c8fbcb81..b3155aa250d310912964ac98de68b4e816f72a2b 100755 (executable)
@@ -61,21 +61,39 @@ fi
 LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
 case $LINUX_DISTRIBUTION in
     CO7)
-       if [ -n "$X_SCLS" ]
-       then
-           X_SCLSVALUE=$(echo $X_SCLS)
-           if [ $X_SCLSVALUE == "devtoolset-8" ]; then
-               echo "WARNING: devtoolset-8 is installed on ${LINUX_DISTRIBUTION} - libgfortran will be embedded..."
-               cp -RP /usr/lib64/libgfortran.so.5* $PRODUCT_INSTALL/lib/
-           fi
-       else
-           echo "INFO: X_SCLS does not seem to be set. skipping..."
-       fi
-       ;;
+        if [ -n "$X_SCLS" ]
+        then
+            X_SCLSVALUE=$(echo $X_SCLS)
+            if [ $X_SCLSVALUE == "devtoolset-8" ]; then
+                echo "WARNING: devtoolset-8 is installed on ${LINUX_DISTRIBUTION} - libgfortran will be embedded..."
+                cp -RP /usr/lib64/libgfortran.so.5* $PRODUCT_INSTALL/lib/
+            fi
+        else
+            echo "INFO: X_SCLS does not seem to be set. skipping..."
+        fi
+        ;;
     *)
         ;;
 esac
 
+
+#TODO: figure out which environment variable uses this dist-dir
+if [ -d $PRODUCT_INSTALL/local/lib/python${PYTHON_VERSION} ]; then
+    mv $PRODUCT_INSTALL/local/lib/python${PYTHON_VERSION} $PRODUCT_INSTALL/lib
+fi
+if [ -d $PRODUCT_INSTALL/local/bin ]; then
+    mv $PRODUCT_INSTALL/local/bin/* $PRODUCT_INSTALL/bin
+fi
+if [ -d $PRODUCT_INSTALL/local/share ]; then
+    mv $PRODUCT_INSTALL/local/share/* $PRODUCT_INSTALL/share
+fi
+if [ -d $PRODUCT_INSTALL/local ]; then
+    rm -rf $PRODUCT_INSTALL/local
+fi
+if [ -d $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/dist-packages ]; then
+    mv $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/dist-packages $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+fi
+
 echo
 echo "########## END"
 
index 17b6866a106748a4daac3ff3a2cb8de9a6b62456..467f559d0925043882065ac220a7aaa5341641b5 100755 (executable)
@@ -35,7 +35,7 @@ if version_ge $VERSION "3."; then
     CMAKE_OPTIONS+=" -DCMAKE_C_FLAGS=-fPIC"
     LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
     case $LINUX_DISTRIBUTION in
-      FD34|FD35|FD36|FD37|FD38|UB22*|CO9)
+      FD34|FD35|FD36|FD37|FD38|UB22*|CO9|DB12)
           CMAKE_OPTIONS+=" -DCMAKE_CXX_FLAGS=\"-std=c++14\""
           CMAKE_OPTIONS+=" -DCMAKE_CXX_STANDARD=14"
           ;;
index 071408efb3b9f443f4c3a7e218532d14af832bc9..2ceb922b0a9c70a63fdd70a90e6547e7422fb66f 100755 (executable)
@@ -4,9 +4,7 @@ echo "##########################################################################
 echo "openturns" $VERSION
 echo "##########################################################################"
 
-# we don't install in python directory -> modify environment as described in INSTALL file
 
-#mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
 export PATH=$(pwd)/bin:$PATH
 export PYTHONPATH=$(pwd):$PYTHONPATH
 export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
@@ -171,11 +169,8 @@ elif [ -d "${PRODUCT_INSTALL}/local/lib64" ]; then
     rm -rf ${PRODUCT_INSTALL}/local/lib64
 fi
 
-if [[ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]]; then
-    echo "WARNING: renaming ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages as ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages"
-    cd  ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}
-    ln -sf dist-packages site-packages
-    cd  $BUILD_DIR/openturns
+if [ -d ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ]; then
+    mv ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages
 fi
 
 export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH}
@@ -278,6 +273,22 @@ if [[ -d "$SOURCE_DIR/otfftw-0.13" ]]; then
             echo "ERROR on make install"
             exit 3
         fi
+        echo "INFO: check presence of $PRODUCT_INSTALL/local"
+        if [ -d "$PRODUCT_INSTALL/local" ]; then
+            echo "INFO: $PRODUCT_INSTALL/local is present -  reearrange ..."
+            if [ -d ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ]; then
+                mv ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/site-packages
+            fi
+            for D in $(ls $PRODUCT_INSTALL/local); do
+                echo "INFO: next subdirectory: $PRODUCT_INSTALL/local/$D"
+                if [ -d $PRODUCT_INSTALL/$D ]; then
+                    cp -r $PRODUCT_INSTALL/local/$D/* $PRODUCT_INSTALL/$D/
+                else
+                    mv $PRODUCT_INSTALL/local/$D $PRODUCT_INSTALL/$D
+                fi
+            done
+            rm -rf $PRODUCT_INSTALL/local
+        fi
     done
 
     declare -A OTP
@@ -319,6 +330,23 @@ if [[ -d "$SOURCE_DIR/otfftw-0.13" ]]; then
                     exit 6
                 fi
             fi
+            echo "INFO: check presence of $PRODUCT_INSTALL/local"
+            if [ -d "$PRODUCT_INSTALL/local" ]; then
+                echo "INFO: $PRODUCT_INSTALL/local is present -  reearrange ..."
+                if [ -d ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ]; then
+                    mv ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/site-packages
+                fi
+                for D in $(ls $PRODUCT_INSTALL/local); do
+                    echo "INFO: next subdirectory: $PRODUCT_INSTALL/local/$D"
+                    if [ -d $PRODUCT_INSTALL/$D ]; then
+                        cp -r $PRODUCT_INSTALL/local/$D/* $PRODUCT_INSTALL/$D/
+                    else
+                        mv $PRODUCT_INSTALL/local/$D $PRODUCT_INSTALL/$D
+                    fi
+                done
+                rm -rf $PRODUCT_INSTALL/local
+            fi
+            #
         else # non native Python
             if [[ $k == "otfmi" ]]; then
                 echo "INFO: install dill-0.3.4"
@@ -386,6 +414,22 @@ if [[ -d "$SOURCE_DIR/otfftw-0.13" ]]; then
                 exit 5
             fi
         fi
+        echo "INFO: check presence of $PRODUCT_INSTALL/local"
+        if [ -d "$PRODUCT_INSTALL/local" ]; then
+            echo "INFO: $PRODUCT_INSTALL/local is present -  reearrange ..."
+            if [ -d ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ]; then
+                mv ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/dist-packages ${PRODUCT_INSTALL}/local/lib/python${PYTHON_VERSION}/site-packages
+            fi
+            for D in $(ls $PRODUCT_INSTALL/local); do
+                echo "INFO: next subdirectory: $PRODUCT_INSTALL/local/$D"
+                if [ -d $PRODUCT_INSTALL/$D ]; then
+                    cp -r $PRODUCT_INSTALL/local/$D/* $PRODUCT_INSTALL/$D/
+                else
+                    mv $PRODUCT_INSTALL/local/$D $PRODUCT_INSTALL/$D
+                fi
+            done
+            rm -rf $PRODUCT_INSTALL/local
+        fi
     done
 
     #
diff --git a/products/compil_scripts/tbb-2021.9.0.sh b/products/compil_scripts/tbb-2021.9.0.sh
new file mode 100755 (executable)
index 0000000..ab86878
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+echo "##########################################################################"
+echo "tbb" $VERSION
+echo "##########################################################################"
+
+rm -rf $BUILD_DIR
+mkdir -p $BUILD_DIR
+cd $BUILD_DIR
+
+CMAKE_OPTIONS=
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=$PRODUCT_INSTALL"
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
+
+echo
+echo "*** cmake" $CMAKE_OPTIONS
+cmake $CMAKE_OPTIONS $SOURCE_DIR
+if [ $? -ne 0 ]; then
+    echo "ERROR on cmake"
+    exit 1
+fi
+
+echo
+echo "*** make" $MAKE_OPTIONS
+make $MAKE_OPTIONS
+if [ $? -ne 0 ]; then
+    echo "ERROR on make"
+    exit 2
+fi
+
+echo
+echo "*** make install"
+make install
+if [ $? -ne 0 ]; then
+    echo "ERROR on make install"
+    exit 3
+fi
+
+# apply a post-fix
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+case $LINUX_DISTRIBUTION in
+    DB12)
+        echo "WARNING: Fixing tbb until Paraview version is updated: issue with tbb AND ParaView/vtk/vtk-m cmake files tbbbind target not found"
+        sed -i 's/ TBB::tbbbind_2_5//g'  $PRODUCT_INSTALL/lib/cmake/TBB/TBBTargets.cmake
+        ;;
+    *)
+        ;;
+esac
+
index 0ce44c5a92390cefa75fe688c091c446322f8c81..6e4bdbbd6aef1c5cf69595fbaea6a406b37c3905 100644 (file)
@@ -56,6 +56,14 @@ version_3_2_0_FD36 :
     patches : ["opencv-3.2.0-ccache.patch", "SPNS-29988-opencv-3.2.0-persistence.patch", "SPNS-29988-opencv-3.2.0-cv2.patch"]
 }
 
+version_3_2_0_DB12 :
+{
+    patches : ["opencv-3.2.0-ccache.patch",
+               "SPNS-29988-opencv-3.2.0-persistence.patch",
+               "SPNS-29988-opencv-3.2.0-cv2.patch"
+              ]
+}
+
 version_3_2_0_win :
 {
     patches : ["opencv-3.2.0-ccache.patch","opencv-3.2.0_windows.patch"]
index 750c7994653dc3031755f38e04e2c64a1225f2de..6f0820c4f12da521dbfece51aff6494bc84bf3dc 100644 (file)
@@ -60,6 +60,14 @@ version_1_21_win :
     }
 }
 
+version_1_21_DB12 :
+{
+    compil_script :  "openturns-1.21.sh"
+    patches : ['openturns-1.21.0001.patch','openturns-1.21.0005.patch', 'openturns-1.21.0006.patch']
+    depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'cminpack', 'FMILibrary', 'PyFMI', 'boost']
+    opt_depend : ['pandas', 'statsmodels', 'patsy']
+}
+
 version_1_21_RO8 :
 {
     compil_script :  "openturns-1.21.sh"
diff --git a/products/patches/paraview-5.11.0.p010-python-3.11.patch b/products/patches/paraview-5.11.0.p010-python-3.11.patch
new file mode 100644 (file)
index 0000000..81767bd
--- /dev/null
@@ -0,0 +1,29 @@
+--- ParaView-ref/Wrapping/Python/paraview/detail/pythonalgorithm.py    2023-12-22 09:06:14.044130563 +0100
++++ ParaView-dev/Wrapping/Python/paraview/detail/pythonalgorithm.py    2023-12-22 09:07:49.505485846 +0100
+@@ -3,7 +3,7 @@
+ from functools import wraps
+ from xml.dom.minidom import parseString
+ from xml.parsers.expat import ExpatError
+-from inspect import getargspec
++from inspect import signature
+ import sys
+@@ -135,7 +135,7 @@
+         attrs = smproperty._update_property_defaults(func, attrs)
+         if attrs.get("number_of_elements", None) is None:
+-            attrs["number_of_elements"] = len(getargspec(func).args) - 1
++            attrs["number_of_elements"] = len(signature(func).args) - 1
+         if attrs.get("default_values", None) is None:
+             attrs["default_values"] = "None"
+@@ -147,7 +147,7 @@
+         # if not set.
+         if attrs.get("repeat_command", None) is not None and \
+                 attrs.get("number_of_elements_per_command", None) is None:
+-                    attrs["number_of_elements_per_command"] = len(getargspec(func).args) - 1
++                    attrs["number_of_elements_per_command"] = len(signature(func).args) - 1
+         return attrs
+     @staticmethod
index acd10491fc84d49dc2ffdb7c1d67f36726b8b305..b2b348a6dc62b108cb435dd577aa144c91946e9c 100644 (file)
@@ -21,6 +21,20 @@ default :
     }
 }
 
+version_2021_9_0 :
+{
+    compil_script :  "tbb-2021.9.0.sh"
+    archive_info : {archive_name : "tbb-2021.9.0.tar.gz"}
+    depend : ['Python', 'llvm']
+    opt_depend : ['ispc']
+    build_depend : ['swig', "cmake"]
+    properties :
+    {
+      incremental : "yes"
+      single_install_dir : "no"
+    }
+}
+
 version_2019_U8 :
 {
     compil_script :  "tbb-2019_U8.sh"