diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-27 20:38:03 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-27 20:39:48 +0200 |
commit | 9a4b8baa6cad9a48f162dfb82fe01baa66c20718 (patch) | |
tree | cd08da9a55c8537c5ff03f0fb863b1ec7effadd6 /kde-apps/marble/files | |
parent | net-im/zoom: Depend on dev-libs/quazip. (diff) | |
download | gentoo-9a4b8baa6cad9a48f162dfb82fe01baa66c20718.tar.gz gentoo-9a4b8baa6cad9a48f162dfb82fe01baa66c20718.tar.bz2 gentoo-9a4b8baa6cad9a48f162dfb82fe01baa66c20718.zip |
kde-apps/marble: Fix build w/ IUSE=gps and >=sci-libs/gpsd-3.21
Upstream commit 7039b70f0255376e5d67dad603f5d67f8c3c07db
Thanks-to: <mario.haustein@hrz.tu-chemnitz.de>
Closes: https://bugs.gentoo.org/744823
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/marble/files')
-rw-r--r-- | kde-apps/marble/files/marble-20.04.3-gpsd-3.21.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 new file mode 100644 index 000000000000..acde5d8b6610 --- /dev/null +++ b/kde-apps/marble/files/marble-20.04.3-gpsd-3.21.patch @@ -0,0 +1,29 @@ +From 7039b70f0255376e5d67dad603f5d67f8c3c07db Mon Sep 17 00:00:00 2001 +From: Antonio Rojas <arojas@archlinux.org> +Date: Wed, 5 Aug 2020 14:20:37 +0200 +Subject: [PATCH] Fix build with gpsd 3.21 + +Adapt to API changes +--- + .../positionprovider/gpsd/GpsdPositionProviderPlugin.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp b/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp +index 3a787eb1f..02dc4a355 100644 +--- a/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp ++++ b/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp +@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update( gps_data_t data ) + { + PositionProviderStatus oldStatus = m_status; + GeoDataCoordinates oldPosition = m_position; ++#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 10 ) ++ if ( data.fix.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) ) ++#else + if ( data.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) ) ++#endif + m_status = PositionProviderStatusAcquiring; + else { + m_status = PositionProviderStatusAvailable; +-- +GitLab + |