diff --git a/packages/boost/boost-math-tools-header_deprecated.hpp.patch b/packages/boost/boost-math-tools-header_deprecated.hpp.patch new file mode 100644 index 000000000..5e16655b4 --- /dev/null +++ b/packages/boost/boost-math-tools-header_deprecated.hpp.patch @@ -0,0 +1,31 @@ +--- 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 ++# 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 diff --git a/packages/boost/build.sh b/packages/boost/build.sh index 34b8de1e9..0f9234c22 100644 --- a/packages/boost/build.sh +++ b/packages/boost/build.sh @@ -3,7 +3,7 @@ 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=1 +TERMUX_PKG_REVISION=2 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_DEPENDS="libc++, libbz2, libiconv, liblzma, zlib"