diff -Nru foxtrotgps-1.2.2+bzr324/debian/changelog foxtrotgps-1.2.2+bzr324/debian/changelog --- foxtrotgps-1.2.2+bzr324/debian/changelog 2020-08-05 15:32:54.000000000 +0000 +++ foxtrotgps-1.2.2+bzr324/debian/changelog 2021-01-09 13:17:29.000000000 +0000 @@ -1,3 +1,9 @@ +foxtrotgps (1.2.2+bzr324-1+rpi1) bullseye-staging; urgency=medium + + * Apply patch from bts to support build with gpsd 10 (Closes: 977282) + + -- Peter Michael Green Sat, 09 Jan 2021 13:17:29 +0000 + foxtrotgps (1.2.2+bzr324-1) unstable; urgency=medium [ Paul Wise ] diff -Nru foxtrotgps-1.2.2+bzr324/debian/patches/gpsd-10.patch foxtrotgps-1.2.2+bzr324/debian/patches/gpsd-10.patch --- foxtrotgps-1.2.2+bzr324/debian/patches/gpsd-10.patch 1970-01-01 00:00:00.000000000 +0000 +++ foxtrotgps-1.2.2+bzr324/debian/patches/gpsd-10.patch 2021-01-09 13:17:15.000000000 +0000 @@ -0,0 +1,18 @@ +Patch by Bernd Zeimetz +Taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977282 +Paths modified by Peter Michael Green to suit quilt. + +--- a/src/gps_functions.c.orig 2021-01-04 18:24:55.810095970 +0100 ++++ b/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; diff -Nru foxtrotgps-1.2.2+bzr324/debian/patches/series foxtrotgps-1.2.2+bzr324/debian/patches/series --- foxtrotgps-1.2.2+bzr324/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ foxtrotgps-1.2.2+bzr324/debian/patches/series 2021-01-09 13:15:42.000000000 +0000 @@ -0,0 +1 @@ +gpsd-10.patch