all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0
@ 2024-04-10 12:26 Lars Bilke
  2024-05-31 10:31 ` Ludovic Courtès
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Lars Bilke @ 2024-04-10 12:26 UTC (permalink / raw)
  To: 70323; +Cc: Lars Bilke

Change-Id: Iec44a8e8dcfcf188a872af99e5b6e8c9fda7b416
---
 gnu/packages/image-processing.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 98a3d0396d..de026d1bc8 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -328,7 +328,7 @@ (define-public opencolorio
 (define-public vtk
   (package
     (name "vtk")
-    (version "9.2.2")
+    (version "9.3.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://vtk.org/files/release/"
@@ -336,7 +336,7 @@ (define-public vtk
                                   "/VTK-" version ".tar.gz"))
               (sha256
                (base32
-                "0x8h2bwxq2870067j7wqd0qym87pa3inkbri93zrdb0zwwmhlnqw"))
+                "1s8vd34nhrgnw1bf9zhfn062d53fwq3csjfwvm7lxcr5a8lvkizx"))
               (modules '((guix build utils)))
               (snippet
                '(begin
@@ -407,6 +407,7 @@ (define-public vtk
 
                    ;; Do not retain a reference to GCC.
                    (substitute* (choose
+                                 "Common/Core/vtkBuild.h.in" ;dummy >=v9.3
                                  "Common/Core/vtkConfigureDeprecated.h.in" ;v9.x
                                  "Common/Core/vtkConfigure.h.in") ;v7.x
                      (("@CMAKE_CXX_COMPILER@") "c++")))))

base-commit: 75bad75367fcf2c289fae3b40dbcc850f92177be
prerequisite-patch-id: a5dde500e72a24257ecf0f50b15a7298fde4ff57
-- 
2.44.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0
  2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
@ 2024-05-31 10:31 ` Ludovic Courtès
  2024-06-03 14:01 ` [bug#70323] [PATCH v2] " Lars Bilke
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2024-05-31 10:31 UTC (permalink / raw)
  To: Lars Bilke; +Cc: 70323

Hi Lars,

Apparently this change breaks Freecad:

--8<---------------cut here---------------start------------->8---
/tmp/guix-build-freecad-0.21.2.drv-0/source/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp: In member func
tion ‘void SMDS_UnstructuredGrid::BuildLinks()’:
/tmp/guix-build-freecad-0.21.2.drv-0/source/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp:1029:25: error:
 no matching function for call to ‘vtkCellLinks::BuildLinks(SMDS_UnstructuredGrid*)’
 1029 |   GetLinks()->BuildLinks(this);
      |   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /tmp/guix-build-freecad-0.21.2.drv-0/source/src/3rdParty/salomesmesh/inc/SMDS_UnstructuredGrid.hx
x:30,
                 from /tmp/guix-build-freecad-0.21.2.drv-0/source/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGr
id.cpp:20:
/gnu/store/r3zpn5wmn98rllifyqq4h4wkp46zq0j2-vtk-9.3.0/include/vtk-9.3/vtkCellLinks.h:56:8: note: candidate: ‘virtual vo
id vtkCellLinks::BuildLinks()’
   56 |   void BuildLinks() override;
      |        ^~~~~~~~~~
/gnu/store/r3zpn5wmn98rllifyqq4h4wkp46zq0j2-vtk-9.3.0/include/vtk-9.3/vtkCellLinks.h:56:8: note:   candidate expects 0 
arguments, 1 provided
--8<---------------cut here---------------end--------------->8---

I haven’t checked the other dependents returned by ‘guix refresh -l
vtk@9’, but we should (for some reason
<https://qa.guix.gnu.org/issue/70328> hasn’t caught up).

Could you take a look?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#70323] [PATCH v2] gnu: vtk: Update to 9.3.0
  2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
  2024-05-31 10:31 ` Ludovic Courtès
