diff -Nru foxtrotgps-1.2.1/debian/changelog foxtrotgps-1.2.1/debian/changelog --- foxtrotgps-1.2.1/debian/changelog 2018-04-10 04:39:03.000000000 +0200 +++ foxtrotgps-1.2.1/debian/changelog 2019-04-07 11:46:13.000000000 +0200 @@ -1,3 +1,9 @@ +foxtrotgps (1.2.1-2) UNRELEASED; urgency=medium + + * fix libgps API change (Closes #926575) + + -- Christian Ehrhardt Sun, 07 Apr 2019 11:46:13 +0200 + foxtrotgps (1.2.1-1) unstable; urgency=medium * New upstream release diff -Nru foxtrotgps-1.2.1/debian/patches/316_315.diff foxtrotgps-1.2.1/debian/patches/316_315.diff --- foxtrotgps-1.2.1/debian/patches/316_315.diff 1970-01-01 01:00:00.000000000 +0100 +++ foxtrotgps-1.2.1/debian/patches/316_315.diff 2019-04-07 11:45:16.000000000 +0200 @@ -0,0 +1,24 @@ +Update the interface to gps_read() for gpsd API version 7 +This change is available in gpsd version 3.18 and later. +Kept deprecated code for users of older versions by using a version check. +See-also: http://catb.org/gpsd/libgps.html + +Origin: upstream, https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/316 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926575 +Last-Update: 2019-04-07 + +--- a/src/gps_functions.c 2019-02-26 00:59:58 +0000 ++++ b/src/gps_functions.c 2019-02-27 01:45:28 +0000 +@@ -738,7 +738,11 @@ + if (!libgps_initialized) + return FALSE; + ++#if GPSD_API_MAJOR_VERSION >= 7 /* API change. gpsd version 3.18 and subsequent. */ ++ ret = gps_read(&libgps_gpsdata, NULL, 0); ++#else + ret = gps_read(&libgps_gpsdata); ++#endif + /* Note that gps_read() will never actually return 0 + (zero-length reads are converted internally to a -1 return, + since they mean that the connection to the daemon has closed), + diff -Nru foxtrotgps-1.2.1/debian/patches/series foxtrotgps-1.2.1/debian/patches/series --- foxtrotgps-1.2.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ foxtrotgps-1.2.1/debian/patches/series 2019-04-07 11:37:32.000000000 +0200 @@ -0,0 +1 @@ +316_315.diff