]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
PERSALYS should target right cgns
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 20 Apr 2022 14:20:13 +0000 (16:20 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 20 Apr 2022 14:20:13 +0000 (16:20 +0200)
products/PERSALYS.pyconf
products/compil_scripts/PERSALYS-v12.0.sh
products/compil_scripts/openturns-1.18.sh
products/patches/omniORB-4.2.3-windows-debug.patch

index 7913c2a0ce97a06e7e46e1e1c5267e5e484ceaf9..ac12d8d89a25fad604ec42dc66c4044ef5502c65 100644 (file)
@@ -14,28 +14,29 @@ default :
     }
     depend : ['Python',
               'lapack',
-             'hdf5',
-             'tbb',
-             'nlopt',
-             'libxml2',
-             'eigen',
-             'netcdf',
-             'gdal',
-             'boost',
-             'ADAO',
-             'KERNEL',
-             'GUI',
-             'Sphinx',
-             'qwt',
+              'hdf5',
+              'cgns',
+              'tbb',
+              'nlopt',
+              'libxml2',
+              'eigen',
+              'netcdf',
+              'gdal',
+              'boost',
+              'ADAO',
+              'KERNEL',
+              'GUI',
+              'Sphinx',
+              'qwt',
               'qt',
               'ParaView',
-             'openturns',
-             'numpydoc',
-             'YACS',
-             'YDEFX',
-             'CAS',
-             'CONFIGURATION'
-             ]
+              'openturns',
+              'numpydoc',
+              'YACS',
+              'YDEFX',
+              'CAS',
+              'CONFIGURATION'
+           ]
     build_depend : ["cmake", "swig"]
     opt_depend : ['openmpi']
     patches : []
index db77026e1bbcde750c031f0246b596303c2256fd..c155a750241e37753c495e0e33c24f231612ac57 100755 (executable)
@@ -24,10 +24,10 @@ CMAKE_OPTIONS+=" -DOpenTURNS_DIR=$OT_ROOT_DIR/lib/cmake/openturns"
 CMAKE_OPTIONS+=" -DPy2cpp_DIR=$PY2CPP_ROOT_DIR//lib/cmake/py2cpp"
 
 # strangely Centos 8 fails to guess qwt installation
-if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && $APPLICATION_NAME =~ native ]]; then
+if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then
     CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib64/libqwt-qt5.so"
     CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt"
-elif [ "$QWT_ROOT_DIR" != "/usr" ]; then
+elif [ "$SAT_qwt_IS_NATIVE" != "1" ]; then
     CMAKE_OPTIONS+=" -DQWT_LIBRARY=$QWT_ROOT_DIR/lib/libqwt.so"
     CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=$QWT_ROOT_DIR/include"
 fi
@@ -46,17 +46,22 @@ fi
 CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=$PYTHONBIN"
 
 CMAKE_OPTIONS+=" -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE"
-if [ "$PYTHON_ROOT_DIR" != "/usr" ]; then
+if [ "$SAT_Python_IS_NATIVE" != "1" ]; then
     CMAKE_OPTIONS+=" -DPYTHON_LIBRARY=$PYTHON_ROOT_DIR/lib/libpython$PYTHON_VERSION.so"
 fi
 
-if [ "$SPHINX_ROOT_DIR" != "/usr" ]; then
+if [ "$SAT_Sphinx_IS_NATIVE" != "1" ]; then
     CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR:FILEPATH=$SPHINX_ROOT_DIR"
     CMAKE_OPTIONS+=" -DSPHINX_EXECUTABLE:FILEPATH=$SPHINX_ROOT_DIR/bin/sphinx-build"
 fi
 
 CMAKE_OPTIONS+=" -DCMAKE_FIND_ROOT_PATH=ON"
 CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE:PATH=$(which swig)"
+if [ "${SAT_cgns_IS_NATIVE}" != "1" ]
+then
+    CMAKE_OPTIONS+=" -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include"
+    CMAKE_OPTIONS+=" -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so"
+fi
 if [ -n "$SAT_DEBUG" ]; then
     CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug"
 else
index 78da8e150a246d87955720b767fde11a49f0b759..9afbfd256b30b66fc81231e4faf4555ab7780d9b 100755 (executable)
@@ -18,6 +18,7 @@ if [ -n "$SAT_HPC" ] && [ -n "$MPI_ROOT_DIR" ]; then
 fi
 
 CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
+CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
 CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
 CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=${PYTHONBIN}"
 
@@ -338,7 +339,8 @@ if [[ -d "$SOURCE_DIR/otfftw-0.11" ]]; then
                 SITE_PATCH=/usr/lib/pypy/dist-packages/setuptools/site-patch.py
                 ;;
            FD34)
-                SITE_PATCH=
+                ###SITE_PATCH=
+                SITE_PATCH=$SOURCE_DIR/addons/site-patch.py
                 ;;
            CO8*)
                 SITE_PATCH=/usr/lib/pypy/dist-packages/setuptools/site-patch.py
index 5a6bc02c2c4592967c4b6747e103388aba5a9a43..bac2c5487f460a680ddffde51ade590fe009846e 100644 (file)
@@ -1,6 +1,14 @@
-diff -Naur omniORB-4.2.3_ref/config/config.mk omniORB-4.2.3_new/config/config.mk
---- omniORB-4.2.3_ref/config/config.mk 2017-05-11 15:01:56.000000000 +0200
-+++ omniORB-4.2.3_new/config/config.mk 2021-12-10 15:49:15.278207366 +0100
+--- omniORB-4.2.3_ref/config/config.mk 2022-04-20 12:57:28.336536788 +0200
++++ omniORB-4.2.3_new/config/config.mk 2022-04-20 12:57:36.864615145 +0200
+@@ -25,7 +25,7 @@
+ # You should also look at <top>/mk/platforms/$(platform).mk and if necessary
+ # edit the make variables, such as CC and CXX, in the file.
+-#platform = x86_win32_vs_15
++platform = x86_win32_vs_15
+ #platform = x86_win32_vs_14
+ #platform = x86_win32_vs_12
+ #platform = x86_win32_vs_11
 @@ -116,7 +116,7 @@
  # libraries. Setting this variable causes the build to break in subtle
  # ways. DO NOT SET THIS UNLESS YOU KNOW WHAT YOU ARE DOING.
@@ -10,3 +18,14 @@ diff -Naur omniORB-4.2.3_ref/config/config.mk omniORB-4.2.3_new/config/config.mk
  #
  
  EXPORT_TREE =  $(TOP)
+--- omniORB-4.2.3_ref/src/tool/omniidl/cxx/dir.mk      2018-05-08 18:57:00.000000000 +0200
++++ omniORB-4.2.3_new/src/tool/omniidl/cxx/dir.mk      2022-04-20 12:41:47.273874626 +0200
+@@ -196,7 +196,7 @@
+ PYLIB     := -lpython$(subst .,,$(PYVERSION))
+ CXXLINKOPTIONS += $(patsubst %,-L%,$(PYLIBDIR))
+ else
+-PYLIB     := python$(subst .,,$(PYVERSION)).lib
++PYLIB     := python$(subst .,,$(PYVERSION))_d.lib
+ CXXLINKOPTIONS += $(patsubst %,-libpath:%,$(PYLIBDIR))
+ endif