Your message dated Sat, 18 Jun 2022 10:37:21 +0000
with message-id <[email protected]>
and subject line Bug#1012689: fixed in mia 2.4.7-10
has caused the Debian Bug report #1012689,
regarding mia: Migration from vtk7 to vtk9
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1012689: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012689
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mia
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Mia package depends on vtk7 which is quite old and not maintained upstream.

I've succeeded to build mia with vtk9 by changing Build-Depends from
libvtk7-dev to libvtk9-dev and fixing CMake and build errors.
The patch is attached to this message.

Could you please update to vtk9?

Thanks,

François
--- a/addons/vtk/CMakeLists.txt
+++ b/addons/vtk/CMakeLists.txt
@@ -20,9 +20,9 @@
 
 IF(WITH_VTKIO)
   if (STRICT_DEPENDECIES)
-    FIND_PACKAGE(VTK REQUIRED COMPONENTS  vtkIOImage  vtkIOXML vtkIOLegacy)
+    FIND_PACKAGE(VTK REQUIRED COMPONENTS  IOImage IOXML IOLegacy)
   else (STRICT_DEPENDECIES)
-    FIND_PACKAGE(VTK COMPONENTS vtkIOImage vtkIOXML vtkIOLegacy)
+    FIND_PACKAGE(VTK COMPONENTS IOImage IOXML IOLegacy)
   endif (STRICT_DEPENDECIES)
   IF(VTK_FOUND)
     DEFINE_PROPERTY(GLOBAL PROPERTY HAVE_VTK_PROP BRIEF_DOCS "yeah" FULL_DOCS 
"yeah")
@@ -41,8 +41,17 @@
     SET(VTK_LINK_LIBS_3D ${SELECTED_VTK_LIBS} mia3d)
 
     PLUGIN_WITH_TEST_AND_PREFIX2("mesh" "io" vtkmesh "${VTK_LINK_LIBS_MESH}")
+    target_link_libraries(mesh-io-vtkmesh ${VTK_LIBRARIES})
+    target_link_libraries(mesh-io-vtkmesh-common ${VTK_LIBRARIES})
+    target_link_libraries(test-mesh-io-vtkmesh ${VTK_LIBRARIES})
     PLUGIN_WITH_TEST_AND_PREFIX2("3dvf" "io" vtkvf "${VTK_LINK_LIBS_3D}")
+    target_link_libraries(3dvf-io-vtkvf ${VTK_LIBRARIES})
+    target_link_libraries(3dvf-io-vtkvf-common ${VTK_LIBRARIES})
+    target_link_libraries(test-3dvf-io-vtkvf ${VTK_LIBRARIES})
     PLUGIN_WITH_TEST_AND_PREFIX2("3dimage" "io" vtkimage "${VTK_LINK_LIBS_3D}")
+    target_link_libraries(3dimage-io-vtkimage ${VTK_LIBRARIES})
+    target_link_libraries(3dimage-io-vtkimage-common ${VTK_LIBRARIES})
+    target_link_libraries(test-3dimage-io-vtkimage ${VTK_LIBRARIES})
 
   ELSEIF(VTK_FOUND)
     MESSAGE(MESSAGE "VTK not found, disabled")
--- a/addons/vtk/vtkmesh.cc
+++ b/addons/vtk/vtkmesh.cc
@@ -78,7 +78,8 @@
        // read all cells, if a cell is formed of more than 3 corners, then 
triangulate,
        // if it hes less then 3 corners, ignore it (no wireframes supported 
here
        auto triangles = CVtkMeshIO::PTrianglefield(new 
CVtkMeshIO::CTrianglefield ());
-       vtkIdType npts, *pts;
+       vtkIdType npts;
+       vtkIdType const *pts;
        auto strips = mesh.GetStrips();
 
        while (strips->GetNextCell(npts, pts)) {
@@ -183,7 +184,7 @@
        auto is = mesh.normals_begin();
 
        for (auto i = 0; i < n_normals; ++i, ++is) {
-              normals->GetTupleValue(i, &is->x);
+              normals->GetTypedTuple(i, &is->x);
               cvdebug() << i << ": read normal " << *is << "\n";
        }
 }
