Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2006 14:20:11 +0900 (JST)
From:      TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Subject:   ports/104323: [patch] math/vtk-python build failure with python2.5 
Message-ID:  <20061012052011.ACA6915350A@xeon.quad.dyndns.org>
Resent-Message-ID: <200610120620.k9C6KOPC057056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061012052011.ACA6915350A>