boost: Update to 1.78.0

This commit is contained in:
Tee KOBAYASHI 2022-02-08 14:24:26 +09:00 committed by xtkoba
parent 69ad7669ee
commit f2b70f352e
5 changed files with 48 additions and 34 deletions

View File

@ -1,31 +0,0 @@
--- a/boost/math/tools/header_deprecated.hpp
+++ b/boost/math/tools/header_deprecated.hpp
@@ -6,12 +6,22 @@
#ifndef BOOST_MATH_TOOLS_HEADER_DEPRECATED
#define BOOST_MATH_TOOLS_HEADER_DEPRECATED
-#ifdef _MSC_VER
-// Expands to "This header is deprecated; use expr instead."
-#define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
-#else // GNU, Clang, Intel, IBM, etc.
+#ifndef BOOST_MATH_STANDALONE
+
+# include <boost/config/header_deprecated.hpp>
+# define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_HEADER_DEPRECATED(expr)
+
+#else
+
+# ifdef _MSC_VER
// Expands to "This header is deprecated; use expr instead."
-#define BOOST_MATH_HEADER_DEPRECATED(expr) _Pragma("This header is deprecated; use " expr " instead.")
-#endif
+# define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
+# else // GNU, Clang, Intel, IBM, etc.
+// Expands to "This header is deprecated use expr instead"
+# define BOOST_MATH_HEADER_DEPRECATED_MESSAGE(expr) _Pragma(#expr)
+# define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_MATH_HEADER_DEPRECATED_MESSAGE(message "This header is deprecated use " expr " instead")
+# endif
+
+#endif // BOOST_MATH_STANDALONE
#endif // BOOST_MATH_TOOLS_HEADER_DEPRECATED

View File

@ -0,0 +1,13 @@
https://github.com/boostorg/process/issues/235
--- a/boost/process/detail/posix/executor.hpp
+++ b/boost/process/detail/posix/executor.hpp
@@ -153,7 +153,7 @@
{
//I am the child
const auto len = std::strlen(msg);
- int data[2] = {ec.value(), len + 1};
+ int data[2] = {ec.value(), static_cast<int>(len + 1)};
::write(_pipe_sink, &data[0], sizeof(int) * 2);
::write(_pipe_sink, msg, len);

View File

@ -0,0 +1,18 @@
--- a/boost/process/detail/posix/shell_path.hpp
+++ b/boost/process/detail/posix/shell_path.hpp
@@ -18,13 +18,13 @@
inline boost::filesystem::path shell_path()
{
- return "/bin/sh";
+ return "@TERMUX_PREFIX@/bin/sh";
}
inline boost::filesystem::path shell_path(std::error_code &ec)
{
ec.clear();
- return "/bin/sh";
+ return "@TERMUX_PREFIX@/bin/sh";
}
}}}}

View File

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://boost.org
TERMUX_PKG_DESCRIPTION="Free peer-reviewed portable C++ source libraries"
TERMUX_PKG_LICENSE="BSL-1.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.77.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION=1.78.0
TERMUX_PKG_SRCURL=https://boostorg.jfrog.io/artifactory/main/release/$TERMUX_PKG_VERSION/source/boost_${TERMUX_PKG_VERSION//./_}.tar.bz2
TERMUX_PKG_SHA256=fc9f85fc030e233142908241af7a846e60630aa7388de9a5fafb1f3a26840854
TERMUX_PKG_SHA256=8681f175d4bdb26c52222665793eef08490d7758529330f98d3b29dd0735bccc
TERMUX_PKG_DEPENDS="libc++, libbz2, libiconv, liblzma, zlib"
TERMUX_PKG_BUILD_DEPENDS="python"
TERMUX_PKG_BREAKS="libboost-python (<= 1.65.1-2), boost-dev"

View File

@ -0,0 +1,15 @@
https://github.com/bfgroup/b2/commit/78fd284a42caabe8815cb0870b46e5567872e75b
--- a/tools/build/src/tools/stage.jam
+++ b/tools/build/src/tools/stage.jam
@@ -478,6 +478,10 @@ class install-target-class : basic-target
return [ sequence.unique $(result2) ] ;
}
+ rule skip-from-usage-requirements ( )
+ {
+ }
+
# Returns true iff 'type' is subtype of some element of 'types-to-include'.
#
local rule include-type ( type : types-to-include * )