From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 12F2A158011 for ; Thu, 1 Sep 2022 02:24:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A192E09B4; Thu, 1 Sep 2022 02:24:50 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30110E09B4 for ; Thu, 1 Sep 2022 02:24:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 34402340DE2 for ; Thu, 1 Sep 2022 02:24:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7DD558D for ; Thu, 1 Sep 2022 02:24:47 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661999033.2e02cfbf0edd45b41747e2707fc56b7512c6aef6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/files/, sci-libs/vtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/vtk/files/vtk-9.1.0-Change-or-scope-struct-names-to-avoid-conflicts.patch sci-libs/vtk/vtk-9.1.0-r2.ebuild X-VCS-Directories: sci-libs/vtk/ sci-libs/vtk/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2e02cfbf0edd45b41747e2707fc56b7512c6aef6 X-VCS-Branch: master Date: Thu, 1 Sep 2022 02:24:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 445397c8-703e-4f5e-a639-a0698cdc662f X-Archives-Hash: 91f8f7794de768324296ab0ce0fd04ca commit: 2e02cfbf0edd45b41747e2707fc56b7512c6aef6 Author: Bernd Waibel posteo net> AuthorDate: Tue Aug 23 16:54:15 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Sep 1 02:23:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e02cfbf sci-libs/vtk: build with LTO enabled Closes: https://bugs.gentoo.org/863038 Signed-off-by: Bernd Waibel posteo.net> Closes: https://github.com/gentoo/gentoo/pull/27010 Signed-off-by: Sam James gentoo.org> ...-or-scope-struct-names-to-avoid-conflicts.patch | 126 +++++++++++++++++++++ sci-libs/vtk/vtk-9.1.0-r2.ebuild | 1 + 2 files changed, 127 insertions(+) diff --git a/sci-libs/vtk/files/vtk-9.1.0-Change-or-scope-struct-names-to-avoid-conflicts.patch b/sci-libs/vtk/files/vtk-9.1.0-Change-or-scope-struct-names-to-avoid-conflicts.patch new file mode 100644 index 000000000000..e06c786db9ab --- /dev/null +++ b/sci-libs/vtk/files/vtk-9.1.0-Change-or-scope-struct-names-to-avoid-conflicts.patch @@ -0,0 +1,126 @@ +From https://gitlab.kitware.com/vtk/vtk/-/commit/0322b938968eebee585ad7efb93bbdade7106355 +From: Aron Helser +Date: Mon, 15 Aug 2022 10:06:13 -0400 +Subject: [PATCH 16/30] Change or scope struct names to avoid conflicts. + +(cherry picked from commit b79eb46bf5a4277cafc1ed2bd47fd3ffc28a5b3f) +--- a/IO/AMR/vtkAMRFlashReader.cxx ++++ b/IO/AMR/vtkAMRFlashReader.cxx +@@ -153,7 +153,7 @@ void vtkAMRFlashReader::ComputeStats( + + for (int i = 0; i < internal->NumberOfBlocks; ++i) + { +- Block& theBlock = internal->Blocks[i]; ++ FlashReaderBlock& theBlock = internal->Blocks[i]; + double* gridMin = theBlock.MinBounds; + if (gridMin[0] < min[0]) + { +@@ -193,7 +193,7 @@ int vtkAMRFlashReader::FillMetaData() + + for (int i = 0; i < this->Internal->NumberOfBlocks; ++i) + { +- Block& theBlock = this->Internal->Blocks[i]; ++ FlashReaderBlock& theBlock = this->Internal->Blocks[i]; + + // Start numbering levels from 0! + int level = this->Internal->Blocks[i].Level - 1; +--- a/IO/AMR/vtkAMRFlashReaderInternal.cxx ++++ b/IO/AMR/vtkAMRFlashReaderInternal.cxx +@@ -692,7 +692,7 @@ void vtkFlashReaderInternal::GetBlockMinMaxGlobalDivisionIds() + + for (int b = 0; b < this->NumberOfBlocks; b++) + { +- Block& B = this->Blocks[b]; ++ FlashReaderBlock& B = this->Blocks[b]; + + for (int d = 0; d < 3; d++) + { +--- a/IO/AMR/vtkAMRFlashReaderInternal.h ++++ b/IO/AMR/vtkAMRFlashReaderInternal.h +@@ -74,7 +74,7 @@ typedef struct tagFlashReaderSimulationParameters + double RedShift; + } FlashReaderSimulationParameters; + +-typedef struct tagBlock ++typedef struct tagFlashReaderBlock + { + int Index; // Id of the block + int Level; // LOD level +@@ -88,7 +88,7 @@ typedef struct tagBlock + double Center[3]; // center of the block + double MinBounds[3]; // lower left of the bounding box + double MaxBounds[3]; // upper right of the bounding box +-} Block; ++} FlashReaderBlock; + + typedef struct tagFlashReaderSimulationInformation + { +@@ -152,7 +152,7 @@ public: + FlashReaderSimulationInformation SimulationInformation; // CFD simulation + + // blocks +- std::vector Blocks; ++ std::vector Blocks; + std::vector LeafBlocks; + std::vector AttributeNames; + +--- a/IO/AMR/vtkAMRVelodyneReader.cxx ++++ b/IO/AMR/vtkAMRVelodyneReader.cxx +@@ -219,7 +219,7 @@ int vtkAMRVelodyneReader::FillMetaData() + double spacing[3]; + for (int i = 0; i < this->Internal->nBlocks; i++) + { +- Block& theBlock = this->Internal->Blocks[i]; ++ vtkAMRVelodyneReaderInternal::Block& theBlock = this->Internal->Blocks[i]; + int level = theBlock.Level; + int id = theBlock.Index; + CalculateBlockDims(this->Internal->blockDims.data(), theBlock.isFull, dims); +@@ -243,7 +243,7 @@ vtkUniformGrid* vtkAMRVelodyneReader::GetAMRGrid(const int blockIdx) + { + return nullptr; + } +- Block& theBlock = this->Internal->Blocks[blockIdx]; ++ vtkAMRVelodyneReaderInternal::Block& theBlock = this->Internal->Blocks[blockIdx]; + int dims[3]; + CalculateBlockDims(this->Internal->blockDims.data(), theBlock.isFull, dims); + vtkUniformGrid* ug = vtkUniformGrid::New(); +--- a/IO/AMR/vtkAMRVelodyneReaderInternal.h ++++ b/IO/AMR/vtkAMRVelodyneReaderInternal.h +@@ -48,24 +48,20 @@ + //================================================================================ + // INTERNAL VELODYNE READER + //================================================================================ +-typedef struct tagVelodyneSimParameters +-{ +- double Time; +- int CycleTime; +-} VelodneSimParameters; + +-typedef struct tagBlock +-{ +- int Index; +- int dSetLoc; +- int Level; +- double Origin[3]; +- bool isFull; +- bool isLeaf; +-} Block; + class vtkAMRVelodyneReaderInternal + { + public: ++ typedef struct tagVelodyneBlock ++ { ++ int Index; ++ int dSetLoc; ++ int Level; ++ double Origin[3]; ++ bool isFull; ++ bool isLeaf; ++ } Block; ++ + vtkAMRVelodyneReaderInternal(); + ~vtkAMRVelodyneReaderInternal(); + void SetFileName(VTK_FILEPATH VTK_FUTURE_CONST char* fileName); +-- +2.37.2 + diff --git a/sci-libs/vtk/vtk-9.1.0-r2.ebuild b/sci-libs/vtk/vtk-9.1.0-r2.ebuild index 1e80b96b80b4..e9034c50bbb0 100644 --- a/sci-libs/vtk/vtk-9.1.0-r2.ebuild +++ b/sci-libs/vtk/vtk-9.1.0-r2.ebuild @@ -145,6 +145,7 @@ PATCHES=( "${FILESDIR}"/${PN}-9.0.3-IO-FFMPEG-support-FFmpeg-5.0-API-changes.patch "${FILESDIR}"/${P}-adjust-to-find-binaries.patch "${FILESDIR}"/${P}-avoid-naming-collision-with-netcdf-4.9.0.patch + "${FILESDIR}"/${P}-Change-or-scope-struct-names-to-avoid-conflicts.patch ) DOCS=( CONTRIBUTING.md README.md )