pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/marble marble: fix build with gpsd >=3.21



details:   https://anonhg.NetBSD.org/pkgsrc/rev/13cee86d4213
branches:  trunk
changeset: 439651:13cee86d4213
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Sep 23 22:18:28 2020 +0000

description:
marble: fix build with gpsd >=3.21

diffstat:

 misc/marble/Makefile                                                                       |   4 +-
 misc/marble/distinfo                                                                       |   3 +-
 misc/marble/patches/patch-src_plugins_positionprovider_gpsd_GpsdPositionProviderPlugin.cpp |  18 ++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 90b31bc7e9a2 -r 13cee86d4213 misc/marble/Makefile
--- a/misc/marble/Makefile      Wed Sep 23 22:08:57 2020 +0000
+++ b/misc/marble/Makefile      Wed Sep 23 22:18:28 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.57 2020/08/31 18:10:21 wiz Exp $
+# $NetBSD: Makefile,v 1.58 2020/09/23 22:18:28 markd Exp $
 
 DISTNAME=      marble-${KAPPSVER}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    misc
 
 HOMEPAGE=      https://kde.org/applications/system/marble/
diff -r 90b31bc7e9a2 -r 13cee86d4213 misc/marble/distinfo
--- a/misc/marble/distinfo      Wed Sep 23 22:08:57 2020 +0000
+++ b/misc/marble/distinfo      Wed Sep 23 22:18:28 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2020/06/09 11:56:16 markd Exp $
+$NetBSD: distinfo,v 1.15 2020/09/23 22:18:28 markd Exp $
 
 SHA1 (marble-20.04.1.tar.xz) = 1501384faed46a7cec18e32991b6be3f5e7e3812
 RMD160 (marble-20.04.1.tar.xz) = 0a2a9b953edda0c97e32804b933b6c6dd2c87412
@@ -7,4 +7,5 @@
 SHA1 (patch-src_lib_astro_astrolib.cpp) = 541b39516af740b0ff8e485e9e4e8a339ca5d7f4
 SHA1 (patch-src_lib_astro_astrolib.h) = 4123af9f32a35400e05943598e7dceff84899928
 SHA1 (patch-src_lib_astro_solarsystem.cpp) = 1e00e5edf7ac5b38a1d4d29ccf4847470b6f4906
+SHA1 (patch-src_plugins_positionprovider_gpsd_GpsdPositionProviderPlugin.cpp) = 2ee8a2904e4a798400e47e605ab9cf1c61461df7
 SHA1 (patch-src_plugins_render_stars_StarsPlugin.cpp) = 06fdce98d53db7a74e972dcc39459016646246d0
diff -r 90b31bc7e9a2 -r 13cee86d4213 misc/marble/patches/patch-src_plugins_positionprovider_gpsd_GpsdPositionProviderPlugin.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/marble/patches/patch-src_plugins_positionprovider_gpsd_GpsdPositionProviderPlugin.cpp        Wed Sep 23 22:18:28 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_plugins_positionprovider_gpsd_GpsdPositionProviderPlugin.cpp,v 1.1 2020/09/23 22:18:28 markd Exp $
+
+Handle gpsd>=3.21
+
+--- src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp.orig      2020-05-11 07:18:57.000000000 +0000
++++ src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp
+@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update(
+ {
+     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;



Home | Main Index | Thread Index | Old Index