summaryrefslogtreecommitdiff
path: root/geography/gpsbabel/patches/patch-af
diff options
context:
space:
mode:
authorgdt <gdt>2015-06-06 12:57:58 +0000
committergdt <gdt>2015-06-06 12:57:58 +0000
commit681de4fb4c352356316bfa8ca15fe8d47e3e5d20 (patch)
treeea18eb88c7b2a1f452bc24384a1d4a69c33eb2ce /geography/gpsbabel/patches/patch-af
parentc972c7badfe9b1921eaa302e2ee5f74c35685aeb (diff)
downloadpkgsrc-681de4fb4c352356316bfa8ca15fe8d47e3e5d20.tar.gz
Update to 1.5.2.
pkgsrc changes: add bash exorcism for testo upstream changes: Depend on QT, and much rewriting Summary of upstream changes: 1.5.2 Add read support for Google's "gx:track" extension to KML. Ralf Horstmann adds Mynav Map Manager and VDO GP7. White B. Coot adds F90G support. Zingo Andersonadds Energympro sport watches. Support altitude in mainnav. 1.5.1 Add options to discard filter to discard points based on regular expressions. Experimental support for for faster Garmin serial download speeds. 1.5.0 GPSBabel 1.4.x has had a good run. That series has been downloaded over a million times and is widely used by thousands of people a day. But, like many projects entering their teens (I started the code that became GPSBabel in 2001) we've accumulated our share of technical debt and the world around us has changed. GPSBabel 1.5 is about revisiting some of those early, fundamental (and, sometimes, dumb) decisions and rebuilding much of it from the foundation up. We've collected hundreds of changes spanning about a hundred thousand lines of code and we're presenting GPSBabel 1.5. Of course, if you're an existing user, you're looking for new formats and fixes. We happen to have those. Freshly added: Mapbar Garmin G1000 Google Direction API MTK Locus Lowrance USR v4 GlobalSat DG-200 Humminbird v4 We have fixes: GUI now lists help button on main screen and options pages. TODO: list more. By far, our deepest cutting changes are in our infrastructure. We changed the implementation language from C89 to C++03. This lets our developers use modern, object-oriented programming and modern libraries. We moved to the open source Qt toolkit. We've successfully used Qt in the GUI for over five years. This lets us focus on GPSBabel itself and not implementi ng our own OS abstractions from scratch, robust string and time handling, and much more. We replaced time from our old representation that used the number of seconds since 1/1/1970 and had a fractional seconds component bolted onto the side (that was only sometimes used) with a QDateTime which allows us to represent time within millisecond resolution from Jan 2, 4713 BCE to sometimes in the year 11 million. While that sounds crazy (it is!) this lets things like the track filter not mangle data collected by your 10Hz GPS and your placemarks can have dates that, say, buildings were built or cities were founded without worrying about Jan 1, 1970. We replaced all of our XML (GPX, KML, Geo, etc) readers with Qt readers. This reduces the number of data-specific bugs you're likely to encounter. No longer will a waypoint named "]]" (it happens!) crash your data. We're much more robust when reading extended namespaces. We replaced our own XML writers with Qt's XML serializers. This solves a whole class of data-specific issues with specific fields containing data like "<" or "[[<CDATA" (it happens!) or international characters or such. Reference counted, dynamic strings are now used in the majority of our key data structures, eliminating leaks and allowing multiple copies of the same data to share a copy in memory, lessening the amount of memory we use. A lot of emphasis as been placed on sound engineering. GPSBabel now has automated tests covering hundreds of thousands of operations to check against memory leaks, overwrites, unused code, uninitialized data use and so on. We believe this to be our highest quality release ever. As a result of all this remodelling, some of our formats that our statistics showed were infrequently used and that had little to no support traffic in many years were removed. Most of these were formats for Palm OS, were never mentioned after they were initially added, or are for companies that have been out of business for years or that have moved to better formats, like GPX. These include: Deprecated formats - Palm/OS cetus copilot coto gcdb geoniche gpilots gpspilot mag_pdb magnav palmdoc pathaway quovadis Others axim_gpb coastexp hsandv ktf2 kwf2 msroute msroute1 psp sportsim
Diffstat (limited to 'geography/gpsbabel/patches/patch-af')
-rw-r--r--geography/gpsbabel/patches/patch-af10
1 files changed, 5 insertions, 5 deletions
diff --git a/geography/gpsbabel/patches/patch-af b/geography/gpsbabel/patches/patch-af
index 16e10cd9294..3c8d5d6b1b7 100644
--- a/geography/gpsbabel/patches/patch-af
+++ b/geography/gpsbabel/patches/patch-af
@@ -1,12 +1,12 @@
-$NetBSD: patch-af,v 1.4 2013/03/16 18:52:58 gdt Exp $
+$NetBSD: patch-af,v 1.5 2015/06/06 12:57:58 gdt Exp $
From Giles Lean, who places it in the public domain. Workarounds for
problems with buggy USB serial adapators. Not applied by upstream
2009-02-21 because it's too dangerous to work around problems without
understanding them.
---- jeeps/gpsread.c.orig 2011-07-26 01:56:33.000000000 +0000
-+++ jeeps/gpsread.c
+--- jeeps/gpsread.cc.orig 2014-02-13 00:12:48.000000000 +0000
++++ jeeps/gpsread.cc
@@ -98,6 +98,36 @@ int32 GPS_Serial_Packet_Read(gpsdevh* fd
GPS_Diag("%02x ", u);
@@ -50,12 +50,12 @@ understanding them.
+dle_missed:
if (len==1) {
- (*packet)->type = u;
+ (*packet).type = u;
++len;
@@ -130,6 +161,20 @@ int32 GPS_Serial_Packet_Read(gpsdevh* fd
if (u == ETX)
if (isDLE) {
- if (p-(*packet)->data-2 != (*packet)->n) {
+ if (p-(*packet).data-2 != (*packet).n) {
+ /*
+ * When used with a buggy Prolific USB-serial converter the
+ * calling sequence GPS_A000() -> GPS_Get_Ack() sometimes