From 7c59acba5699c9c58090a7a738669669a7307023 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 21 Aug 2021 23:14:26 +0100 Subject: gentoo resync : 21.08.2021 --- .../foxtrotgps-1.2.2-fix-some-receivers.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch (limited to 'sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch') diff --git a/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch new file mode 100644 index 000000000000..23930212f31f --- /dev/null +++ b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch @@ -0,0 +1,33 @@ +From ea27c684924b8d8a560ca6fe1f25443624d54a93 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Wed, 18 Aug 2021 20:18:03 +0100 +Subject: [PATCH] Fix some GPS receivers + +Rebased version of upstream patch: +https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/329 + +Conservatively added an extra API version check for gpsd. + +Bug: https://bugs.gentoo.org/808883 +--- + src/gps_functions.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/gps_functions.c b/src/gps_functions.c +index 602b06e..4f30cbb 100644 +--- a/src/gps_functions.c ++++ b/src/gps_functions.c +@@ -762,7 +762,9 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data) + { + gpsdata->fix.time = (time_t) 0; + } +-#if GPSD_API_MAJOR_VERSION >= 9 ++#if GPSD_API_MAJOR_VERSION >= 10 ++ gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX || libgps_gpsdata.fix.mode >= MODE_2D); ++#elif GPSD_API_MAJOR_VERSION >= 9 + gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX); + #else + gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX); +-- +2.33.0 + -- cgit v1.2.3