FS#71004 - [paraview] need patch to build against gcc:11

Attached to Project: Community Packages
Opened by bartus (bartus) - Monday, 24 May 2021, 19:57 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Friday, 23 July 2021, 02:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Unable to build against current core repo gcc version (gcc:11)


Additional info:
* gcc:11.1.0
* paraview:5.9.0
* gcc:11 transitive header regressin: https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes

Sample fix I've used for AUR/paraview-opt:

```
# fix build against gcc:11 https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes
files_to_patch=( VTK/Common/Core/vtkGenericDataArrayLookupHelper.h
VTK/Common/Core/vtkDataArrayPrivate.txx
VTK/Common/DataModel/vtkPiecewiseFunction.cxx
VTK/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
VTK/Rendering/Core/vtkColorTransferFunction.cxx)
sed -i '1 i\#include <limits>' -i "${files_to_patch[@]}"
```
This task depends upon

Closed by  Bruno Pagani (ArchangeGabriel)
Friday, 23 July 2021, 02:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Done.
Comment by loqs (loqs) - Monday, 24 May 2021, 20:34 GMT

Loading...