pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/meta-pkgs/boost boost: Fix build on OS where dladdr() ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/750e580089f5
branches:  trunk
changeset: 368892:750e580089f5
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Sep 20 14:33:25 2017 +0000

description:
boost: Fix build on OS where dladdr() takes a void *.

diffstat:

 meta-pkgs/boost/distinfo                                                         |   4 ++-
 meta-pkgs/boost/patches/patch-boost_stacktrace_detail_frame__unwind.ipp          |  15 ++++++++++
 meta-pkgs/boost/patches/patch-boost_stacktrace_detail_location__from__symbol.hpp |  15 ++++++++++
 3 files changed, 33 insertions(+), 1 deletions(-)

diffs (56 lines):

diff -r 95685fe05152 -r 750e580089f5 meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo  Wed Sep 20 13:19:29 2017 +0000
+++ b/meta-pkgs/boost/distinfo  Wed Sep 20 14:33:25 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.107 2017/09/13 17:34:41 adam Exp $
+$NetBSD: distinfo,v 1.108 2017/09/20 14:33:25 jperkin Exp $
 
 SHA1 (boost_1_65_1.tar.bz2) = 4a5b0c3c1b1b9a4d6cb6a6cc395e903e76f76720
 RMD160 (boost_1_65_1.tar.bz2) = 695537a00f6f9ae80e4d682b155ce097017c49a9
@@ -19,6 +19,8 @@
 SHA1 (patch-boost_property__tree_detail_xml__parser__read__rapidxml.hpp) = 3499fcc37e72396d23a9fce0f1c97891adf12a9f
 SHA1 (patch-boost_regex_config.hpp) = 6b752c7c23168c591cd391739c7a4539bef44c12
 SHA1 (patch-boost_stacktrace_detail_collect__unwind.ipp) = a0e9722872121ddc0db6b0d370e848ad5b315d43
+SHA1 (patch-boost_stacktrace_detail_frame__unwind.ipp) = 0b06b1a1b28decbe61a6f6891b91c6751ff647e1
+SHA1 (patch-boost_stacktrace_detail_location__from__symbol.hpp) = 860bfd99ffce4f6462683fc344d43850632cb6c1
 SHA1 (patch-boost_test_impl_execution__monitor.ipp) = bab0d31f9ae0516de343cc2c6c5b08f6154ba8d5
 SHA1 (patch-boostcpp.jam) = 8914fe56f183649a394032513483e29d1c49e30c
 SHA1 (patch-libs_config_configure) = e2f204d4fa4f1bd9b4131d28f9be0a1ac22bf711
diff -r 95685fe05152 -r 750e580089f5 meta-pkgs/boost/patches/patch-boost_stacktrace_detail_frame__unwind.ipp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/meta-pkgs/boost/patches/patch-boost_stacktrace_detail_frame__unwind.ipp   Wed Sep 20 14:33:25 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-boost_stacktrace_detail_frame__unwind.ipp,v 1.1 2017/09/20 14:33:25 jperkin Exp $
+
+Fix build on OS where dladdr() takes a void *.
+
+--- boost/stacktrace/detail/frame_unwind.ipp.orig      2017-09-20 14:09:31.984874879 +0000
++++ boost/stacktrace/detail/frame_unwind.ipp
+@@ -84,7 +84,7 @@ std::string to_string(const frame* frame
+ std::string frame::name() const {
+ #if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
+     ::Dl_info dli;
+-    const bool dl_ok = !!::dladdr(addr_, &dli);
++    const bool dl_ok = !!::dladdr(const_cast<void*>(addr_), &dli);
+     if (dl_ok && dli.dli_sname) {
+         return boost::core::demangle(dli.dli_sname);
+     }
diff -r 95685fe05152 -r 750e580089f5 meta-pkgs/boost/patches/patch-boost_stacktrace_detail_location__from__symbol.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/meta-pkgs/boost/patches/patch-boost_stacktrace_detail_location__from__symbol.hpp  Wed Sep 20 14:33:25 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-boost_stacktrace_detail_location__from__symbol.hpp,v 1.1 2017/09/20 14:33:25 jperkin Exp $
+
+Fix build on OS where dladdr() takes a void *.
+
+--- boost/stacktrace/detail/location_from_symbol.hpp.orig      2017-09-20 14:09:31.984783070 +0000
++++ boost/stacktrace/detail/location_from_symbol.hpp
+@@ -28,7 +28,7 @@ public:
+     explicit location_from_symbol(const void* addr) BOOST_NOEXCEPT
+         : dli_()
+     {
+-        if (!::dladdr(addr, &dli_)) {
++        if (!::dladdr(const_cast<void*>(addr), &dli_)) {
+             dli_.dli_fname = 0;
+         }
+     }



Home | Main Index | Thread Index | Old Index