ports/104323: [patch] math/vtk-python build failure with python2.5

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Thu Oct 12 06:20:25 UTC 2006


>Number:         104323
>Category:       ports
>Synopsis:       [patch] math/vtk-python build failure with python2.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 12 06:20:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     TAOKA Fumiyoshi
>Release:        
>Organization:
>Environment:
>Description:
	With python2.5 math/vtk-python failed to build.

>How-To-Repeat:

# make

(snip)

[ 19%] Building CXX object Common/CMakeFiles/vtkCommonPython.dir/vtkPythonUtil.o
/usr/ports/math/vtk-python/work/VTK/Common/vtkPythonUtil.cxx: In function `PyObject* PyVTKClassMetaType_GetAttr(PyTypeObject*, char*)':
/usr/ports/math/vtk-python/work/VTK/Common/vtkPythonUtil.cxx:734: error: invalid conversion from `const char*' to `char*'
gmake[2]: *** [Common/CMakeFiles/vtkCommonPython.dir/vtkPythonUtil.o] $B%(%i!<(B 1
gmake[1]: *** [Common/CMakeFiles/vtkCommonPython.dir/all] $B%(%i!<(B 2
gmake: *** [all] $B%(%i!<(B 2
*** Error code 2

Stop in /usr/ports/math/vtk-python.

>Fix:

Add a new patch, files/extra-patch-Common-vtkPythonUtil.cxx.


diff -urN --exclude CVS vtk-python.orig/Makefile vtk-python/Makefile
--- vtk-python.orig/Makefile	Thu Oct 12 04:24:23 2006
+++ vtk-python/Makefile	Thu Oct 12 04:24:09 2006
@@ -42,6 +42,7 @@
 .include "${MASTERDIR}/Makefile"
 
 post-patch: patch-common
+	@${PATCH} ${PATCH_ARGS} < ${.CURDIR}/files/extra-patch-Common-vtkPythonUtil.cxx
 
 do-install: install-cnotice install-binaries install-libs
 	@${ECHO_MSG} "Installing vtk site package to ${PREFIX}/lib/vtk/python ..."
diff -urN --exclude CVS vtk-python.orig/files/extra-patch-Common-vtkPythonUtil.cxx vtk-python/files/extra-patch-Common-vtkPythonUtil.cxx
--- vtk-python.orig/files/extra-patch-Common-vtkPythonUtil.cxx	Thu Jan  1 09:00:00 1970
+++ vtk-python/files/extra-patch-Common-vtkPythonUtil.cxx	Thu Oct 12 04:24:09 2006
@@ -0,0 +1,11 @@
+--- Common/vtkPythonUtil.cxx.orig	Thu Oct 12 03:11:22 2006
++++ Common/vtkPythonUtil.cxx	Thu Oct 12 03:11:33 2006
+@@ -731,7 +731,7 @@
+     }
+   if (strcmp(name, "__doc__") == 0)
+     {
+-    char *doc = t->tp_doc;
++    const char *doc = t->tp_doc;
+     if (doc != NULL)
+       {
+       return PyString_FromString(doc);
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list