Bug#944636: insighttoolkit4: CMake missing files for imported targets

2019-11-24 Thread Bas Couwenberg
Source: insighttoolkit4
Version: 4.12.2-dfsg1-4+b2
Followup-For: Bug #944636
Control: tags -1 patch

Dear Maintainer,

At least part of the problem is that libminc-dev is only a build dependency and 
not being pulled in via the libinsighttoolkit4-dev dependencies.

This is fixed with the attached patch.

Kind Regards,

Bas
>From 9ec752547bb0319e30437ffa9b6c3ede61d0614c Mon Sep 17 00:00:00 2001
From: Bas Couwenberg 
Date: Sun, 24 Nov 2019 16:48:43 +0100
Subject: Add libminc-dev to libinsighttoolkit4-dev dependencies.


diff --git a/debian/changelog b/debian/changelog
index efa42876..1c776ff2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+insighttoolkit4 (4.13.2-dfsg1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add libminc-dev to libinsighttoolkit4-dev dependencies.
+
+ -- Bas Couwenberg   Sun, 24 Nov 2019 16:48:06 +0100
+
 insighttoolkit4 (4.13.2-dfsg1-3) unstable; urgency=medium
 
   * d/rules: Fix lintian file generation
diff --git a/debian/control b/debian/control
index 069b9cdb..04cf6295 100644
--- a/debian/control
+++ b/debian/control
@@ -50,7 +50,7 @@ Description: Image processing toolkit for registration and 
segmentation - runtim
 Package: libinsighttoolkit4-dev
 Section: libdevel
 Architecture: amd64 i386
-Depends: ${shlibs:Depends}, ${misc:Depends}, libinsighttoolkit4.13 (= 
${binary:Version}), libgdcm-dev, libdcmtk-dev, libhdf5-dev, 
libdouble-conversion-dev, libexpat-dev, libnifti-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libinsighttoolkit4.13 (= 
${binary:Version}), libgdcm-dev, libdcmtk-dev, libhdf5-dev, 
libdouble-conversion-dev, libexpat-dev, libminc-dev, libnifti-dev
 Recommends: libfftw3-dev, uuid-dev
 Conflicts: libinsighttoolkit-dev, libinsighttoolkit3-dev
 Replaces: libinsighttoolkit-dev
diff --git a/debian/control.in b/debian/control.in
index b6d19171..94253560 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -50,7 +50,7 @@ Description: Image processing toolkit for registration and 
segmentation - runtim
 Package: libinsighttoolkit@VER_MAJOR@-dev
 Section: libdevel
 Architecture: amd64 i386
-Depends: ${shlibs:Depends}, ${misc:Depends}, libinsighttoolkit@SOVERSION@ (= 
${binary:Version}), libgdcm-dev, libdcmtk-dev, libhdf5-dev, 
libdouble-conversion-dev, libexpat-dev, libnifti-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libinsighttoolkit@SOVERSION@ (= 
${binary:Version}), libgdcm-dev, libdcmtk-dev, libhdf5-dev, 
libdouble-conversion-dev, libexpat-dev, libminc-dev, libnifti-dev
 Recommends: libfftw3-dev, uuid-dev
 Conflicts: libinsighttoolkit-dev, libinsighttoolkit3-dev
 Replaces: libinsighttoolkit-dev
-- 
2.20.1



Bug#944636: insighttoolkit4: CMake missing files for imported targets

2019-11-12 Thread Bas Couwenberg
Source: insighttoolkit4
Version: 4.13.2-dfsg1-1
Severity: important
Control: affects -1 src:otb

Dear Maintainer,

When building otb with only insighttoolkit4 and without opencv (#944341 causes 
B-D uninstallable), the configure target fails due to missing files for 
imported targets and missing FindLIBMINC.cmake:

 -- The imported target "vtkgdcm" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcm.so.3.0.4"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "vtkgdcmsharpglue" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcmsharpglue.so"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "vtkgdcmJava" references the file
"/usr/lib/x86_64-linux-gnu/jni/libvtkgdcmJava.so"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "vtkgdcmPython" references the file
"/usr/lib/python/dist-packages/vtkgdcmPython.so"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "vtkgdcmPythonD" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcmPythonD.so.3.0.4"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmdump" references the file
"/usr/bin/gdcmdump"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmdiff" references the file
"/usr/bin/gdcmdiff"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmraw" references the file
"/usr/bin/gdcmraw"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmscanner" references the file
"/usr/bin/gdcmscanner"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmanon" references the file
"/usr/bin/gdcmanon"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-3.0/GDCMTargets.cmake"
 but not all the files it references.
 
 -- The imported target "gdcmgendir" references the file
"/usr/bin/gdcmgendir"
 but this file does not exist.  Possible reasons include:
 * The file was deleted, renamed, or moved to another location.
 * An install or uninstall procedure did not complete successfully.
 * The installation