From: Matthias Maier Date: Sun, 20 Sep 2015 02:53:17 +0000 (-0500) Subject: sci-visualization/paraview: Fix compilation with protobuf-2.6 (bug #537988) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b6729b01b86fe46347b9547efd931fe1e999192;p=gentoo.git sci-visualization/paraview: Fix compilation with protobuf-2.6 (bug #537988) Gentoo-Bug: 537988 Package-Manager: portage-2.2.20.1 --- diff --git a/sci-visualization/paraview/files/paraview-4.2.0-protobuf-2.patch b/sci-visualization/paraview/files/paraview-4.3.1-protobuf-2.6.patch similarity index 84% rename from sci-visualization/paraview/files/paraview-4.2.0-protobuf-2.patch rename to sci-visualization/paraview/files/paraview-4.3.1-protobuf-2.6.patch index f1ea7b5b01bc..5a7871f0790d 100644 --- a/sci-visualization/paraview/files/paraview-4.2.0-protobuf-2.patch +++ b/sci-visualization/paraview/files/paraview-4.3.1-protobuf-2.6.patch @@ -1,5 +1,11 @@ -diff --git a/ParaViewCore/ServerImplementation/Core/vtkPVMessage.proto b/ParaViewCore/ServerImplementation/Core/vtkPVMessage.proto -index 60e084c..aed5832 100644 +https://gitlab.kitware.com/ben.boeckel/paraview/commit/40a62e0bd20ceb73d7a545dab73e975fa07cddbb +http://www.vtk.org/Bug/view.php?id=15442#c34997 + +https://bugs.gentoo.org/show_bug.cgi?id=537988 + +This updates the *.proto files to be compatible with version 2.6 and fixes +a bug that prevented successful compilation with protobuf 2.6. + --- a/ParaViewCore/ServerImplementation/Core/vtkPVMessage.proto +++ b/ParaViewCore/ServerImplementation/Core/vtkPVMessage.proto @@ -21,7 +21,7 @@ message Variant { @@ -159,3 +165,13 @@ index 60e084c..aed5832 100644 } } +--- a/ParaViewCore/ServerManager/Rendering/vtkSMCameraLink.cxx ++++ b/ParaViewCore/ServerManager/Rendering/vtkSMCameraLink.cxx +@@ -363,6 +363,6 @@ void vtkSMCameraLink::LoadState(const vtkSMMessage *msg, vtkSMProxyLocator *loca + void vtkSMCameraLink::UpdateState() + { + this->Superclass::UpdateState(); +- this->State->GetExtension(LinkState::sync_interactive_renders, ++ this->State->SetExtension(LinkState::sync_interactive_renders, + this->GetSynchronizeInteractiveRenders()); + } diff --git a/sci-visualization/paraview/paraview-4.2.0-r1.ebuild b/sci-visualization/paraview/paraview-4.2.0-r1.ebuild index 62bbc1f8814b..7777925a4ac4 100644 --- a/sci-visualization/paraview/paraview-4.2.0-r1.ebuild +++ b/sci-visualization/paraview/paraview-4.2.0-r1.ebuild @@ -92,7 +92,6 @@ src_prepare() { "${FILESDIR}"/${P}-removesqlite.patch \ "${FILESDIR}"/${PN}-4.0.1-gcc-4.7.patch \ "${FILESDIR}"/${P}-protobuf.patch \ - "${FILESDIR}"/${P}-protobuf-2.patch \ "${FILESDIR}"/${PN}-4.1.0-no-fatal-warnings.patch \ "${FILESDIR}"/${P}-vtk-freetype.patch diff --git a/sci-visualization/paraview/paraview-4.3.1.ebuild b/sci-visualization/paraview/paraview-4.3.1.ebuild index bba20916be9a..7d7b44fc04e6 100644 --- a/sci-visualization/paraview/paraview-4.3.1.ebuild +++ b/sci-visualization/paraview/paraview-4.3.1.ebuild @@ -29,7 +29,7 @@ RDEPEND=" dev-libs/expat >=dev-libs/jsoncpp-0.10.1 dev-libs/libxml2:2 -