]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix problem on Mandriva 2006 with vtk Python modules importing
authorvsr <vsr@opencascade.com>
Mon, 15 Jan 2007 10:07:31 +0000 (10:07 +0000)
committervsr <vsr@opencascade.com>
Mon, 15 Jan 2007 10:07:31 +0000 (10:07 +0000)
config_files/VTK-4.2.6.sh

index 6a5852cf0cf386603df44da54e85a7126a6c6bf0..876f514ca58df54a844fbdb44cdefc1ebf2cc111 100755 (executable)
@@ -90,10 +90,11 @@ if test `uname -m` = "x86_64" ; then
        cp patches/vtk-4.2.6-lib64.patch ${PRODUCT_WORK}
        ( cd ${PRODUCT_WORK} ; patch -p1 < vtk-4.2.6-lib64.patch )
     fi
-    if [ -f patches/vtk-4.2.6-patented.patch ] ; then
-       cp patches/vtk-4.2.6-patented.patch ${PRODUCT_WORK}
-       ( cd ${PRODUCT_WORK} ; patch -p1 < vtk-4.2.6-patented.patch )
-    fi
+fi
+# apply patch: fix pb with importing Python vtk modules on some platforms
+if [ -f patches/vtk-4.2.6-patented.patch ] ; then
+    cp patches/vtk-4.2.6-patented.patch ${PRODUCT_WORK}
+    ( cd ${PRODUCT_WORK} ; patch -p1 < vtk-4.2.6-patented.patch )
 fi
 
 cd ${INSTALL_WORK}/cmake-1.6.6