From owner-svn-ports-all@freebsd.org Mon May 28 17:54:48 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69AC3F74267; Mon, 28 May 2018 17:54:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18280796E7; Mon, 28 May 2018 17:54:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EA2C210AE9; Mon, 28 May 2018 17:54:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4SHslQ4040186; Mon, 28 May 2018 17:54:47 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4SHskx7040178; Mon, 28 May 2018 17:54:46 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201805281754.w4SHskx7040178@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 28 May 2018 17:54:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471059 - head/science/paraview/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/science/paraview/files X-SVN-Commit-Revision: 471059 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 17:54:48 -0000 Author: yuri Date: Mon May 28 17:54:46 2018 New Revision: 471059 URL: https://svnweb.freebsd.org/changeset/ports/471059 Log: science/paraview: Fix build on FreeBSD-CURRENT Add patches that fix null pointer representations in C++. PR: 228569 Submitted by: devel@stasyan.com Added: head/science/paraview/files/patch-vtkOpenGLGlyph3DHelper.cxx (contents, props changed) head/science/paraview/files/patch-vtkOpenGLPolyDataMapper.cxx (contents, props changed) head/science/paraview/files/patch-vtkOpenGLPolyDataMapper2D.cxx (contents, props changed) head/science/paraview/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx (contents, props changed) head/science/paraview/files/patch-vtkOpenGLRenderUtilities.cxx (contents, props changed) head/science/paraview/files/patch-vtkOpenGLStickMapper.cxx (contents, props changed) head/science/paraview/files/patch-vtkPhastaReader.cxx (contents, props changed) head/science/paraview/files/patch-vtkXOpenGLRenderWindow.cxx (contents, props changed) Added: head/science/paraview/files/patch-vtkOpenGLGlyph3DHelper.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLGlyph3DHelper.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,20 @@ +--- VTK/Rendering/OpenGL2/vtkOpenGLGlyph3DHelper.cxx.orig 2018-05-27 16:13:23.631718000 +0700 ++++ VTK/Rendering/OpenGL2/vtkOpenGLGlyph3DHelper.cxx 2018-05-27 16:21:35.310777000 +0700 +@@ -449,7 +449,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Primitives[PrimitiveTris].IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + } + if (primed) + { +@@ -579,7 +579,7 @@ + glDrawElementsInstancedARB(GL_TRIANGLES, + static_cast(this->Primitives[PrimitiveTris].IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL), ++ nullptr, + numPts); + } + #endif Added: head/science/paraview/files/patch-vtkOpenGLPolyDataMapper.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLPolyDataMapper.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,11 @@ +--- VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx.orig 2018-05-27 16:24:15.569847000 +0700 ++++ VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx 2018-05-27 16:24:49.235720000 +0700 +@@ -2534,7 +2534,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Primitives[i].IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Primitives[i].IBO->Release(); + + int stride = (mode == GL_POINTS ? 1 : (mode == GL_LINES ? 2 : 3)); Added: head/science/paraview/files/patch-vtkOpenGLPolyDataMapper2D.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLPolyDataMapper2D.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,38 @@ +--- VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx.orig 2018-05-27 16:27:25.256918000 +0700 ++++ VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx 2018-05-27 16:29:21.344983000 +0700 +@@ -860,7 +860,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Points.IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Points.IBO->Release(); + this->PrimitiveIDOffset += (int)this->Points.IBO->IndexCount; + } +@@ -881,7 +881,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Lines.IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Lines.IBO->Release(); + } + this->PrimitiveIDOffset += (int)this->Lines.IBO->IndexCount/2; +@@ -899,7 +899,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Tris.IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Tris.IBO->Release(); + this->PrimitiveIDOffset += (int)this->Tris.IBO->IndexCount/3; + } +@@ -916,7 +916,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->TriStrips.IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->TriStrips.IBO->Release(); + } + } Added: head/science/paraview/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,11 @@ +--- VTK/Rendering/VolumeOpenGL2/vtkOpenGLProjectedTetrahedraMapper.cxx.orig 2018-05-27 19:37:01.700537000 +0700 ++++ VTK/Rendering/VolumeOpenGL2/vtkOpenGLProjectedTetrahedraMapper.cxx 2018-05-27 19:37:40.189362000 +0700 +@@ -1100,7 +1100,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Tris.IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Tris.IBO->Release(); + this->Tris.VAO->Release(); + this->VBO->Release(); Added: head/science/paraview/files/patch-vtkOpenGLRenderUtilities.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLRenderUtilities.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,12 @@ +--- VTK/Rendering/OpenGL2/vtkOpenGLRenderUtilities.cxx.orig 2018-05-27 16:31:22.687702000 +0700 ++++ VTK/Rendering/OpenGL2/vtkOpenGLRenderUtilities.cxx 2018-05-27 16:32:03.881401000 +0700 +@@ -93,8 +93,7 @@ + vtkNew ibo; + vao->Bind(); + ibo->Upload(iboData, numIndices, vtkOpenGLBufferObject::ElementArrayBuffer); +- glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, nullptr); + ibo->Release(); + ibo->ReleaseGraphicsResources(); + vao->RemoveAttributeArray("vertexMC"); Added: head/science/paraview/files/patch-vtkOpenGLStickMapper.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkOpenGLStickMapper.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,11 @@ +--- VTK/Rendering/OpenGL2/vtkOpenGLStickMapper.cxx.orig 2018-05-27 16:48:40.625194000 +0700 ++++ VTK/Rendering/OpenGL2/vtkOpenGLStickMapper.cxx 2018-05-27 16:48:53.507986000 +0700 +@@ -614,7 +614,7 @@ + static_cast(this->VBO->VertexCount - 1), + static_cast(this->Primitives[PrimitiveTris].IBO->IndexCount), + GL_UNSIGNED_INT, +- reinterpret_cast(NULL)); ++ nullptr); + this->Primitives[PrimitiveTris].IBO->Release(); + } + } Added: head/science/paraview/files/patch-vtkPhastaReader.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkPhastaReader.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,11 @@ +--- ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx.orig 2018-05-27 20:05:20.868911000 +0700 ++++ ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx 2018-05-27 20:05:16.469487000 +0700 +@@ -200,7 +200,7 @@ + { + text_header = new char[real_length + 1]; + strncpy(text_header, Line, real_length); +- text_header[real_length] = static_cast(NULL); ++ text_header[real_length] = static_cast(0); + token = strtok(text_header, ":"); + if (cscompare(phrase, token)) + { Added: head/science/paraview/files/patch-vtkXOpenGLRenderWindow.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/paraview/files/patch-vtkXOpenGLRenderWindow.cxx Mon May 28 17:54:46 2018 (r471059) @@ -0,0 +1,40 @@ +--- VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx.orig 2018-05-27 16:56:49.463432000 +0700 ++++ VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx 2018-05-27 16:58:36.068069000 +0700 +@@ -333,7 +333,7 @@ + + vtkXOpenGLRenderWindow::vtkXOpenGLRenderWindow() + { +- this->ParentId = static_cast(NULL); ++ this->ParentId = static_cast(0); + this->ScreenSize[0] = 0; + this->ScreenSize[1] = 0; + this->OwnDisplay = 0; +@@ -341,8 +341,8 @@ + this->ForceMakeCurrent = 0; + this->UsingHardware = 0; + this->DisplayId = static_cast(NULL); +- this->WindowId = static_cast(NULL); +- this->NextWindowId = static_cast(NULL); ++ this->WindowId = static_cast(0); ++ this->NextWindowId = static_cast(0); + this->ColorMap = static_cast(0); + this->OwnWindow = 0; + +@@ -762,7 +762,7 @@ + if (this->OwnWindow && this->DisplayId && this->WindowId) + { + XDestroyWindow(this->DisplayId,this->WindowId); +- this->WindowId = static_cast(NULL); ++ this->WindowId = static_cast(0); + } + + this->CloseDisplay(); +@@ -1157,7 +1157,7 @@ + + // set the default windowid + this->WindowId = this->NextWindowId; +- this->NextWindowId = static_cast(NULL); ++ this->NextWindowId = static_cast(0); + + // set everything up again + this->Initialize();