]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #43023: add compil script section and patch to remove qt ABI tag for singularity...
authorGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 30 Sep 2024 11:38:58 +0000 (13:38 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 30 Sep 2024 11:39:07 +0000 (13:39 +0200)
products/compil_scripts/qt-5.15.2.sh
products/patches/qt_5_15_2_remove_ABI_tag.patch [new file with mode: 0644]

index 954446283f0298d14cc02e3950605cf4ac5d8f93..f0db65cd25bc47a78fd98d5552e5d8557d32519e 100755 (executable)
@@ -13,6 +13,13 @@ case $LINUX_DISTRIBUTION in
        ;;
 esac
 
+if [ -n "$SINGULARITY_NAME" ]; then
+    echo "WARNING: singularity env detected. applying ABI-tag patch"
+    PATCH_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/../patches
+    cd $SOURCE_DIR
+    patch -Nbp1 -i $PATCH_DIR/qt_5_15_2_remove_ABI_tag.patch
+fi
+
 if [ -n "$SAT_DEBUG" ]
 then
     BUILD_TYPE="-debug"
diff --git a/products/patches/qt_5_15_2_remove_ABI_tag.patch b/products/patches/qt_5_15_2_remove_ABI_tag.patch
new file mode 100644 (file)
index 0000000..8fd356c
--- /dev/null
@@ -0,0 +1,12 @@
+--- qt/qtbase/qmake/generators/unix/unixmake2.cpp      2020-10-27 09:02:11.000000000 +0100
++++ qt_dev/qtbase/qmake/generators/unix/unixmake2.cpp  2024-09-25 12:25:10.704520631 +0200
+@@ -603,7 +603,8 @@
+                 t << "\n\t"
+                   << varGlue("QMAKE_LN_SHLIB","-"," "," $(TARGET) $(TARGET0)") << "\n\t"
+                   << varGlue("QMAKE_LN_SHLIB","-"," "," $(TARGET) $(TARGET1)") << "\n\t"
+-                  << varGlue("QMAKE_LN_SHLIB","-"," "," $(TARGET) $(TARGET2)");
++                  << varGlue("QMAKE_LN_SHLIB","-"," "," $(TARGET) $(TARGET2)") << "\n\t"
++                  << "-$(STRIP) --remove-section=.note.ABI-tag $(TARGET1)";
+             }
+             if (!destdir.isEmpty()) {
+                 t << "\n\t"