[med-svn] [Git][med-team/gdcm][master] 4 commits: fix-ftbfs-with-vtk-9.6-and-gcc-15.patch: new.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Thu Jul 16 21:16:41 BST 2026



Étienne Mollier pushed to branch master at Debian Med / gdcm


Commits:
907c29d4 by Étienne Mollier at 2026-07-16T21:29:18+02:00
fix-ftbfs-with-vtk-9.6-and-gcc-15.patch: new.

Apply compiler hints to fix build failures.

Closes: #1140923

- - - - -
d7b4d106 by Étienne Mollier at 2026-07-16T21:29:37+02:00
d/rules: fetch DEB_HOST_* from dpkg architecture.mk.

- - - - -
80869073 by Étienne Mollier at 2026-07-16T21:30:01+02:00
d/watch: move to Github template scan.

- - - - -
046b86af by Étienne Mollier at 2026-07-16T21:30:42+02:00
d/changelog: ready for upload to unstable.

- - - - -


5 changed files:

- debian/changelog
- + debian/patches/fix-ftbfs-with-vtk-9.6-and-gcc-15.patch
- debian/patches/series
- debian/rules
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+gdcm (3.0.24-12) unstable; urgency=medium
+
+  * Team upload.
+  * fix-ftbfs-with-vtk-9.6-and-gcc-15.patch: new.
+    Apply compiler hints to fix build failures. (Closes: #1140923)
+  * d/rules: fetch DEB_HOST_* from dpkg architecture.mk.
+  * d/watch: move to Github template scan.
+
+ -- Étienne Mollier <emollier at debian.org>  Thu, 16 Jul 2026 21:30:24 +0200
+
 gdcm (3.0.24-11) unstable; urgency=medium
 
   * Team Upload.


=====================================
debian/patches/fix-ftbfs-with-vtk-9.6-and-gcc-15.patch
=====================================
@@ -0,0 +1,63 @@
+Description: fix ftbfs with C++20 and vtk-9.6.
+ When buliding with recent C++ compiler is combined with building with
+ vtk-9.6, gdcm 3.0.24 fails to build with the following errors.  The
+ first one is:
+ .
+ 	/build/vtk-dep/gdcm-3.0.24/Utilities/VTK/Applications/gdcm2pnm.cxx:33:10: error: ‘cerr’ is not a member of ‘std’
+ 	   33 |     std::cerr << argv[0] << " input.dcm output.pnm" << std::endl;
+ 	      |          ^~~~
+ 	/build/vtk-dep/gdcm-3.0.24/Utilities/VTK/Applications/gdcm2pnm.cxx:22:1: note: ‘std::cerr’ is defined in header ‘<iostream>’; this is probably fixable by adding ‘#include <iostream>’
+ 	   21 | #include "vtkMedicalImageProperties.h"
+ 	  +++ |+#include <iostream>
+ .
+ The second one is:
+ .
+ 	/build/reproducible-path/gdcm-3.0.24/Utilities/VTK/Applications/gdcmviewer.cxx:348:33: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? [-Wtemplate-body]
+ 	  348 |     reader->GetOutput()->Print( cout );
+ 	      |                                 ^~~~
+ 	      |                                 std::cout
+ .
+ This basic change applies the hints provided by the compiler to fix the
+ build failures.
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/1140923
+Forwarded: no
+Last-Update: 2026-07-16
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- gdcm.orig/Utilities/VTK/Applications/gdcm2pnm.cxx
++++ gdcm/Utilities/VTK/Applications/gdcm2pnm.cxx
+@@ -20,6 +20,8 @@
+ #include "vtkWindowToImageFilter.h"
+ #include "vtkMedicalImageProperties.h"
+ 
++#include <iostream>
++
+ /*
+  * Inspired by dcm2pnm from DCMTK toolkit
+  * for now it always output PNG file and does not handle very well window/level
+--- gdcm.orig/Utilities/VTK/Applications/gdcmviewer.cxx
++++ gdcm/Utilities/VTK/Applications/gdcmviewer.cxx
+@@ -275,7 +275,7 @@
+       vtkBalloonWidget *balloonWidget = reinterpret_cast<vtkBalloonWidget*>(caller);
+       if ( balloonWidget->GetCurrentProp() != NULL )
+         {
+-        cout << "Prop selected\n";
++        std::cout << "Prop selected\n";
+         }
+     }
+ };
+@@ -343,10 +343,10 @@
+     return;
+     }
+ 
+-  //reader->Print( cout );
++  //reader->Print( std::cout );
+   if( verbose )
+-    reader->GetOutput()->Print( cout );
+-  //reader->GetOutput(1)->Print( cout );
++    reader->GetOutput()->Print( std::cout );
++  //reader->GetOutput(1)->Print( std::cout );
+   vtkFloatingPointType range[2];
+   reader->GetOutput()->GetScalarRange(range);
+ #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )


=====================================
debian/patches/series
=====================================
@@ -14,3 +14,4 @@ CVE-2025-52582.patch
 CVE-2025-53618_CVE-2025-53619.patch
 CVE-2025-48429.patch
 CVE-2026-3650.patch
+fix-ftbfs-with-vtk-9.6-and-gcc-15.patch


=====================================
debian/rules
=====================================
@@ -1,13 +1,11 @@
 #!/usr/bin/make -f
 # export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
 
 # results in linking error
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
 # to please dpkg-shlibdeps and java private libs in /usr/lib/jni
 export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):/usr/lib/jni
 


=====================================
debian/watch
=====================================
@@ -1,6 +1,6 @@
 Version: 5
 
-Source: https://github.com/malaterre/GDCM/
-Matching-Pattern: refs/tags/@ANY_VERSION@
-Mode: git
+Template: Github
+Project: GDCM
+Owner: malaterre
 Uversion-Mangle: s/^3.1.0$/3.0.6+3.1.0/



View it on GitLab: https://salsa.debian.org/med-team/gdcm/-/compare/c000e46997abaa0d917e11b66c59b3e874935a0c...046b86af93cef3a51575efc3aee1ff9cc2aba3da

-- 
View it on GitLab: https://salsa.debian.org/med-team/gdcm/-/compare/c000e46997abaa0d917e11b66c59b3e874935a0c...046b86af93cef3a51575efc3aee1ff9cc2aba3da
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260716/12322349/attachment-0001.htm>


More information about the debian-med-commit mailing list