Package: libvtk5-dev
Version: 5.0.1-1
Severity: important
Tags: patch

The file /usr/lib/vtk-5.0/vtkCommonKit.cmake contains the setting of
VTK_COMMON_CLASSES; the last elements of this list look like 
  "/debian/stage/vtk-5.0.1/Build/Common/vtkTypeInt8Array"
instead of 
  "vtkTypeInt8Array",

which leads to errors like described in [1] (this also shows that this is an
upstream problem, so if you approve my patch, you might want to forward it). 

The patch takes the filename without extension and without path (the former code
stripped only the extension).

Severity set to 'important', because I can't build Octaviz with this bug.

[1] http://sourceforge.net/forum/forum.php?thread_id=1546921&forum_id=348515

Thanks
  Thomas



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libvtk5-dev depends on:
ii  libc6-dev         2.3.6.ds1-4            GNU C Library: Development Librari
ii  libgl1-mesa-dev [ 6.5.0.cvs.20060524-1.1 A free implementation of the OpenG
ii  libglu1-mesa-dev  6.5.0.cvs.20060524-1.1 The OpenGL utility library -- deve
ii  libvtk5           5.0.1-1                Visualization Toolkit - A high lev
ii  libx11-dev        2:1.0.0-9              X11 client-side library (developme
ii  libxt-dev         1:1.0.2-2              X11 toolkit intrinsics library (de
ii  x-dev             7.0.7-2                dummy package for transition purpo
ii  xlibmesa-gl-dev   1:7.1.0-1              transitional package for Debian et

libvtk5-dev recommends no packages.

-- no debconf information
diff -rN -u old-VTK-1/CMake/vtkExportKit.cmake new-VTK/CMake/vtkExportKit.cmake
--- old-VTK-1/CMake/vtkExportKit.cmake  2006-09-22 09:33:56.075166293 +0000
+++ new-VTK/CMake/vtkExportKit.cmake    2006-09-22 09:33:56.836005948 +0000
@@ -4,7 +4,7 @@
   SET(KIT_ABSTRACT_LIST)
   SET(KIT_EXCLUDE_LIST)
   FOREACH(src ${sources})
-    STRING(REGEX REPLACE "\\.cxx$" "" CLASS "${src}")
+    GET_FILENAME_COMPONENT(CLASS "${src}" NAME_WE)
     SET(KIT_CLASS_LIST "${KIT_CLASS_LIST}\n  \"${CLASS}\"")
     GET_SOURCE_FILE_PROPERTY(IS_ABSTRACT ${src} ABSTRACT)
     IF(IS_ABSTRACT MATCHES "^1$")

Reply via email to