@ 2024-06-03 14:01 ` Lars Bilke
  2024-06-04  6:29 ` [bug#70323] [PATCH] " Lars Bilke
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Lars Bilke @ 2024-06-03 14:01 UTC (permalink / raw)
  To: 70323; +Cc: Lars Bilke

Change-Id: Iec44a8e8dcfcf188a872af99e5b6e8c9fda7b416
---
 gnu/packages/engineering.scm               |  4 +-
 gnu/packages/image-processing.scm          |  5 ++-
 gnu/packages/patches/freecad-vtk-9.3.patch | 43 ++++++++++++++++++++++
 3 files changed, 49 insertions(+), 3 deletions(-)
 create mode 100644 gnu/packages/patches/freecad-vtk-9.3.patch

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 624024b8d4..cfcd3f8da7 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2806,7 +2806,9 @@ (define-public freecad
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0s720q6vxlh78jzahqp69nl8wagb42l05dym5aqhfnr31dx666hc"))))
+        (base32 "0s720q6vxlh78jzahqp69nl8wagb42l05dym5aqhfnr31dx666hc"))
+       ;; https://github.com/FreeCAD/FreeCAD/pull/11496
+       (patches (search-patches "freecad-vtk-9.3.patch"))))
     (build-system qt-build-system)
     (native-inputs
      (list doxygen
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 7c9d12557e..65fe793f2d 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -309,7 +309,7 @@ (define-public opencolorio
 (define-public vtk
   (package
     (name "vtk")
-    (version "9.2.2")
+    (version "9.3.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://vtk.org/files/release/"
@@ -317,7 +317,7 @@ (define-public vtk
                                   "/VTK-" version ".tar.gz"))
               (sha256
                (base32
-                "0x8h2bwxq2870067j7wqd0qym87pa3inkbri93zrdb0zwwmhlnqw"))
+                "1s8vd34nhrgnw1bf9zhfn062d53fwq3csjfwvm7lxcr5a8lvkizx"))
               (modules '((guix build utils)))
               (snippet
                '(begin
@@ -388,6 +388,7 @@ (define-public vtk
 
                    ;; Do not retain a reference to GCC.
                    (substitute* (choose
+                                 "Common/Core/vtkBuild.h.in" ;dummy >=v9.3
                                  "Common/Core/vtkConfigureDeprecated.h.in" ;v9.x
                                  "Common/Core/vtkConfigure.h.in") ;v7.x
                      (("@CMAKE_CXX_COMPILER@") "c++")))))
diff --git a/gnu/packages/patches/freecad-vtk-9.3.patch b/gnu/packages/patches/freecad-vtk-9.3.patch
new file mode 100644
index 0000000000..af9d654046
--- /dev/null
+++ b/gnu/packages/patches/freecad-vtk-9.3.patch
@@ -0,0 +1,43 @@
+From d0fb2b8b29fe0428d9dd8aa790b0d6e45c8a9516 Mon Sep 17 00:00:00 2001
+From: Adrian Insaurralde Avalos <adrianinsaval@gmail.com>
+Date: Wed, 22 Nov 2023 16:42:06 -0300
+Subject: [PATCH] 3rdPart/salomesmesh - fix for vtk 9.3 compatibility
+
+minimum required version is 7.1
+---
+ src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx                 | 4 ----
+ src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp | 5 +++++
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx b/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
+index 7f89573efd0d..47a52fe585fe 100644
+--- a/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
++++ b/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
+@@ -39,10 +39,6 @@
+  #define SMDS_EXPORT
+ #endif
+ 
+-#ifdef VTK_HAS_MTIME_TYPE
+ #define VTK_MTIME_TYPE vtkMTimeType
+-#else
+-#define VTK_MTIME_TYPE unsigned long
+-#endif
+ 
+ #endif
+diff --git a/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp b/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
+index 7e3de0070a02..e9895d615717 100644
+--- a/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
++++ b/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
+@@ -1026,7 +1026,12 @@ void SMDS_UnstructuredGrid::BuildLinks()
+   GetLinks()->Allocate(this->GetNumberOfPoints());
+   GetLinks()->Register(this);
+ //FIXME: vtk9
++  #if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9,3,0)
+   GetLinks()->BuildLinks(this);
++  #else
++  GetLinks()->SetDataSet(this);
++  GetLinks()->BuildLinks();
++  #endif
+   GetLinks()->Delete();
+ #else
+   this->Links = SMDS_CellLinks::New();
\ No newline at end of file

base-commit: 2dfe45e12ed55e5f9bf3d4061200bc607e2e5db8
-- 
2.44.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0
  2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
  2024-05-31 10:31 ` Ludovic Courtès
  2024-06-03 14:01 ` [bug#70323] [PATCH v2] " Lars Bilke
@ 2024-06-04  6:29 ` Lars Bilke
  2024-06-10 11:09 ` [bug#70323] Further work Andreas Enge
  2024-06-17  8:34 ` [bug#70323] [PATCH v3 1/2] gnu: vtk: Update to 9.3.0 Lars Bilke
  4 siblings, 0 replies; 7+ messages in thread
From: Lars Bilke @ 2024-06-04  6:29 UTC (permalink / raw)
  To: 70323

I have added a patch for FreeCAD and also tested some dependant packages such as pyvista, openfoam, f3d and siril.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#70323] Further work
  2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
                   ` (2 preceding siblings ...)
  2024-06-04  6:29 ` [bug#70323] [PATCH] " Lars Bilke
@ 2024-06-10 11:09 ` Andreas Enge
  2024-06-17  8:34 ` [bug#70323] [PATCH v3 1/2] gnu: vtk: Update to 9.3.0 Lars Bilke
  4 siblings, 0 replies; 7+ messages in thread
From: Andreas Enge @ 2024-06-10 11:09 UTC (permalink / raw)
  To: 70323

Hello Lars,

everything works well according to QA.

However, could you split the commit into two, one updating vtk;
and the second one applying the patch to freecad, and also mentioning
the file in the commit message and registering it in gnu/local.mk?

Thanks,

Andreas





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#70323] [PATCH v3 1/2] gnu: vtk: Update to 9.3.0
  2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
                   ` (3 preceding siblings ...)
  2024-06-10 11:09 ` [bug#70323] Further work Andreas Enge
@ 2024-06-17  8:34 ` Lars Bilke
  2024-06-17  8:34   ` [bug#70323] [PATCH v3 2/2] gnu: freecad: patch for vtk 9.3.0 Lars Bilke
  4 siblings, 1 reply; 7+ messages in thread
From: Lars Bilke @ 2024-06-17  8:34 UTC (permalink / raw)
  To: 70323; +Cc: andreas, Lars Bilke

Change-Id: Id31d41e7dc457d1f17c0e8e824c170942d81698c
---
 gnu/packages/image-processing.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 7c9d12557e..65fe793f2d 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -309,7 +309,7 @@ (define-public opencolorio
 (define-public vtk
   (package
     (name "vtk")
-    (version "9.2.2")
+    (version "9.3.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://vtk.org/files/release/"
@@ -317,7 +317,7 @@ (define-public vtk
                                   "/VTK-" version ".tar.gz"))
               (sha256
                (base32
-                "0x8h2bwxq2870067j7wqd0qym87pa3inkbri93zrdb0zwwmhlnqw"))
+                "1s8vd34nhrgnw1bf9zhfn062d53fwq3csjfwvm7lxcr5a8lvkizx"))
               (modules '((guix build utils)))
               (snippet
                '(begin
@@ -388,6 +388,7 @@ (define-public vtk
 
                    ;; Do not retain a reference to GCC.
                    (substitute* (choose
+                                 "Common/Core/vtkBuild.h.in" ;dummy >=v9.3
                                  "Common/Core/vtkConfigureDeprecated.h.in" ;v9.x
                                  "Common/Core/vtkConfigure.h.in") ;v7.x
                      (("@CMAKE_CXX_COMPILER@") "c++")))))

base-commit: bd5c61781c13611ed16686513980907c6ee34ae6
-- 
2.44.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#70323] [PATCH v3 2/2] gnu: freecad: patch for vtk 9.3.0
  2024-06-17  8:34 ` [bug#70323] [PATCH v3 1/2] gnu: vtk: Update to 9.3.0 Lars Bilke
@ 2024-06-17  8:34   ` Lars Bilke
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Bilke @ 2024-06-17  8:34 UTC (permalink / raw)
  To: 70323; +Cc: andreas, Lars Bilke

Change-Id: Ie520a92ffe6f8bdd2678470ee06f618d74349460
---
 gnu/local.mk                               |  1 +
 gnu/packages/engineering.scm               |  4 +-
 gnu/packages/patches/freecad-vtk-9.3.patch | 43 ++++++++++++++++++++++
 3 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/freecad-vtk-9.3.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 83b7402b09..2a5a54a265 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1242,6 +1242,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/fpc-reproducibility.patch		\
   %D%/packages/patches/fpc-glibc-2.34-compat.patch		\
   %D%/packages/patches/fpm-newer-clamp-fix.patch		\
+  %D%/packages/patches/freecad-vtk-9.3.patch		\
   %D%/packages/patches/freedink-engine-fix-sdl-hints.patch	\
   %D%/packages/patches/freeimage-libtiff-compat.patch		\
   %D%/packages/patches/freeimage-unbundle.patch		\
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index e518d24fa2..fcb73eab12 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2783,7 +2783,9 @@ (define-public freecad
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0s720q6vxlh78jzahqp69nl8wagb42l05dym5aqhfnr31dx666hc"))))
+        (base32 "0s720q6vxlh78jzahqp69nl8wagb42l05dym5aqhfnr31dx666hc"))
+       ;; https://github.com/FreeCAD/FreeCAD/pull/11496
+       (patches (search-patches "freecad-vtk-9.3.patch"))))
     (build-system qt-build-system)
     (native-inputs
      (list doxygen
diff --git a/gnu/packages/patches/freecad-vtk-9.3.patch b/gnu/packages/patches/freecad-vtk-9.3.patch
new file mode 100644
index 0000000000..af9d654046
--- /dev/null
+++ b/gnu/packages/patches/freecad-vtk-9.3.patch
@@ -0,0 +1,43 @@
+From d0fb2b8b29fe0428d9dd8aa790b0d6e45c8a9516 Mon Sep 17 00:00:00 2001
+From: Adrian Insaurralde Avalos <adrianinsaval@gmail.com>
+Date: Wed, 22 Nov 2023 16:42:06 -0300
+Subject: [PATCH] 3rdPart/salomesmesh - fix for vtk 9.3 compatibility
+
+minimum required version is 7.1
+---
+ src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx                 | 4 ----
+ src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp | 5 +++++
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx b/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
+index 7f89573efd0d..47a52fe585fe 100644
+--- a/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
++++ b/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx
+@@ -39,10 +39,6 @@
+  #define SMDS_EXPORT
+ #endif
+ 
+-#ifdef VTK_HAS_MTIME_TYPE
+ #define VTK_MTIME_TYPE vtkMTimeType
+-#else
+-#define VTK_MTIME_TYPE unsigned long
+-#endif
+ 
+ #endif
+diff --git a/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp b/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
+index 7e3de0070a02..e9895d615717 100644
+--- a/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
++++ b/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp
+@@ -1026,7 +1026,12 @@ void SMDS_UnstructuredGrid::BuildLinks()
+   GetLinks()->Allocate(this->GetNumberOfPoints());
+   GetLinks()->Register(this);
+ //FIXME: vtk9
++  #if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9,3,0)
+   GetLinks()->BuildLinks(this);
++  #else
++  GetLinks()->SetDataSet(this);
++  GetLinks()->BuildLinks();
++  #endif
+   GetLinks()->Delete();
+ #else
+   this->Links = SMDS_CellLinks::New();
\ No newline at end of file
-- 
2.44.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-17  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-10 12:26 [bug#70323] [PATCH] gnu: vtk: Update to 9.3.0 Lars Bilke
2024-05-31 10:31 ` Ludovic Courtès
2024-06-03 14:01 ` [bug#70323] [PATCH v2] " Lars Bilke
2024-06-04  6:29 ` [bug#70323] [PATCH] " Lars Bilke
2024-06-10 11:09 ` [bug#70323] Further work Andreas Enge
2024-06-17  8:34 ` [bug#70323] [PATCH v3 1/2] gnu: vtk: Update to 9.3.0 Lars Bilke
2024-06-17  8:34   ` [bug#70323] [PATCH v3 2/2] gnu: freecad: patch for vtk 9.3.0 Lars Bilke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.