Subject: [alpine-devel] [PATCH] main/gpsd PPS may fail if baudrate is not set with stty before startup Reference: http://catb.org/gpsd/upstream-bugs.html#tiocmwait

From: Nathan Angelacos <[email-masked]>
Date: Sun, 4 Nov 2012 03:20:10 +0000

---
 main/gpsd/APKBUILD   | 2 +-
 main/gpsd/gpsd.confd | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/main/gpsd/APKBUILD b/main/gpsd/APKBUILD
index c79c330..5ae1ed5 100644
--- a/main/gpsd/APKBUILD
+++ b/main/gpsd/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Nathan Angelacos <[email-masked]>
 pkgname=gpsd
 pkgver=3.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A GPS daemon"
 arch=all
 url="http://catb.org/gpsd/"
diff --git a/main/gpsd/gpsd.confd b/main/gpsd/gpsd.confd
index 27bb332..e64657f 100644
--- a/main/gpsd/gpsd.confd
+++ b/main/gpsd/gpsd.confd
@@ -3,6 +3,7 @@
 # The GPS device (/dev/ttyUSB0, /dev/ttyS0, ...)
  
 DEVICE=""
+BAUDRATE="4800"
 
 # Optional arguments
 #  Options include:
@@ -19,8 +20,10 @@ ARGS="-n "
 # Serial setup
 #
 # For serial interfaces, options such as low_latency are recommended
-# Uncomment the following line to set the /dev/ttySxx device options, if 
-# desired:
-
+# Also, http://catb.org/gpsd/upstream-bugs.html#tiocmwait recommends 
+#   setting the baudrate with stty
+# Uncomment the following lines if using a serial device:
+#
+# /bin/stty -F ${DEVICE} ${BAUDRATE}
 # /bin/setserial ${DEVICE} low_latency
 
-- 
1.7.12.3

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---