Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtlocation/, dev-qt/qtlocation/files/
Date: Thu, 14 May 2020 17:21:14
Message-Id: 1589476847.b3c9738568a19e21a38b45d9263846ab19f144a8.asturm@gentoo
1 commit: b3c9738568a19e21a38b45d9263846ab19f144a8
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 11 21:31:50 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu May 14 17:20:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3c97385
7
8 dev-qt/qtlocation: Fix build with GCC-10
9
10 Reported-by: Vadim Dyadkin <gentoo <AT> 3lp.cx>
11 Bug: https://bugs.gentoo.org/722102
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 .../files/qtlocation-5.14.2-gcc-10.patch | 36 ++++++++++++++++++++++
16 dev-qt/qtlocation/qtlocation-5.14.2.ebuild | 2 ++
17 2 files changed, 38 insertions(+)
18
19 diff --git a/dev-qt/qtlocation/files/qtlocation-5.14.2-gcc-10.patch b/dev-qt/qtlocation/files/qtlocation-5.14.2-gcc-10.patch
20 new file mode 100644
21 index 00000000000..e7cc6f70d05
22 --- /dev/null
23 +++ b/dev-qt/qtlocation/files/qtlocation-5.14.2-gcc-10.patch
24 @@ -0,0 +1,36 @@
25 +From 0853378b2f2de82c59501e31d18906694ec6e27e Mon Sep 17 00:00:00 2001
26 +From: Bruno de Oliveira Abinader <bruno@××××××.com>
27 +Date: Wed, 22 Apr 2020 19:54:53 +0300
28 +Subject: Fix compilation issues on GCC 9
29 +
30 +---
31 + platform/default/bidi.cpp | 1 +
32 + src/mbgl/util/convert.cpp | 2 ++
33 + 2 files changed, 3 insertions(+)
34 +
35 +diff --git a/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp b/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
36 +index d475c387b..c1710a6f1 100644
37 +--- a/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
38 ++++ b/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp
39 +@@ -5,6 +5,7 @@
40 + #include <unicode/ushape.h>
41 +
42 + #include <memory>
43 ++#include <stdexcept>
44 +
45 + namespace mbgl {
46 +
47 +diff --git a/src/3rdparty/mapbox-gl-native/src/mbgl/util/convert.cpp b/src/3rdparty/mapbox-gl-native/src/mbgl/util/convert.cpp
48 +index 97bfe9108..510ff2386 100644
49 +--- a/src/3rdparty/mapbox-gl-native/src/mbgl/util/convert.cpp
50 ++++ b/src/3rdparty/mapbox-gl-native/src/mbgl/util/convert.cpp
51 +@@ -1,5 +1,7 @@
52 + #include <mbgl/util/convert.hpp>
53 +
54 ++#include <cstdint>
55 ++
56 + namespace mbgl {
57 + namespace util {
58 +
59 +--
60 +cgit v1.2.1
61
62 diff --git a/dev-qt/qtlocation/qtlocation-5.14.2.ebuild b/dev-qt/qtlocation/qtlocation-5.14.2.ebuild
63 index d7e1e290a78..33f50e77187 100644
64 --- a/dev-qt/qtlocation/qtlocation-5.14.2.ebuild
65 +++ b/dev-qt/qtlocation/qtlocation-5.14.2.ebuild
66 @@ -37,6 +37,8 @@ QT5_TARGET_SUBDIRS=(
67 src/plugins/geoservices
68 )
69
70 +PATCHES=( "${FILESDIR}/${P}-gcc-10.patch" ) # bug 722102
71 +
72 src_configure() {
73 # src/plugins/geoservices requires files that are only generated when
74 # qmake is run in the root directory. Bug 633776.