mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sci-geosciences/foxtrotgps: fix patch for newer gpsd (again)
I don't think the API define got bumped in 3.23.1? Closes: https://bugs.gentoo.org/818268 Closes: https://bugs.gentoo.org/739568 Closes: https://bugs.gentoo.org/806986 Closes: https://bugs.gentoo.org/808883 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -29,7 +29,7 @@ index 602b06e..0baea81 100644
|
||||
}
|
||||
-#if GPSD_API_MAJOR_VERSION >= 9
|
||||
- gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX);
|
||||
+#if GPSD_API_MAJOR_VERSION >= 12
|
||||
+#if GPSD_API_MAJOR_VERSION >= 12 && defined(STATUS_UNK)
|
||||
+ gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_UNK || libgps_gpsdata.fix.mode >= MODE_2D);
|
||||
+#elif GPSD_API_MAJOR_VERSION >= 10
|
||||
+ gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX || libgps_gpsdata.fix.mode >= MODE_2D);
|
||||
|
||||
@@ -30,5 +30,5 @@ BDEPEND="
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gpsd-api9.patch"
|
||||
"${FILESDIR}/${P}-gcc10.patch"
|
||||
#"${FILESDIR}/${P}-fix-some-receivers.patch"
|
||||
"${FILESDIR}/${P}-fix-some-receivers.patch"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user