<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1b5e6a3fc50a6b55b7d4cd5fc8556c0c1244381c">https://github.com/macports/macports-ports/commit/1b5e6a3fc50a6b55b7d4cd5fc8556c0c1244381c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 1b5e6a3 uhd*: add patch to fix update "gps_read" API from recent gpsd update
</span>1b5e6a3 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1b5e6a3fc50a6b55b7d4cd5fc8556c0c1244381c
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Tue Nov 27 14:50:08 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> uhd*: add patch to fix update "gps_read" API from recent gpsd update
</span>---
science/uhd/Portfile | 4 ++++
science/uhd/files/patch-fix-gpsd_read-api.diff | 13 +++++++++++++
2 files changed, 17 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/Portfile b/science/uhd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b608e71..3a9320d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/uhd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/uhd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -143,6 +143,10 @@ if {${subport} ne "uhd-39lts"} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary patch to fix the API usage for "gpsd_read" for the 3.18.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# release. currently works on all 3 UHD ports.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-gpsd_read-api.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append port:boost port:ncurses
depends_build-append port:pkgconfig
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/uhd/files/patch-fix-gpsd_read-api.diff b/science/uhd/files/patch-fix-gpsd_read-api.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..39c85c3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/uhd/files/patch-fix-gpsd_read-api.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index b34132f..b439a80 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/host/lib/usrp/gpsd_iface.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/host/lib/usrp/gpsd_iface.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -119,7 +119,7 @@ private: // member functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _timeout_cnt = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _detected = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (gps_read(&_gps_data) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (gps_read(&_gps_data, NULL, 0) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ throw std::runtime_error("error while reading");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>