@@ -217,7 +218,7 @@
        auto is = mesh.color_begin();
 
        for (auto i = 0; i < n_colors; ++i, ++is)
-              colors->GetTupleValue(i, &is->x);
+              colors->GetTypedTuple(i, &is->x);
 }
 
 PTriangleMesh CVtkMeshIO::do_load(string const&   filename) const

--- End Message ---
--- Begin Message ---
Source: mia
Source-Version: 2.4.7-10
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mia, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated mia package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 18 Jun 2022 10:28:32 +0200
Source: mia
Architecture: source
Version: 2.4.7-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1012689 1013159
Changes:
 mia (2.4.7-10) unstable; urgency=medium
 .
   * Team upload
 .
   [ Andreas Tille ]
   * Build against vtk9
     Closes: #1013159
 .
   [ Francois Mazen ]
   * Patch to build against vtk9
     Closes: #1012689
Checksums-Sha1:
 330f674997a7e1c9272cd2fac796cb2eb0db7d0d 2839 mia_2.4.7-10.dsc
 548f698e6580c881e76a925801a27b8231798eb4 15936 mia_2.4.7-10.debian.tar.xz
 4db12f47d8fbb5111f2ba70b1820cedc19dd2095 18142 mia_2.4.7-10_source.buildinfo
Checksums-Sha256:
 6f2d7031c4ea0229b9f6c811caa5f11cd0183825606176689da856eeff8dea3b 2839 
mia_2.4.7-10.dsc
 38b9d573cd2f92920411498f9528c5ac297b68a52197131dbfd551fd106bc9c3 15936 
mia_2.4.7-10.debian.tar.xz
 bb92854ed69bca0fe958054da930be216b7e2680875255f7d88fece44add4346 18142 
mia_2.4.7-10_source.buildinfo
Files:
 e691f67e93913d33bc0e7a7b94301882 2839 science optional mia_2.4.7-10.dsc
 ae999daf92b50cddb78490523265cb0a 15936 science optional 
mia_2.4.7-10.debian.tar.xz
 9678dee7d5f1aa177d7d32c66eb12f20 18142 science optional 
mia_2.4.7-10_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJCBAEBCAAsFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmKtpGsOHHRpbGxlYUBy
a2kuZGUACgkQV4oElNHGRtF+fA//QOdIR1p6VCGBrcHVTBYOpvN0s5RU0B+eQuF7
tyTYQ6N+FGYrFxU+fT7m34ucgqiEk7gGMxHCyjNmxLNbGbXPpCVbbYhjBC4TP3sS
00AawCAU8AAYzo0y6ULJNdAD3RhOpMnJMF1i7ZeF4EOO5rsElCU4GVJ7qmy70ZI0
7HhHHSwYHye+gtpCNcKquwbsCH1/rzedt6o/sy3z7HQKv/vhtwKVgPUxdLuOWo19
RMbkLmgANc+VaR97rwX/sQsYGtaJiyk/DBEEWZiKg7jflUR+7t66Pghd9rMU7DGe
e+BsxHcItfySULHeMS+N1F1bjg5+QH4BOpjFxC+pifGAAmW+RtLNn1WD2MlQ2oUe
hnD4Fv29gJHlRxAUYMlvWe51P5pwtAlTUXIyUZmKJqgljaiVb7teG4bmF0LbkMOK
aytYrvWfak+GklMouECiFFRbbxTBwIgzD5UrLKvAoqYjdV4NM2qsZLKfUegoHNjU
MTmxGfoftdrKZ2Ueyg145aXQ3zj+x7DNe387aUZcUdh0xdwzI2f/mVY935HvZ0eV
DpEOw53JSulwf6JbhPyTmDsqQe7CpsvQmkcIp5DgGV+BOcz7/oOWCWeT2Hu5Q/Ta
425IPiL7pJ8lYvHSznU45pMld/mq2Ier3SIt/xKq8aRp00Axlyl/ZHNQrfJT87Go
6zKD89w=
=BkjO
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to