aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Alan <m@milesalan.com>2020-08-08 08:31:49 -0500
committerLeo <thinkabit.ukim@gmail.com>2020-08-08 17:21:28 +0000
commitf551e25133279539bc1ddab17873e7a7b9ff6fd5 (patch)
tree092ae4f096f658b7a1393ccdf11771fee6f6d8f5
parentff7816b4da47fcdd33423fe803c36740cbf78167 (diff)
downloadaports-f551e25133279539bc1ddab17873e7a7b9ff6fd5.tar.gz
aports-f551e25133279539bc1ddab17873e7a7b9ff6fd5.tar.bz2
aports-f551e25133279539bc1ddab17873e7a7b9ff6fd5.tar.xz
testing/foxtrotgps: add patch to build cleanly & move back to testing
-rw-r--r--testing/foxtrotgps/APKBUILD (renamed from unmaintained/foxtrotgps/APKBUILD)4
-rw-r--r--testing/foxtrotgps/fix-gpsfix.patch13
-rw-r--r--testing/foxtrotgps/fix-timespec.patch (renamed from unmaintained/foxtrotgps/fix-timespec.patch)0
3 files changed, 16 insertions, 1 deletions
diff --git a/unmaintained/foxtrotgps/APKBUILD b/testing/foxtrotgps/APKBUILD
index 23d175d087..108e299c0c 100644
--- a/unmaintained/foxtrotgps/APKBUILD
+++ b/testing/foxtrotgps/APKBUILD
@@ -14,6 +14,7 @@ subpackages="$pkgname-doc $pkgname-lang"
source="
https://www.foxtrotgps.org/releases/foxtrotgps-$pkgver.tar.gz
fix-timespec.patch
+ fix-gpsfix.patch
"
build() {
@@ -30,4 +31,5 @@ package() {
}
sha512sums="449fce966c1b59562c98bc01df2afcc20fad66bf5bdf8fe67fbef7cd12e5da82c4f36921fcdc8c8b6fae60b6056dfeb8a8efe8a0a61e12b600d6d03d08842a71 foxtrotgps-1.2.2.tar.gz
-2f555e0f5bcb80489a8f3d23d94a40ad67730d504f36ac2f0188c9fa71c7b5e76bceaa91b02f1c4a5bf0d67381d4794b552c5e7dd0703ccc0b39956f2e11a193 fix-timespec.patch"
+2f555e0f5bcb80489a8f3d23d94a40ad67730d504f36ac2f0188c9fa71c7b5e76bceaa91b02f1c4a5bf0d67381d4794b552c5e7dd0703ccc0b39956f2e11a193 fix-timespec.patch
+dcaae691e8459c001e80a3cbd9ab85cba86d1d8428c126d54814da21ec079664a650215787fddf2ae59a4e03f6675027f994a715dcced5032b54a1c653092d72 fix-gpsfix.patch"
diff --git a/testing/foxtrotgps/fix-gpsfix.patch b/testing/foxtrotgps/fix-gpsfix.patch
new file mode 100644
index 0000000000..763361caeb
--- /dev/null
+++ b/testing/foxtrotgps/fix-gpsfix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gps_functions.c b/src/gps_functions.c
+index 9943b6b..c3d087a 100644
+--- a/src/gps_functions.c
++++ b/src/gps_functions.c
+@@ -762,7 +762,7 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data)
+ {
+ gpsdata->fix.time = (time_t) 0;
+ }
+- gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX);
++ gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX);
+ if (gpsdata->valid)
+ {
+ gpsdata->seen_valid = TRUE;
diff --git a/unmaintained/foxtrotgps/fix-timespec.patch b/testing/foxtrotgps/fix-timespec.patch
index e73f14e16c..e73f14e16c 100644
--- a/unmaintained/foxtrotgps/fix-timespec.patch
+++ b/testing/foxtrotgps/fix-timespec.patch