From 415ce47960495fcea8a2150593954d69a1db504f Mon Sep 17 00:00:00 2001 From: qc784398 Date: Fri, 23 Apr 2021 17:51:07 +0200 Subject: [PATCH] Fix openturns compilation on native FD32 and CO8 (hack lib64 dir) - Fix ParaView compilation on FD32 (switch xmlpatterns names to avoid native choose) --- applications/SALOME-master-native.pyconf | 5 ----- products/compil_scripts/openturns.sh | 6 ++++++ products/patches/paraview.0003-ParaViewClient.patch | 12 ++++++++---- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 3dbb2aa..c73613a 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -180,11 +180,6 @@ APPLICATION : } __overwrite__ : [ - { - # openturns - make install seems to not doing anything (although we see files installation in logs) - __condition__ : "VARS.dist in ['FD32', 'CO8']" - 'APPLICATION.rm_products' : ['openturns'] - } { # Although recent adaptations of GEOM CMake procedure to be compliant with openCV 4.X, some # deeper investigations need to be done in its sources. Use embedded openCV product where diff --git a/products/compil_scripts/openturns.sh b/products/compil_scripts/openturns.sh index 3a787d1..a64040a 100755 --- a/products/compil_scripts/openturns.sh +++ b/products/compil_scripts/openturns.sh @@ -40,6 +40,12 @@ fi echo echo "*** check installation" +if [ -d "${PRODUCT_INSTALL}/lib64" ] +then + mv ${PRODUCT_INSTALL}/lib64/* ${PRODUCT_INSTALL}/lib + rmdir ${PRODUCT_INSTALL}/lib64 +fi + export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:${PYTHONPATH} export LD_LIBRARY_PATH=${PRODUCT_INSTALL}/lib:${LD_LIBRARY_PATH} chmod +x ${SOURCE_DIR}/python/test/t_features.py diff --git a/products/patches/paraview.0003-ParaViewClient.patch b/products/patches/paraview.0003-ParaViewClient.patch index 5245133..c0409ed 100644 --- a/products/patches/paraview.0003-ParaViewClient.patch +++ b/products/patches/paraview.0003-ParaViewClient.patch @@ -1,7 +1,11 @@ ---- ParaView-5.8.0-RC2.orig/CMake/ParaViewClient.cmake 2020-03-02 15:38:53.791382799 +0300 -+++ ParaView-5.8.0-RC2.new/CMake/ParaViewClient.cmake 2020-03-02 18:31:04.304698442 +0300 -@@ -516,6 +516,7 @@ - NAMES xmlpatterns-qt5 xmlpatterns +--- ParaView.orig/CMake/ParaViewClient.cmake 2021-02-04 15:22:02.000000000 +0100 ++++ ParaView.new/CMake/ParaViewClient.cmake 2021-04-23 17:37:01.814270336 +0200 +@@ -513,9 +513,10 @@ + + include("${_ParaViewClient_cmake_dir}/paraview-find-package-helpers.cmake" OPTIONAL) + find_program(qt_xmlpatterns_executable +- NAMES xmlpatterns-qt5 xmlpatterns ++ NAMES xmlpatterns xmlpatterns-qt5 HINTS "${Qt5_DIR}/../../../bin" "${Qt5_DIR}/../../../libexec/qt5/bin" + NO_CMAKE_PATH -- 2.39.2