Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 666062 Details for
Bug 739568
sci-geosciences/foxtrotgps-1.2.2: version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch which adapts foxtrotgps to gpsd API version 9
gpsd-api-fix.patch (text/plain), 1.31 KB, created by
Alexander Bezrukov
on 2020-10-16 17:19:12 UTC
(
hide
)
Description:
patch which adapts foxtrotgps to gpsd API version 9
Filename:
MIME Type:
Creator:
Alexander Bezrukov
Created:
2020-10-16 17:19:12 UTC
Size:
1.31 KB
patch
obsolete
>diff -ur a/work/foxtrotgps-1.2.2/src/gps_functions.c b/work/foxtrotgps-1.2.2/src/gps_functions.c >--- a/work/foxtrotgps-1.2.2/src/gps_functions.c 2019-07-10 08:35:12.000000000 +0300 >+++ b/work/foxtrotgps-1.2.2/src/gps_functions.c 2020-10-16 20:12:39.998949093 +0300 >@@ -753,12 +753,20 @@ > { > gpsdata->satellites_used = libgps_gpsdata.satellites_used; > gpsdata->hdop = libgps_gpsdata.dop.hdop; >+#if GPSD_API_MAJOR_VERSION >= 9 /* API change. gpsd version 3.20 and subsequent. */ >+ gpsdata->fix.time = libgps_gpsdata.fix.time.tv_sec + (libgps_gpsdata.fix.time.tv_nsec*1e-9); >+#else > gpsdata->fix.time = libgps_gpsdata.fix.time; >+#endif > if (isnan(gpsdata->fix.time)) > { > gpsdata->fix.time = (time_t) 0; > } >+#if GPSD_API_MAJOR_VERSION >= 9 >+ 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; >@@ -767,7 +775,11 @@ > gpsdata->fix.longitude = libgps_gpsdata.fix.longitude; > gpsdata->fix.speed = libgps_gpsdata.fix.speed; > gpsdata->fix.heading = libgps_gpsdata.fix.track; >+#if GPSD_API_MAJOR_VERSION >= 9 >+ gpsdata->fix.altitude = libgps_gpsdata.fix.altMSL; >+#else > gpsdata->fix.altitude = libgps_gpsdata.fix.altitude; >+#endif > } > > g_source_remove(watchdog); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 739568
:
666053
|
666056
| 666062