Package: libvtk6-dev
Version: 6.2.0
Severity: serious
Tags: upstream
Justification: fails to build from source

Dear Maintainer,

The new Xdmf3 interface in 6.2.0 has a build bug that's already been reported
upstream for fixing in 6.3.0 [1].
The PR there fixes the build and may also be interesting for 6.2.0 in Debian.
The patch is attached.


[1] https://github.com/Kitware/VTK/pull/21



-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), 
(100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-18-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
commit a98527dfe9ce23beebf386fab07caef99b911ede
Author: Nico Schlömer <nico.schloe...@gmail.com>
Date:   Thu Jun 18 13:25:14 2015 +0200

    remove superfluous vtkxdmf3_LINK_DEPENDS from Xdmf3 link line
    
    This caused VTK-compiled HDF5 and LibXML2 libraries to appear on the link line
    even if VTK_USE_SYSTEM_{HDF5,LIBXML2} was on, immediately resulting in a link
    error of the type
    ```
    /usr/bin/ld: cannot find -lvtkhdf5
    /usr/bin/ld: cannot find -lvtklibxml2
    ```
    This commit fixes things by simply removing vtkxdmf3_LINK_DEPENDS from the link
    line. The dependencies are already taken care of.

diff --git a/ThirdParty/xdmf3/vtkxdmf3/core/CMakeLists.txt b/ThirdParty/xdmf3/vtkxdmf3/core/CMakeLists.txt
index ff045a6..241fa0a 100644
--- a/ThirdParty/xdmf3/vtkxdmf3/core/CMakeLists.txt
+++ b/ThirdParty/xdmf3/vtkxdmf3/core/CMakeLists.txt
@@ -8,7 +8,7 @@ include(CheckCXXSourceCompiles)
 include(SetUpVersion)
 include(TestBigEndian)
 
-if(VERSION_CONTROL_AUTOUPDATE OR 
+if(VERSION_CONTROL_AUTOUPDATE OR
     NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/XdmfVersion.hpp)
   VersionCreate("Xdmf" "2" "XDMFCORE_EXPORT" "XdmfCore.hpp")
 endif()
@@ -154,7 +154,7 @@ set(XdmfCoreSources
 add_library(XdmfCore ${LIBTYPE} ${XdmfCoreSources})
 link_directories(${XDMF_LIBRARY_DIRS})
 
-target_link_libraries(XdmfCore ${XDMF_LIBRARIES} ${vtkxdmf3_LINK_DEPENDS})
+target_link_libraries(XdmfCore ${XDMF_LIBRARIES})
 vtk_target_install(XdmfCore)
 
 if(WIN32)
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to