[Debian-med-packaging] Bug#871930: libinsighttoolkit4-dev contains search path for wrong gdcm version

Adrian Bunk bunk at debian.org
Sat Aug 12 16:52:28 UTC 2017


Package: libinsighttoolkit4-dev
Version: 4.12.0-dfsg1-1
Severity: serious
Control: affects -1 src:ants src:camitk src:elastix src:fw4spl src:ginkgocadx src:itksnap src:nifti2dicom src:otb src:plastimatch src:vmtk

Packages using libinsighttoolkit4-dev currently FTBFS, e.g.:

https://buildd.debian.org/status/fetch.php?pkg=ants&arch=amd64&ver=2.1.0-5%2Bb1&stamp=1502362461&raw=0

...
In file included from /<<PKGBUILDDIR>>/Examples/DeNrrd.cxx:24:0:
/usr/include/ITK-4.12/itkGDCMSeriesFileNames.h:25:10: fatal error: gdcmSerieHelper.h: No such file or directory
 #include "gdcmSerieHelper.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Examples/CMakeFiles/l_DeNrrd.dir/build.make:65: recipe for target 'Examples/CMakeFiles/l_DeNrrd.dir/DeNrrd.cxx.o' failed
make[4]: *** [Examples/CMakeFiles/l_DeNrrd.dir/DeNrrd.cxx.o] Error 1



The problem is the hardcoded 2.6 version in
/usr/lib/cmake/ITK-4.12/Modules/ITKGDCM.cmake:set(ITKGDCM_INCLUDE_DIRS "${ITK_INSTALL_PREFIX}/include/ITK-4.12;/usr/include/gdcm-2.6")
/usr/lib/cmake/ITK-4.12/Modules/ITKGDCM.cmake:set(GDCM_DIR "/usr/lib/x86_64-linux-gnu/gdcm-2.6")


There are two possible solutions:
- use GDCM_INCLUDE_ROOT from the gdcm cmake files, or
- make the dependency of libinsighttoolkit4-dev on libgdcm2-dev
  more strict



More information about the Debian-med-packaging mailing list