[arch-commits] Commit in foxtrotgps/trunk (PKGBUILD foxtrotgps-gpsd-3.18.patch)

Antonio Rojas arojas at archlinux.org
Tue Oct 9 17:17:56 UTC 2018


    Date: Tuesday, October 9, 2018 @ 17:17:56
  Author: arojas
Revision: 391658

gpsd 3.18 rebuild

Added:
  foxtrotgps/trunk/foxtrotgps-gpsd-3.18.patch
Modified:
  foxtrotgps/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   13 ++++++++++---
 foxtrotgps-gpsd-3.18.patch |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-09 17:17:48 UTC (rev 391657)
+++ PKGBUILD	2018-10-09 17:17:56 UTC (rev 391658)
@@ -3,7 +3,7 @@
 
 pkgname=foxtrotgps
 pkgver=1.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Lightweight and fast mapping application"
 arch=('x86_64')
 url="https://www.foxtrotgps.org/"
@@ -16,11 +16,18 @@
             'python-beautifulsoup4: georss2foxtrotgps-poi tool'
             'python-feedparser: georss2foxtrotgps-poi tool'
             'python-sqlalchemy: poi2osm tool')
-source=(https://www.foxtrotgps.org/releases/$pkgname-$pkgver.tar.gz{,.asc})
+source=(https://www.foxtrotgps.org/releases/$pkgname-$pkgver.tar.gz{,.asc}
+        foxtrotgps-gpsd-3.18.patch)
 validpgpkeys=('F0378BFD8385C9968DCBC56CFF7E9E83954BE38A') # Joshua Judson Rosen
 sha256sums=('3ffbe60dd09890e3228bc71a0337b27e69e26e52225c47bd75968b580b19f489'
-            'SKIP')
+            'SKIP'
+            '4a517255e6fa9eade1c0abddf4eab2e803f1b31ce848472d9bbfb69d6ab97aca')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../foxtrotgps-gpsd-3.18.patch # Fix build with gpsd 3.18
+}
+
 build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \

Added: foxtrotgps-gpsd-3.18.patch
===================================================================
--- foxtrotgps-gpsd-3.18.patch	                        (rev 0)
+++ foxtrotgps-gpsd-3.18.patch	2018-10-09 17:17:56 UTC (rev 391658)
@@ -0,0 +1,11 @@
+--- foxtrotgps-1.2.1/src/gps_functions.c.orig	2018-10-09 17:00:10.297646701 +0000
++++ foxtrotgps-1.2.1/src/gps_functions.c	2018-10-09 17:00:43.751114273 +0000
+@@ -738,7 +738,7 @@
+ 	if (!libgps_initialized)
+ 		return FALSE;
+ 
+-	ret = gps_read(&libgps_gpsdata);
++	ret = gps_read(&libgps_gpsdata, NULL, 0);
+ 	/* 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),



More information about the arch-commits mailing list