* [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/foxtrotgps/, sci-geosciences/foxtrotgps/files/
@ 2021-10-17 3:59 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-10-17 3:59 UTC (permalink / raw
To: gentoo-commits
commit: 1caddd2c85b8c9d6c90d414170dec987000e34a7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 17 03:59:34 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 17 03:59:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1caddd2c
sci-geosciences/foxtrotgps: fix build with newer gpsd
Closes: https://bugs.gentoo.org/739568
Closes: https://bugs.gentoo.org/806986
Closes: https://bugs.gentoo.org/808883
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../foxtrotgps-1.2.2-fix-some-receivers.patch | 29 ++++++++++++++--------
.../foxtrotgps/foxtrotgps-1.2.2-r1.ebuild | 2 +-
2 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
index 23930212f31..c84ea65b77e 100644
--- a/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
+++ b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
@@ -1,33 +1,40 @@
-From ea27c684924b8d8a560ca6fe1f25443624d54a93 Mon Sep 17 00:00:00 2001
+https://bugs.gentoo.org/739568
+https://bugs.gentoo.org/806986
+https://bugs.gentoo.org/808883
+
+From 86989085a3010cb83a094a788cd83a4654c9eb3c Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Wed, 18 Aug 2021 20:18:03 +0100
-Subject: [PATCH] Fix some GPS receivers
+Subject: [PATCH] Fix some GPS receivers (and fix build with newer gpsd API 12)
Rebased version of upstream patch:
https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/329
-Conservatively added an extra API version check for gpsd.
+See https://github.com/ntpsec/gpsd/commit/d4a4d8d3606fd50f10bcd20096a8a0cdb8b2d427
+re API change.
Bug: https://bugs.gentoo.org/808883
---
- src/gps_functions.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
+ src/gps_functions.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gps_functions.c b/src/gps_functions.c
-index 602b06e..4f30cbb 100644
+index 602b06e..0baea81 100644
--- a/src/gps_functions.c
+++ b/src/gps_functions.c
-@@ -762,7 +762,9 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data)
+@@ -762,8 +762,10 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data)
{
gpsdata->fix.time = (time_t) 0;
}
-#if GPSD_API_MAJOR_VERSION >= 9
-+#if GPSD_API_MAJOR_VERSION >= 10
+- gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX);
++#if GPSD_API_MAJOR_VERSION >= 12
++ 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);
-+#elif GPSD_API_MAJOR_VERSION >= 9
- gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX);
#else
gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX);
+ #endif
--
-2.33.0
+2.33.1
diff --git a/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
index cc36b1da8d8..9810966d440 100644
--- a/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
+++ b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
@@ -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"
)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/foxtrotgps/, sci-geosciences/foxtrotgps/files/
@ 2021-10-17 4:26 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-10-17 4:26 UTC (permalink / raw
To: gentoo-commits
commit: e93640d6db2ef27849988cd5258eb4f3b1e8a67e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 17 04:25:34 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 17 04:25:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93640d6
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 <AT> gentoo.org>
.../foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch | 2 +-
sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
index 84dffb11efc..76d0c2d04a6 100644
--- a/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
+++ b/sci-geosciences/foxtrotgps/files/foxtrotgps-1.2.2-fix-some-receivers.patch
@@ -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);
diff --git a/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
index 9810966d440..cc36b1da8d8 100644
--- a/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
+++ b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.2-r1.ebuild
@@ -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"
)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-17 4:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-17 3:59 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/foxtrotgps/, sci-geosciences/foxtrotgps/files/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2021-10-17 4:26 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox