1 |
commit: 9a4b8baa6cad9a48f162dfb82fe01baa66c20718 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 27 18:38:03 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 18:39:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4b8baa |
7 |
|
8 |
kde-apps/marble: Fix build w/ IUSE=gps and >=sci-libs/gpsd-3.21 |
9 |
|
10 |
Upstream commit 7039b70f0255376e5d67dad603f5d67f8c3c07db |
11 |
|
12 |
Thanks-to: <mario.haustein <AT> hrz.tu-chemnitz.de> |
13 |
Closes: https://bugs.gentoo.org/744823 |
14 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
.../marble/files/marble-20.04.3-gpsd-3.21.patch | 29 ++++++++++++++++++++++ |
18 |
kde-apps/marble/marble-20.04.3.ebuild | 2 ++ |
19 |
2 files changed, 31 insertions(+) |
20 |
|
21 |
diff --git a/kde-apps/marble/files/marble-20.04.3-gpsd-3.21.patch b/kde-apps/marble/files/marble-20.04.3-gpsd-3.21.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..acde5d8b661 |
24 |
--- /dev/null |
25 |
+++ b/kde-apps/marble/files/marble-20.04.3-gpsd-3.21.patch |
26 |
@@ -0,0 +1,29 @@ |
27 |
+From 7039b70f0255376e5d67dad603f5d67f8c3c07db Mon Sep 17 00:00:00 2001 |
28 |
+From: Antonio Rojas <arojas@×××××××××.org> |
29 |
+Date: Wed, 5 Aug 2020 14:20:37 +0200 |
30 |
+Subject: [PATCH] Fix build with gpsd 3.21 |
31 |
+ |
32 |
+Adapt to API changes |
33 |
+--- |
34 |
+ .../positionprovider/gpsd/GpsdPositionProviderPlugin.cpp | 4 ++++ |
35 |
+ 1 file changed, 4 insertions(+) |
36 |
+ |
37 |
+diff --git a/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp b/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp |
38 |
+index 3a787eb1f..02dc4a355 100644 |
39 |
+--- a/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp |
40 |
++++ b/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp |
41 |
+@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update( gps_data_t data ) |
42 |
+ { |
43 |
+ PositionProviderStatus oldStatus = m_status; |
44 |
+ GeoDataCoordinates oldPosition = m_position; |
45 |
++#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 10 ) |
46 |
++ if ( data.fix.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) ) |
47 |
++#else |
48 |
+ if ( data.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) ) |
49 |
++#endif |
50 |
+ m_status = PositionProviderStatusAcquiring; |
51 |
+ else { |
52 |
+ m_status = PositionProviderStatusAvailable; |
53 |
+-- |
54 |
+GitLab |
55 |
+ |
56 |
|
57 |
diff --git a/kde-apps/marble/marble-20.04.3.ebuild b/kde-apps/marble/marble-20.04.3.ebuild |
58 |
index f6ee6bf963a..72acb503e88 100644 |
59 |
--- a/kde-apps/marble/marble-20.04.3.ebuild |
60 |
+++ b/kde-apps/marble/marble-20.04.3.ebuild |
61 |
@@ -64,6 +64,8 @@ RDEPEND="${DEPEND}" |
62 |
# bug 588320 |
63 |
RESTRICT+=" test" |
64 |
|
65 |
+PATCHES=( "${FILESDIR}/${P}-gpsd-3.21.patch" ) # bug 744823 |
66 |
+ |
67 |
src_prepare() { |
68 |
ecm_src_prepare |