pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/ham/gnuradio-core ham/gnuradio-core: fix compiling wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f15bd96a18f3
branches:  trunk
changeset: 382680:f15bd96a18f3
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Tue Jul 10 07:05:06 2018 +0000

description:
ham/gnuradio-core: fix compiling with boost 1.67

patch from upstream https://github.com/gnuradio/gnuradio.git
commit 86fa85feef81e69dd1354b393118459340b94489

diffstat:

 ham/gnuradio-core/distinfo                                                     |   5 +-
 ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc         |  17 ++++++
 ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc |  17 ++++++
 ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc                |  26 ++++++++++
 4 files changed, 64 insertions(+), 1 deletions(-)

diffs (88 lines):

diff -r 185c68356734 -r f15bd96a18f3 ham/gnuradio-core/distinfo
--- a/ham/gnuradio-core/distinfo        Tue Jul 10 01:20:24 2018 +0000
+++ b/ham/gnuradio-core/distinfo        Tue Jul 10 07:05:06 2018 +0000
@@ -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_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 -r 185c68356734 -r f15bd96a18f3 ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__impl.cc    Tue Jul 10 07:05:06 2018 +0000
@@ -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 -r 185c68356734 -r f15bd96a18f3 ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/gnuradio-core/patches/patch-gr-blocks_lib_message__strobe__random__impl.cc    Tue Jul 10 07:05:06 2018 +0000
@@ -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 -r 185c68356734 -r f15bd96a18f3 ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/gnuradio-core/patches/patch-gr-uhd_lib_usrp__block__impl.cc   Tue Jul 10 07:05:06 2018 +0000
@@ -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;
+       }
+     }



Home | Main Index | Thread Index | Old Index