commit:     b0b8ec0eb0812395514c4ff9f48448fe80ba651b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 07:44:07 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 12:13:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0b8ec0e

dev-qt/qtlocation: Fix build with libcxx

Closes: https://bugs.gentoo.org/903575
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...tlocation-5.15.8-mapboxgl-missing-include.patch | 26 ++++++++++++++++++++++
 dev-qt/qtlocation/qtlocation-5.15.8.ebuild         |  5 ++++-
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git 
a/dev-qt/qtlocation/files/qtlocation-5.15.8-mapboxgl-missing-include.patch 
b/dev-qt/qtlocation/files/qtlocation-5.15.8-mapboxgl-missing-include.patch
new file mode 100644
index 000000000000..9dabca5aa231
--- /dev/null
+++ b/dev-qt/qtlocation/files/qtlocation-5.15.8-mapboxgl-missing-include.patch
@@ -0,0 +1,26 @@
+From 5a07e1967dcc925d9def47accadae991436b9686 Mon Sep 17 00:00:00 2001
+From: Manuel Nickschas <[email protected]>
+Date: Tue, 11 Apr 2023 22:24:11 +0200
+Subject: [PATCH] Add missing include
+
+Fixes build with libcxx, see also:
+https://bugs.gentoo.org/903575
+---
+ include/mbgl/util/unique_any.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/3rdparty/mapbox-gl-native/include/mbgl/util/unique_any.hpp 
b/src/3rdparty/mapbox-gl-native/include/mbgl/util/unique_any.hpp
+index c7dc8b38ea..0fb25b8b4a 100644
+--- a/src/3rdparty/mapbox-gl-native/include/mbgl/util/unique_any.hpp
++++ b/src/3rdparty/mapbox-gl-native/include/mbgl/util/unique_any.hpp
+@@ -3,6 +3,7 @@
+ #include <typeinfo>
+ #include <type_traits>
+ #include <stdexcept>
++#include <utility>
+ namespace mbgl {
+ namespace util {
+ 
+-- 
+GitLab
+

diff --git a/dev-qt/qtlocation/qtlocation-5.15.8.ebuild 
b/dev-qt/qtlocation/qtlocation-5.15.8.ebuild
index a1ab77f7306e..5ed68b32837c 100644
--- a/dev-qt/qtlocation/qtlocation-5.15.8.ebuild
+++ b/dev-qt/qtlocation/qtlocation-5.15.8.ebuild
@@ -39,7 +39,10 @@ QT5_TARGET_SUBDIRS=(
        src/plugins/geoservices
 )
 
-PATCHES=( "${FILESDIR}/${P}-mapboxgl-gcc13.patch" ) # bug 885431
+PATCHES=(
+       "${FILESDIR}/${P}-mapboxgl-gcc13.patch" # bug 885431
+       "${FILESDIR}/${P}-mapboxgl-missing-include.patch" # bug 903575
+)
 
 src_configure() {
        # src/plugins/geoservices requires files that are only generated when

Reply via email to