From ee6ae402aa46b6742e9f4f2041e232caa3af5a8f Mon Sep 17 00:00:00 2001 From: Melven Roehrig-Zoellner Date: Fri, 11 Aug 2023 08:10:06 +0200 Subject: qt: fedora patch missing includes in qtlocation (#38987) --- var/spack/repos/builtin/packages/qt/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index d78ddd9c9a..daf4933072 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -138,6 +138,15 @@ class Qt(Package): working_dir="qtwebsockets", when="@5.14: %gcc@11:", ) + # patch that adds missing `#include ` in several files + # required for gcc 13 (even though the original patch was developed for gcc 10) + # (see https://gcc.gnu.org/gcc-13/porting_to.html) + patch( + "https://src.fedoraproject.org/rpms/qt5-qtlocation/raw/b6d99579de9ce5802c592b512a9f644a5e4690b9/f/qtlocation-gcc10.patch", + sha256="78c70fbd0c74031c5f0f1f5990e0b4214fc04c5073c67ce1f23863373932ec86", + working_dir="qtlocation", + when="@5.15.10 %gcc@10:", + ) # https://github.com/microsoft/vcpkg/issues/21055 patch("qt5-macos12.patch", working_dir="qtbase", when="@5.14: %apple-clang@13:") -- cgit v1.2.3-60-g2f50