[vtkusers] Bug (?): /usr/lib/vtk-5.0/vtkCommonKit.cmake contains wrong elements

Michail Vidiassov master at iaas.msu.ru
Wed Dec 12 12:33:30 EST 2007


Dear All,

I have encountered (Mac OS X 10.5, vtk 5.0.3) the problem, that
is similar to the one described in the following bug report

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388736

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"

What is the proper solution?
Debian packagers use the attached patch
(http://ftp.de.debian.org/debian/pool/main/v/vtk/vtk_5.0.3-1.diff.gz),
but since their fix did not find its way into VTK in a year,
I suspect that there is something wrong about it
(but I am only guessing, since I know nothing
  about the authour/packager relations in VTK domain).


      Sincerely, Michail
-------------- next part --------------
--- vtk-5.0.3.orig/CMake/vtkExportKit.cmake
+++ vtk-5.0.3/CMake/vtkExportKit.cmake
@@ -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$")


More information about the vtkusers mailing list