<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/f6df8c785824b5fda242c55fab19c2b7c507e73f">https://github.com/macports/macports-ports/commit/f6df8c785824b5fda242c55fab19c2b7c507e73f</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 f6df8c7 bladeRF: fix breakage caused by 959bda7a, by creating a reverse patch of the commit in issue and reinstating the prior temporary patch that fixed the issue; addresses ticket https://trac.macports.org/ticket/53480 .
</span>f6df8c7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f6df8c785824b5fda242c55fab19c2b7c507e73f
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Sat Feb 4 09:17:39 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> bladeRF: fix breakage caused by 959bda7a, by creating a reverse patch of the commit in issue and reinstating the prior temporary patch that fixed the issue; addresses ticket https://trac.macports.org/ticket/53480 .
</span>---
science/bladeRF/Portfile | 7 ++++-
science/bladeRF/files/patch-clock_gettime.diff | 29 +++++++++++++++++++
science/bladeRF/files/patch-reverse_b6f62672.diff | 35 +++++++++++++++++++++++
3 files changed, 70 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/bladeRF/Portfile b/science/bladeRF/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3fd494c..6a12959 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/bladeRF/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/bladeRF/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,6 +19,12 @@ platforms darwin
</span> depends_build-append port:pkgconfig
depends_lib-append path:lib/libusb-1.0.dylib:libusb
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary patches to fix use of clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-reverse_b6f62672.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-clock_gettime.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # do VPATH (out of source tree) build
cmake.out_of_source yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,7 +40,6 @@ configure.ldflags-delete -L${prefix}/lib
</span> configure.args-append -DVERSION_INFO_OVERRIDE="MacPorts-${version}"
# do not treat compiler warnings as errors
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.args-append -DTREAT_WARNINGS_AS_ERRORS=OFF
# do not use 'pandoc' even if it is installed
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/bladeRF/files/patch-clock_gettime.diff b/science/bladeRF/files/patch-clock_gettime.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bb773a8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/bladeRF/files/patch-clock_gettime.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- host/CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ host/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -152,6 +152,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${CMAKE_CURRENT_LIST_DIR}/common/include/osx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # 'clock_gettime' and related are defined on OSX as of 10.12.0 (16.0.0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(${CMAKE_SYSTEM_VERSION} VERSION_LESS 16.0.0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_definitions(-D_OSX_NEED_CLOCK_GETTIME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(BLADERF_OS_WINDOWS 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- host/common/include/osx/clock_gettime.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ host/common/include/osx/clock_gettime.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -35,10 +35,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # error "This file is intended for use with OSX systems only."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef _OSX_NEED_CLOCK_GETTIME
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef int clockid_t;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CLOCK_REALTIME 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int clock_gettime(clockid_t clk_id, struct timespec *tp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif /* _OSX_NEED_CLOCK_GETTIME */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } /* extern "C" */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/bladeRF/files/patch-reverse_b6f62672.diff b/science/bladeRF/files/patch-reverse_b6f62672.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..47e746c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/bladeRF/files/patch-reverse_b6f62672.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- host/common/include/osx/clock_gettime.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ host/common/include/osx/clock_gettime.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,10 +27,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "AvailabilityMacros.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef __cplusplus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern "C" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -49,5 +45,3 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- host/common/src/osx/clock_gettime.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ host/common/src/osx/clock_gettime.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,7 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "AvailabilityMacros.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * clock_gettime() wrapper for OSX based upon jbenet's github "gist":
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * https://gist.github.com/jbenet/1087739
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -60,5 +56,3 @@ clock_gettime_out:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span></pre><pre style='margin:0'>
</pre>