summaryrefslogtreecommitdiff
path: root/ham/gnuradio-core
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2018-07-10 07:05:06 +0000
committerdbj <dbj@pkgsrc.org>2018-07-10 07:05:06 +0000
commitbcb2db48cdf4b76816d9d1c9262e42caa4a35c07 (patch)
treed8e64136ed67ac8829833590e715fdb220414659 /ham/gnuradio-core
parentb52066b5bddafd0a5eaa542da2c09786df179e1c (diff)
downloadpkgsrc-bcb2db48cdf4b76816d9d1c9262e42caa4a35c07.tar.gz
ham/gnuradio-core: fix compiling with boost 1.67
patch from upstream https://github.com/gnuradio/gnuradio.git commit 86fa85feef81e69dd1354b393118459340b94489
Diffstat (limited to 'ham/gnuradio-core')
-rw-r--r--ham/gnuradio-core/distinfo5
-rw-r--r--ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc17
-rw-r--r--ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc17
-rw-r--r--ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc26
4 files changed, 64 insertions, 1 deletions
diff --git a/ham/gnuradio-core/distinfo b/ham/gnuradio-core/distinfo
index ee8003ec77f..fec90d70959 100644
--- a/ham/gnuradio-core/distinfo
+++ b/ham/gnuradio-core/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2017/03/15 14:07:12 mef Exp $
+$NetBSD: distinfo,v 1.28 2018/07/10 07:05:06 dbj Exp $
SHA1 (gnuradio-3.7.11.tar.gz) = 574df5079b02cfcd80f03930d90a20b2fa9cfcb8
RMD160 (gnuradio-3.7.11.tar.gz) = 72207c6c048f256cbd93a679c09345a5ca45f307
@@ -9,3 +9,6 @@ SHA1 (patch-gnuradio_runtime_include_gnuradio_high__res__timer__h) = 59ad8192e7a
SHA1 (patch-gnuradio_runtime_lib_thread_thread_cc) = c05628aa88ac968928f9eabd8c56d4527e258767
SHA1 (patch-gr-audio_lib_CMakeLists.txt) = 00ff8c14658acd2d1dc8be18ea6a19ace8d12968
SHA1 (patch-gr-audio_lib_alsa_alsa__impl_h) = d61dcd31058c04a6050479a6e8c321ca15420d49
+SHA1 (patch-gr-blocks_lib_message__strobe__impl.cc) = 22e9a876660d8582c091ee27b4e46df562168aed
+SHA1 (patch-gr-blocks_lib_message__strobe__random__impl.cc) = a87d3e8b4243bcb5040961608bbc2644c43b9e76
+SHA1 (patch-gr-uhd_lib_usrp__block__impl.cc) = 7b8344474f94598c621dea6349d9f3224cddbae7
diff --git a/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc
new file mode 100644
index 00000000000..8a6ddb98517
--- /dev/null
+++ b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc
@@ -0,0 +1,17 @@
+$NetBSD: patch-gr-blocks_lib_message__strobe__impl.cc,v 1.1 2018/07/10 07:05:06 dbj Exp $
+
+Fix compiling with Boost 1.67
+patch from upstream https://github.com/gnuradio/gnuradio.git
+commit 86fa85feef81e69dd1354b393118459340b94489
+
+--- gr-blocks/lib/message_strobe_impl.cc.orig 2017-02-27 23:19:00.000000000 +0000
++++ gr-blocks/lib/message_strobe_impl.cc
+@@ -90,7 +90,7 @@ namespace gr {
+ void message_strobe_impl::run()
+ {
+ while(!d_finished) {
+- boost::this_thread::sleep(boost::posix_time::milliseconds(d_period_ms));
++ boost::this_thread::sleep(boost::posix_time::milliseconds(static_cast<long>(d_period_ms)));
+ if(d_finished) {
+ return;
+ }
diff --git a/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc
new file mode 100644
index 00000000000..3d2b2077ff0
--- /dev/null
+++ b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc
@@ -0,0 +1,17 @@
+$NetBSD: patch-gr-blocks_lib_message__strobe__random__impl.cc,v 1.1 2018/07/10 07:05:06 dbj Exp $
+
+Fix compiling with Boost 1.67
+patch from upstream https://github.com/gnuradio/gnuradio.git
+commit 86fa85feef81e69dd1354b393118459340b94489
+
+--- gr-blocks/lib/message_strobe_random_impl.cc.orig 2017-02-27 23:19:00.000000000 +0000
++++ gr-blocks/lib/message_strobe_random_impl.cc
+@@ -108,7 +108,7 @@ namespace gr {
+ void message_strobe_random_impl::run()
+ {
+ while(!d_finished) {
+- boost::this_thread::sleep(boost::posix_time::milliseconds(std::max(0.0f,next_delay())));
++ boost::this_thread::sleep(boost::posix_time::milliseconds(static_cast<long>(std::max(0.0f,next_delay()))));
+ if(d_finished) {
+ return;
+ }
diff --git a/ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc b/ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc
new file mode 100644
index 00000000000..159e978efbf
--- /dev/null
+++ b/ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc
@@ -0,0 +1,26 @@
+$NetBSD: patch-gr-uhd_lib_usrp__block__impl.cc,v 1.1 2018/07/10 07:05:06 dbj Exp $
+
+Fix compiling with Boost 1.67
+patch from upstream https://github.com/gnuradio/gnuradio.git
+commit 86fa85feef81e69dd1354b393118459340b94489
+
+--- gr-uhd/lib/usrp_block_impl.cc.orig 2017-02-27 23:19:00.000000000 +0000
++++ gr-uhd/lib/usrp_block_impl.cc
+@@ -128,7 +128,7 @@ bool usrp_block_impl::_wait_for_locked_s
+
+ while (true) {
+ if ((not first_lock_time.is_not_a_date_time()) and
+- (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(LOCK_TIMEOUT)))) {
++ (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(static_cast<long>(LOCK_TIMEOUT))))) {
+ break;
+ }
+
+@@ -139,7 +139,7 @@ bool usrp_block_impl::_wait_for_locked_s
+ else {
+ first_lock_time = boost::system_time(); //reset to 'not a date time'
+
+- if (boost::get_system_time() > (start + boost::posix_time::seconds(LOCK_TIMEOUT))){
++ if (boost::get_system_time() > (start + boost::posix_time::seconds(static_cast<long>(LOCK_TIMEOUT)))){
+ return false;
+ }
+ }