Package: foxtrotgps Version: 1.2.2+bzr324-1 Severity: important Tags: patch
Hi, there is an API change coming with the next gpsd version (which I'd like to get into bullseye...). The attached patch should be all thats needed. Thanks, Bernd -- Bernd Zeimetz Debian GNU/Linux Developer http://bzed.de http://www.debian.org GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
--- src/gps_functions.c.orig 2021-01-04 18:24:55.810095970 +0100 +++ src/gps_functions.c 2021-01-04 18:24:57.738086752 +0100 @@ -762,7 +762,11 @@ { gpsdata->fix.time = (time_t) 0; } +#if GPSD_API_MAJOR_VERSION >= 10 + gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX); +#else gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX); +#endif if (gpsdata->valid) { gpsdata->seen_valid = TRUE;