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: PTHREAD_STACK_MIN on SunOS is n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/86da4eb127be
branches: trunk
changeset: 388777:86da4eb127be
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Dec 14 11:56:48 2018 +0000
description:
boost: PTHREAD_STACK_MIN on SunOS is not a constant.
diffstat:
meta-pkgs/boost/distinfo | 3 +-
meta-pkgs/boost/patches/patch-boost_thread_pthread_thread__data.hpp | 25 ++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r c157cd388588 -r 86da4eb127be meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo Fri Dec 14 10:47:54 2018 +0000
+++ b/meta-pkgs/boost/distinfo Fri Dec 14 11:56:48 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.122 2018/12/13 19:22:57 adam Exp $
+$NetBSD: distinfo,v 1.123 2018/12/14 11:56:48 jperkin Exp $
SHA1 (boost_1_69_0.tar.bz2) = ea6eee4b5999f9c02105386850f63a53f0250eaa
RMD160 (boost_1_69_0.tar.bz2) = 308544f184f04e4f192ac6a1118f6db787558ee6
@@ -22,6 +22,7 @@
SHA1 (patch-boost_regex_config.hpp) = 6b752c7c23168c591cd391739c7a4539bef44c12
SHA1 (patch-boost_stacktrace_detail_collect__unwind.ipp) = a0e9722872121ddc0db6b0d370e848ad5b315d43
SHA1 (patch-boost_test_impl_execution__monitor.ipp) = 573e2c8a4575ce1fc50338ddff0968e1c3ed1a61
+SHA1 (patch-boost_thread_pthread_thread__data.hpp) = 64d2edbaaa297408b8d0b8853611b1d3b0ceea7f
SHA1 (patch-boostcpp.jam) = 1bd902613a21bae8b0990a71f0f1dd8ef5931b2f
SHA1 (patch-libs_config_configure) = e2f204d4fa4f1bd9b4131d28f9be0a1ac22bf711
SHA1 (patch-libs_config_test_boost__no__range__based__for.ipp) = d9936c472fc2c696d86522b36eb12813ae91bee4
diff -r c157cd388588 -r 86da4eb127be meta-pkgs/boost/patches/patch-boost_thread_pthread_thread__data.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/meta-pkgs/boost/patches/patch-boost_thread_pthread_thread__data.hpp Fri Dec 14 11:56:48 2018 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-boost_thread_pthread_thread__data.hpp,v 1.1 2018/12/14 11:56:48 jperkin Exp $
+
+PTHREAD_STACK_MIN on SunOS is not a constant.
+
+--- boost/thread/pthread/thread_data.hpp.orig 2018-12-14 11:22:44.619793412 +0000
++++ boost/thread/pthread/thread_data.hpp
+@@ -32,6 +32,7 @@
+ # endif
+ #endif
+
++#include <limits.h>
+ #include <pthread.h>
+ #include <unistd.h>
+
+@@ -57,7 +58,9 @@ namespace boost
+ #else
+ std::size_t page_size = ::sysconf( _SC_PAGESIZE);
+ #endif
+-#if PTHREAD_STACK_MIN > 0
++#if defined(__sun)
++ if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
++#elif PTHREAD_STACK_MIN > 0
+ if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
+ #endif
+ size = ((size+page_size-1)/page_size)*page_size;
Home |
Main Index |
Thread Index |
Old Index