From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 12 06:20:25 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A086D16A5B3 for ; Thu, 12 Oct 2006 06:20:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 530CD43D5D for ; Thu, 12 Oct 2006 06:20:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9C6KO67057059 for ; Thu, 12 Oct 2006 06:20:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9C6KOPC057056; Thu, 12 Oct 2006 06:20:24 GMT (envelope-from gnats) Resent-Date: Thu, 12 Oct 2006 06:20:24 GMT Resent-Message-Id: <200610120620.k9C6KOPC057056@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, TAOKA Fumiyoshi Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A38316A403 for ; Thu, 12 Oct 2006 06:18:31 +0000 (UTC) (envelope-from fmysh@quad.dyndns.org) Received: from xeon.quad.dyndns.org (228.142.138.210.bn.2iij.net [210.138.142.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89C0D43D4C for ; Thu, 12 Oct 2006 06:18:29 +0000 (GMT) (envelope-from fmysh@quad.dyndns.org) Received: from localhost (localhost [127.0.0.1]) by xeon.quad.dyndns.org (Postfix) with ESMTP id 1B3E9153505; Thu, 12 Oct 2006 15:18:23 +0900 (JST) Received: from xeon.quad.dyndns.org ([127.0.0.1]) by localhost (xeon.quad.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VhhlgK8aJQ4Q; Thu, 12 Oct 2006 15:18:08 +0900 (JST) Received: by xeon.quad.dyndns.org (Postfix, from userid 1001) id ACA6915350A; Thu, 12 Oct 2006 14:20:11 +0900 (JST) Message-Id: <20061012052011.ACA6915350A@xeon.quad.dyndns.org> Date: Thu, 12 Oct 2006 14:20:11 +0900 (JST) From: TAOKA Fumiyoshi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: TAOKA Fumiyoshi Subject: ports/104323: [patch] math/vtk-python build failure with python2.5 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: TAOKA Fumiyoshi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 06:20:25 -0000 >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] エラー 1 gmake[1]: *** [Common/CMakeFiles/vtkCommonPython.dir/all] エラー 2 gmake: *** [all] エラー 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: