Skip to contentSkip to conversation

package/libcpprestsdk: remove package

PATCH New Bernd Kuhls 1 participant 7 messages Sep 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 package/libcpprestsdk: remove package

Quote from Github site https://github.com/microsoft/cpprestsdk
"This repository was archived by the owner on Jun 1, 2026. It is now
read-only."

Building the package with boost >= 1.89 and OpenSSL >= 4.x is broken. To not block these version bumps we remove this package.

---
 Config.in.legacy                         |  6 +++
 package/Config.in                        |  1 -
 package/libcpprestsdk/Config.in          | 34 ---------------
 package/libcpprestsdk/libcpprestsdk.hash |  3 --
 package/libcpprestsdk/libcpprestsdk.mk   | 55 ------------------------
 5 files changed, 6 insertions(+), 93 deletions(-)
 delete mode 100644 package/libcpprestsdk/Config.in
 delete mode 100644 package/libcpprestsdk/libcpprestsdk.hash
 delete mode 100644 package/libcpprestsdk/libcpprestsdk.mk
Config.in.legacy +6 -0
index 6c222c0e57..4f5c91c0ec 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_LIBCPPRESTSDK
+	bool "libcpprestsdk has been removed"
+	select BR2_LEGACY
+	help
+	  libcpprestsdk is unmaintained and has been removed
+
 config BR2_BINUTILS_VERSION_2_44_X
 	bool "binutils 2.44 has been removed"
 	select BR2_LEGACY
package/Config.in +0 -1
index 243b390d1c..aa94d44eca 100644
@@ -2020,7 +2020,6 @@ menu "Networking"
 	source "package/libcgicc/Config.in"
 	source "package/libcoap/Config.in"
 	source "package/libcppconnman/Config.in"
-	source "package/libcpprestsdk/Config.in"
 	source "package/libcurl/Config.in"
 	source "package/libdnet/Config.in"
 	source "package/libeXosip2/Config.in"
package/libcpprestsdk/Config.in deleted +0 -34
deleted file mode 100644
index 7688021ed0..0000000000
@@ -1,34 +0,0 @@
-config BR2_PACKAGE_LIBCPPRESTSDK
-	bool "libcpprestsdk"
-	depends on BR2_ENABLE_LOCALE
-	depends on BR2_INSTALL_LIBSTDCPP
-	depends on BR2_USE_WCHAR # boost
-	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic, boost-filesystem
-	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
-	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
-	select BR2_PACKAGE_BOOST
-	select BR2_PACKAGE_BOOST_ATOMIC
-	select BR2_PACKAGE_BOOST_CHRONO
-	select BR2_PACKAGE_BOOST_DATE_TIME
-	select BR2_PACKAGE_BOOST_FILESYSTEM
-	select BR2_PACKAGE_BOOST_RANDOM
-	select BR2_PACKAGE_BOOST_REGEX
-	select BR2_PACKAGE_BOOST_SYSTEM
-	select BR2_PACKAGE_BOOST_THREAD
-	select BR2_PACKAGE_OPENSSL
-	help
-	  The C++ REST SDK is a Microsoft project for cloud-based
-	  client-server communication in native code using a modern
-	  asynchronous C++ API design. This project aims to help C++
-	  developers connect to and interact with services.
-
-	  https://github.com/Microsoft/cpprestsdk
-
-comment "libcpprestsdk needs a toolchain w/ NPTL, C++, wchar, locale"
-	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
-	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
-		!BR2_INSTALL_LIBSTDCPP || \
-		!BR2_USE_WCHAR || !BR2_ENABLE_LOCALE
-
-comment "libcpprestsdk needs exception_ptr"
-	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
package/libcpprestsdk/libcpprestsdk.hash deleted +0 -3
deleted file mode 100644
index 8e398d0c54..0000000000
@@ -1,3 +0,0 @@
-# Locally calculated
-sha256  6bd74a637ff182144b6a4271227ea8b6b3ea92389f88b25b215e6f94fd4d41cb  libcpprestsdk-2.10.18.tar.gz
-sha256  5c191789f502ac87df83b57008d2fc3e47fbf31315381b5bc4309f6602d0fe97  license.txt
package/libcpprestsdk/libcpprestsdk.mk deleted +0 -55

55 lines not on this page · raw message

Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/7 package/cc-tool: Fix build with Boost >= 1.89

---
Gitlab pipelines passed for this patch:
https://gitlab.com/bkuhls/buildroot/-/commits/02f93d0a4d53cef1b78ceb0f8d73214eb1748339

 .../0001-Fix-build-with-Boost-1.89-32.patch   | 1029 +++++++++++++++++
 1 file changed, 1029 insertions(+)
 create mode 100644 package/cc-tool/0001-Fix-build-with-Boost-1.89-32.patch
package/cc-tool/0001-Fix-build-with-Boost-1.89-32.patch new file +1029 -0
new file mode 100644
index 0000000000..0381b766a3
@@ -0,0 +1,1029 @@
+From 0d84df329e343e2ea5a960c04a3d4478ee039aa0 Mon Sep 17 00:00:00 2001
+From: Arjen de Korte <[email protected]>
+Date: Fri, 17 Oct 2025 10:45:33 +0200
+Subject: [PATCH] Fix build with Boost >= 1.89 (#32)
+
+From upstream https://github.com/tsuna/boost.m4/blob/master/build-aux/boost.m4
+
+Upstream: https://github.com/dashesy/cc-tool/commit/0d84df329e343e2ea5a960c04a3d4478ee039aa0
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ m4/boost.m4 | 570 +++++++++++++++++++++++++++++++++++++++++++---------
+ 1 file changed, 479 insertions(+), 91 deletions(-)
+
+diff --git a/m4/boost.m4 b/m4/boost.m4
+index a667137..342516e 100644
+--- a/m4/boost.m4
++++ b/m4/boost.m4
+@@ -22,7 +22,7 @@
+ # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+ m4_define([_BOOST_SERIAL], [m4_translit([
+-# serial 25
++# serial 39
+ ], [#
+ ], [])])
+ 
+@@ -86,9 +86,10 @@ dnl boost-lib-version =
+ dnl # 2 "conftest.cc" 3
+ dnl                    "1_56"
+ dnl
+-dnl So get rid of the # lines, and glue the remaining ones together.
++dnl So get rid of the # and empty lines, and glue the remaining ones together.
+ (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
+   grep -v '#' |
++  grep -v '^[[[:space:]]]*$' |
+   tr -d '\r' |
+   tr -s '\n' ' ' |
+   $SED -n -e "$1" >conftest.i 2>&1],
+@@ -225,7 +226,7 @@ AC_LANG_POP([C++])dnl
+   AC_CACHE_CHECK([for Boost's header version],
+     [boost_cv_lib_version],
+     [m4_pattern_allow([^BOOST_LIB_VERSION$])dnl
+-     _BOOST_SED_CPP([[/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}]],
++     _BOOST_SED_CPP([[/^.*boost-lib-version = /{s///;s/[\" ]//g;p;q;}]],
+                     [#include <boost/version.hpp>
+ boost-lib-version = BOOST_LIB_VERSION],
+     [boost_cv_lib_version=`cat conftest.i`])])
+@@ -287,14 +288,17 @@ fi
+ 
+ # BOOST_FIND_LIBS([COMPONENT-NAME], [CANDIDATE-LIB-NAMES],
+ #                 [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST],
+-#                 [CXX-PROLOGUE])
++#                 [CXX-PROLOGUE], [CXX-POST-INCLUDE-PROLOGUE],
++#                 [ERROR_ON_UNUSABLE])
+ # --------------------------------------------------------------
+ # Look for the Boost library COMPONENT-NAME (e.g., `thread', for
+ # libboost_thread) under the possible CANDIDATE-LIB-NAMES (e.g.,
+ # "thread_win32 thread").  Check that HEADER-NAME works and check that
+ # libboost_LIB-NAME can link with the code CXX-TEST.  The optional
+ # argument CXX-PROLOGUE can be used to include some C++ code before
+-# the `main' function.
++# the `main' function. The CXX-POST-INCLUDE-PROLOGUE can be used to
++# include some code before the `main' function, but after the
++# `#include <HEADER-NAME>'.
+ #
+ # Invokes BOOST_FIND_HEADER([HEADER-NAME]) (see above).
+ #
+@@ -308,6 +312,9 @@ fi
+ # builds.  Some sample values for PREFERRED-RT-OPT: (nothing), mt, d, mt-d, gdp
+ # ...  If you want to make sure you have a specific version of Boost
+ # (eg, >= 1.33) you *must* invoke BOOST_REQUIRE before this macro.
++#
++# ERROR_ON_UNUSABLE can be set to "no" if the caller does not want their
++# configure to fail
+ AC_DEFUN([BOOST_FIND_LIBS],
+ [AC_REQUIRE([BOOST_REQUIRE])dnl
+ AC_REQUIRE([_BOOST_FIND_COMPILER_TAG])dnl
+@@ -316,26 +323,32 @@ AC_REQUIRE([_BOOST_GUESS_WHETHER_TO_USE_MT])dnl
+ if test x"$boost_cv_inc_path" = xno; then
+   AC_MSG_NOTICE([Boost not available, not searching for the Boost $1 library])
+ else
+-dnl The else branch is huge and wasn't intended on purpose.
++dnl The else branch is huge and wasn't indented on purpose.
+ AC_LANG_PUSH([C++])dnl
+ AS_VAR_PUSHDEF([Boost_lib], [boost_cv_lib_$1])dnl
+ AS_VAR_PUSHDEF([Boost_lib_LDFLAGS], [boost_cv_lib_$1_LDFLAGS])dnl
+ AS_VAR_PUSHDEF([Boost_lib_LDPATH], [boost_cv_lib_$1_LDPATH])dnl
+ AS_VAR_PUSHDEF([Boost_lib_LIBS], [boost_cv_lib_$1_LIBS])dnl
+-BOOST_FIND_HEADER([$4])
++AS_IF([test x"$8" = "xno"], [not_found_header='true'])
++BOOST_FIND_HEADER([$4], [$not_found_header])
+ boost_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
+ AC_CACHE_CHECK([for the Boost $1 library], [Boost_lib],
+                [_BOOST_FIND_LIBS($@)])
+ case $Boost_lib in #(
++  (yes) _AC_MSG_LOG_CONFTEST
++    AC_DEFINE(AS_TR_CPP([HAVE_BOOST_$1]), [1], [Defined if the Boost $1 library is available])dnl
++    AC_SUBST(AS_TR_CPP([BOOST_$1_LDFLAGS]), [$Boost_lib_LDFLAGS])dnl
++    AC_SUBST(AS_TR_CPP([BOOST_$1_LDPATH]), [$Boost_lib_LDPATH])dnl
++    AC_SUBST([BOOST_LDPATH], [$Boost_lib_LDPATH])dnl
++    AC_SUBST(AS_TR_CPP([BOOST_$1_LIBS]), [$Boost_lib_LIBS])dnl
++    ;;
+   (no) _AC_MSG_LOG_CONFTEST
+-    AC_MSG_ERROR([cannot find the flags to link with Boost $1])
++    AS_IF([test x"$8" != "xno"], [
++      AC_MSG_ERROR([cannot find flags to link with the Boost $1 library (libboost-$1)])
++    ])
+     ;;
+ esac
+-AC_SUBST(AS_TR_CPP([BOOST_$1_LDFLAGS]), [$Boost_lib_LDFLAGS])dnl
+-AC_SUBST(AS_TR_CPP([BOOST_$1_LDPATH]), [$Boost_lib_LDPATH])dnl
+-AC_SUBST([BOOST_LDPATH], [$Boost_lib_LDPATH])dnl
+-AC_SUBST(AS_TR_CPP([BOOST_$1_LIBS]), [$Boost_lib_LIBS])dnl
+ CPPFLAGS=$boost_save_CPPFLAGS
+ AS_VAR_POPDEF([Boost_lib])dnl
+ AS_VAR_POPDEF([Boost_lib_LDFLAGS])dnl
+@@ -348,16 +361,20 @@ fi
+ 
+ # BOOST_FIND_LIB([LIB-NAME],
+ #                [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST],
+-#                [CXX-PROLOGUE])
++#                [CXX-PROLOGUE], [CXX-POST-INCLUDE-PROLOGUE],
++#                [ERROR_ON_UNUSABLE])
+ # --------------------------------------------------------------
+ # Backward compatibility wrapper for BOOST_FIND_LIBS.
++# ERROR_ON_UNUSABLE can be set to "no" if the caller does not want their
++# configure to fail
+ AC_DEFUN([BOOST_FIND_LIB],
+ [BOOST_FIND_LIBS([$1], $@)])
+ 
+ 
+ # _BOOST_FIND_LIBS([LIB-NAME], [CANDIDATE-LIB-NAMES],
+ #                 [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST],
+-#                 [CXX-PROLOGUE])
++#                 [CXX-PROLOGUE], [CXX-POST-INCLUDE-PROLOGUE],
++#                 [ERROR_ON_UNUSABLE])
+ # --------------------------------------------------------------
+ # Real implementation of BOOST_FIND_LIBS: rely on these local macros:
+ # Boost_lib, Boost_lib_LDFLAGS, Boost_lib_LDPATH, Boost_lib_LIBS
+@@ -369,6 +386,9 @@ AC_DEFUN([BOOST_FIND_LIB],
+ # usually installed.  If we can't find the standard variants, we try
+ # to enforce -mt (for instance on MacOSX, libboost_thread.dylib
+ # doesn't exist but there's -obviously- libboost_thread-mt.dylib).
++#
++# ERROR_ON_UNUSABLE can be set to "no" if the caller does not want their
++# configure to fail
+ AC_DEFUN([_BOOST_FIND_LIBS],
+ [Boost_lib=no
+   case "$3" in #(
+@@ -395,7 +415,8 @@ AC_DEFUN([_BOOST_FIND_LIBS],
+     AC_MSG_ERROR([the libext variable is empty, did you invoke Libtool?])
+   boost_save_ac_objext=$ac_objext
+   # Generate the test file.
+-  AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <$4>
++  AC_LANG_CONFTEST([AC_LANG_PROGRAM([$7
++#include <$4>
+ $6], [$5])])
+ dnl Optimization hacks: compiling C++ is slow, especially with Boost.  What
+ dnl we're trying to do here is guess the right combination of link flags
+@@ -415,7 +436,10 @@ dnl empty because the test file is generated only once above (before we
+ dnl start the for loops).
+   AC_COMPILE_IFELSE([],
+     [ac_objext=do_not_rm_me_plz],
+-    [AC_MSG_ERROR([cannot compile a test that uses Boost $1])])
++    [AS_IF([test x"$8" != x"no"], [
++       AC_MSG_ERROR([cannot compile a test that uses Boost $1])
++     ])
++    ])
+   ac_objext=$boost_save_ac_objext
+   boost_failed_libs=
+ # Don't bother to ident the following nested for loops, only the 2
+@@ -425,12 +449,15 @@ for boost_tag_ in -$boost_cv_lib_tag ''; do
+ for boost_ver_ in -$boost_cv_lib_version ''; do
+ for boost_mt_ in $boost_mt -mt ''; do
+ for boost_rtopt_ in $boost_rtopt '' -d; do
+-  for boost_lib in \
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
+-    boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
+-    boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
+-    boost_$boost_lib_$boost_tag_$boost_ver_
++  for boost_full_suffix in \
++    $boost_last_suffix \
++    x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
++    x$boost_tag_$boost_rtopt_$boost_ver_ \
++    x$boost_tag_$boost_mt_$boost_ver_ \
++    x$boost_tag_$boost_ver_
+   do
++    boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'`
++    boost_lib="boost_$boost_lib_$boost_real_suffix"
+     # Avoid testing twice the same lib
+     case $boost_failed_libs in #(
+       (*@$boost_lib@*) continue;;
+@@ -495,6 +522,7 @@ dnl generated only once above (before we start the for loops).
+         test x"$boost_ldpath" != x &&
+           Boost_lib_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
+         Boost_lib_LDPATH="$boost_ldpath"
++        boost_last_suffix="$boost_full_suffix"
+         break 7
+       else
+         boost_failed_libs="$boost_failed_libs@$boost_lib@"
+@@ -533,6 +561,14 @@ m4_popdef([BOOST_Library])dnl
+ ])
+ ])
+ 
++
++# BOOST_ANY()
++# ------------
++# Look for Boost.Any
++BOOST_DEFUN([Any],
++[BOOST_FIND_HEADER([boost/any.hpp])])
++
++
+ # BOOST_ARRAY()
+ # -------------
+ # Look for Boost.Array
+@@ -547,6 +583,37 @@ BOOST_DEFUN([Asio],
+ [AC_REQUIRE([BOOST_SYSTEM])dnl
+ BOOST_FIND_HEADER([boost/asio.hpp])])
+ 
++# BOOST_BIMAP()
++# ------------
++# Look for Boost.Bimap
++BOOST_DEFUN([Bimap],
++[BOOST_FIND_HEADER([boost/bimap.hpp])])
++
++
++# BOOST_ASSIGN()
++# -------------
++# Look for Boost.Assign
++BOOST_DEFUN([Assign],
++[BOOST_FIND_HEADER([boost/assign.hpp])])
++
++
++# BOOST_ATOMIC([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
++# -------------------------------
++# Look for Boost.Atomic.  For the documentation of PREFERRED-RT-OPT, see the
++# documentation of BOOST_FIND_LIB above.
++BOOST_DEFUN([Atomic],
++[BOOST_FIND_LIB([atomic], [$1],
++                [boost/atomic.hpp],
++                [boost::atomic<int> a;],
++                [ ],
++                [#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++#ifdef HAVE_STDINT_H
++#include <stdint.h>
++#endif], [$2])
++])# BOOST_ATOMIC
++
+ 
+ # BOOST_BIND()
+ # ------------
+@@ -555,7 +622,14 @@ BOOST_DEFUN([Bind],
+ [BOOST_FIND_HEADER([boost/bind.hpp])])
+ 
+ 
+-# BOOST_CHRONO()
++# BOOST_CAST()
++# ------------
++# Look for Boost.Cast
++BOOST_DEFUN([Cast],
++[BOOST_FIND_HEADER([boost/cast.hpp])])
++
++
++# BOOST_CHRONO([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # --------------
+ # Look for Boost.Chrono.
+ BOOST_DEFUN([Chrono],
+@@ -563,7 +637,7 @@ BOOST_DEFUN([Chrono],
+ # added as of 1.35.0.  If we have a version <1.35, we must not attempt to
+ # find Boost.System as it didn't exist by then.
+ if test $boost_major_version -ge 135; then
+-  BOOST_SYSTEM([$1])
++  BOOST_SYSTEM([$1], [$2])
+ fi # end of the Boost.System check.
+ boost_filesystem_save_LIBS=$LIBS
+ boost_filesystem_save_LDFLAGS=$LDFLAGS
+@@ -572,7 +646,7 @@ LIBS="$LIBS $BOOST_SYSTEM_LIBS"
+ LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
+ BOOST_FIND_LIB([chrono], [$1],
+                 [boost/chrono.hpp],
+-                [boost::chrono::thread_clock d;])
++                [boost::chrono::thread_clock d;], [], [], [$2])
+ if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
+   BOOST_CHRONO_LIBS="$BOOST_CHRONO_LIBS $BOOST_SYSTEM_LIBS"
+ fi
+@@ -581,30 +655,144 @@ LDFLAGS=$boost_filesystem_save_LDFLAGS
+ ])# BOOST_CHRONO
+ 
+ 
+-# BOOST_CONTEXT([PREFERRED-RT-OPT])
++# BOOST_CONTEXT([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------
+ # Look for Boost.Context.  For the documentation of PREFERRED-RT-OPT, see the
+-# documentation of BOOST_FIND_LIB above.  This library was introduced in Boost
+-# 1.51.0
++# documentation of BOOST_FIND_LIB above.
++#
++# * This library was introduced in Boost 1.51.0
++# * The signatures of make_fcontext() and jump_fcontext were changed in 1.56.0
++# * A dependency on boost_thread appears in 1.57.0
++# * The implementation details were moved to boost::context::detail in 1.61.0
++# * 1.61 also introduces execution_context_v2, which is the "lowest common
++#   denominator" for boost::context presence since then.
++# * boost::context::fiber was introduced in 1.69 and execution_context_v2 was
++#   removed in 1.72
+ BOOST_DEFUN([Context],
+-[BOOST_FIND_LIB([context], [$1],
+-                [boost/context/all.hpp],[[
++[boost_context_save_LIBS=$LIBS
++ boost_context_save_LDFLAGS=$LDFLAGS
++if test $boost_major_version -ge 157; then
++  BOOST_THREAD([$1], [$2])
++  m4_pattern_allow([^BOOST_THREAD_(LIBS|LDFLAGS)$])dnl
++  LIBS="$LIBS $BOOST_THREAD_LIBS"
++  LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS"
++fi
++
++if test $boost_major_version -ge 169; then
++
++BOOST_FIND_LIB([context], [$1],
++                [boost/context/fiber.hpp], [[
++namespace ctx=boost::context;
++int a;
++ctx::fiber source{[&a](ctx::fiber&& sink){
++    a=0;
++    int b=1;
++    for(;;){
++        sink=std::move(sink).resume();
++        int next=a+b;
++        a=b;
++        b=next;
++    }
++    return std::move(sink);
++}};
++for (int j=0;j<10;++j) {
++    source=std::move(source).resume();
++}
++return a == 34;
++]], [], [], [$2])
++
++elif test $boost_major_version -ge 161; then
++
++BOOST_FIND_LIB([context], [$1],
++                [boost/context/execution_context_v2.hpp], [[
++namespace ctx=boost::context;
++int res=0;
++int n=35;
++ctx::execution_context<int> source(
++    [n, &res](ctx::execution_context<int> sink, int) mutable {
++        int a=0;
++        int b=1;
++        while(n-->0){
++            auto result=sink(a);
++            sink=std::move(std::get<0>(result));
++            auto next=a+b;
++            a=b;
++            b=next;
++        }
++        return sink;
++    });
++for(int i=0;i<10;++i){
++    auto result=source(i);
++    source=std::move(std::get<0>(result));
++    res = std::get<1>(result);
++}
++return res == 34;
++]], [], [], [$2])
++
++else
++
++BOOST_FIND_LIB([context], [$1],
++                [boost/context/fcontext.hpp],[[
++
+ // creates a stack
+ void * stack_pointer = new void*[4096];
+ std::size_t const size = sizeof(void*[4096]);
+ 
+-// context fc uses f() as context function
+-// fcontext_t is placed on top of context stack
+-// a pointer to fcontext_t is returned
++#if BOOST_VERSION <= 105100
++ctx::make_fcontext(&fc, f);
++return ctx::jump_fcontext(&fcm, &fc, 3) == 6;
++
++#else
++
+ fc = ctx::make_fcontext(stack_pointer, size, f);
+-return ctx::jump_fcontext(&fcm, fc, 3) == 6;]],[dnl
++return ctx::jump_fcontext(&fcm, fc, 3) == 6;
++
++#endif
++
++
++]],[dnl
++
++#include <boost/version.hpp>
++#if BOOST_VERSION <= 105100
++
++namespace ctx = boost::ctx;
++
++static ctx::fcontext_t fcm, fc;
++
++static void f(intptr_t i) {
++    ctx::jump_fcontext(&fc, &fcm, i * 2);
++}
++
++#elif BOOST_VERSION <= 105500
++
+ namespace ctx = boost::context;
++
+ // context
+ static ctx::fcontext_t fcm, *fc;
++
+ // context-function
+ static void f(intptr_t i) {
+     ctx::jump_fcontext(fc, &fcm, i * 2);
+-}])
++}
++
++#else
++
++namespace ctx = boost::context;
++
++// context
++static ctx::fcontext_t fcm, fc;
++
++// context-function
++static void f(intptr_t i) {
++    ctx::jump_fcontext(&fc, fcm, i * 2);
++}
++#endif
++], [], [], [$2])
++
++fi
++
++LIBS=$boost_context_save_LIBS
++LDFLAGS=$boost_context_save_LDFLAGS
+ ])# BOOST_CONTEXT
+ 
+ 
+@@ -617,7 +805,7 @@ BOOST_FIND_HEADER([boost/lexical_cast.hpp])
+ ])# BOOST_CONVERSION
+ 
+ 
+-# BOOST_COROUTINE([PREFERRED-RT-OPT])
++# BOOST_COROUTINE([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------
+ # Look for Boost.Coroutine.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.  This library was introduced in Boost
+@@ -627,19 +815,31 @@ BOOST_DEFUN([Coroutine],
+ boost_coroutine_save_LIBS=$LIBS
+ boost_coroutine_save_LDFLAGS=$LDFLAGS
+ # Link-time dependency from coroutine to context
+-BOOST_CONTEXT([$1])
++BOOST_CONTEXT([$1], [$2])
+ # Starting from Boost 1.55 a dependency on Boost.System is added
+ if test $boost_major_version -ge 155; then
+-  BOOST_SYSTEM([$1])
++  BOOST_SYSTEM([$1], [$2])
+ fi
+ m4_pattern_allow([^BOOST_(CONTEXT|SYSTEM)_(LIBS|LDFLAGS)])
+ LIBS="$LIBS $BOOST_CONTEXT_LIBS $BOOST_SYSTEM_LIBS"
+ LDFLAGS="$LDFLAGS $BOOST_CONTEXT_LDFLAGS"
+ 
+-BOOST_FIND_LIB([coroutine], [$1],
+-                [boost/coroutine/coroutine.hpp],
+-                [boost::coroutines::coroutine< int(int) > coro; coro.empty();])
+-
++# in 1.53 coroutine was a header only library
++if test $boost_major_version -eq 153; then
++  AS_IF([test x"$2" = "xno"], [not_found_header='true'])
++  BOOST_FIND_HEADER([boost/coroutine/coroutine.hpp], [$not_found_header])
++else
++  BOOST_FIND_LIB([coroutine], [$1],
++		  [boost/coroutine/coroutine.hpp],
++		  [
++  #include <boost/version.hpp>
++  #if   BOOST_VERSION <= 105500
++  boost::coroutines::coroutine<int(int)> coro; coro.get();
++  #else
++  boost::coroutines::asymmetric_coroutine<int>::pull_type coro; coro.get();
++  #endif
++  ], [], [], [$2])
++fi
+ # Link-time dependency from coroutine to context, existed only in 1.53, in 1.54
+ # coroutine doesn't use context from its headers but from its library.
+ if test $boost_major_version -eq 153 || test $enable_static_boost = yes && test $boost_major_version -ge 154; then
+@@ -663,18 +863,25 @@ BOOST_DEFUN([CRC],
+ ])# BOOST_CRC
+ 
+ 
+-# BOOST_DATE_TIME([PREFERRED-RT-OPT])
++# BOOST_DATE_TIME([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------
+ # Look for Boost.Date_Time.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Date_Time],
+ [BOOST_FIND_LIB([date_time], [$1],
+                 [boost/date_time/posix_time/posix_time.hpp],
+-                [boost::posix_time::ptime t;])
++                [boost::posix_time::ptime t;], [], [], [$2])
+ ])# BOOST_DATE_TIME
+ 
+ 
+-# BOOST_FILESYSTEM([PREFERRED-RT-OPT])
++# BOOST_EXCEPTION()
++# ------------
++# Look for Boost.Exception
++BOOST_DEFUN([Exception],
++[BOOST_FIND_HEADER([boost/exception/all.hpp])])
++
++
++# BOOST_FILESYSTEM([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ------------------------------------
+ # Look for Boost.Filesystem.  For the documentation of PREFERRED-RT-OPT, see
+ # the documentation of BOOST_FIND_LIB above.
+@@ -685,7 +892,7 @@ BOOST_DEFUN([Filesystem],
+ # added as of 1.35.0.  If we have a version <1.35, we must not attempt to
+ # find Boost.System as it didn't exist by then.
+ if test $boost_major_version -ge 135; then
+-  BOOST_SYSTEM([$1])
++  BOOST_SYSTEM([$1], [$2])
+ fi # end of the Boost.System check.
+ boost_filesystem_save_LIBS=$LIBS
+ boost_filesystem_save_LDFLAGS=$LDFLAGS
+@@ -693,7 +900,8 @@ m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl
+ LIBS="$LIBS $BOOST_SYSTEM_LIBS"
+ LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
+ BOOST_FIND_LIB([filesystem], [$1],
+-                [boost/filesystem/path.hpp], [boost::filesystem::path p;])
++                [boost/filesystem/path.hpp], [boost::filesystem::path p;],
++                [], [], [$2])
+ if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
+   BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
+ fi
+@@ -738,6 +946,13 @@ BOOST_DEFUN([Function],
+ [BOOST_FIND_HEADER([boost/function.hpp])])
+ 
+ 
++# BOOST_FUSION()
++# -----------------
++# Look for Boost.Fusion
++BOOST_DEFUN([Fusion],
++[BOOST_FIND_HEADER([boost/fusion/sequence.hpp])])
++
++
+ # BOOST_GEOMETRY()
+ # ----------------
+ # Look for Boost.Geometry (new since 1.47.0).
+@@ -746,32 +961,52 @@ BOOST_DEFUN([Geometry],
+ ])# BOOST_GEOMETRY
+ 
+ 
+-# BOOST_GRAPH([PREFERRED-RT-OPT])
++# BOOST_GRAPH([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -------------------------------
+ # Look for Boost.Graphs.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Graph],
+-[BOOST_FIND_LIB([graph], [$1],
+-                [boost/graph/adjacency_list.hpp], [boost::adjacency_list<> g;])
++[boost_graph_save_LIBS=$LIBS
++boost_graph_save_LDFLAGS=$LDFLAGS
++# Link-time dependency from graph to regex was added as of 1.40.0.
++if test $boost_major_version -ge 140; then
++  BOOST_REGEX([$1], [$2])
++  m4_pattern_allow([^BOOST_REGEX_(LIBS|LDFLAGS)$])dnl
++  LIBS="$LIBS $BOOST_REGEX_LIBS"
++  LDFLAGS="$LDFLAGS $BOOST_REGEX_LDFLAGS"
++fi
++BOOST_FIND_LIB([graph], [$1],
++                [boost/graph/adjacency_list.hpp], [boost::adjacency_list<> g;],
++                [], [], [$2])
++LIBS=$boost_graph_save_LIBS
++LDFLAGS=$boost_graph_save_LDFLAGS
+ ])# BOOST_GRAPH
+ 
+ 
+-# BOOST_IOSTREAMS([PREFERRED-RT-OPT])
++# BOOST_HASH()
++# ------------
++# Look for Boost.Functional/Hash
++BOOST_DEFUN([Hash],
++[BOOST_FIND_HEADER([boost/functional/hash.hpp])])
++
++
++# BOOST_IOSTREAMS([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------
+ # Look for Boost.IOStreams.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([IOStreams],
+ [BOOST_FIND_LIB([iostreams], [$1],
+                 [boost/iostreams/device/file_descriptor.hpp],
+-                [boost::iostreams::file_descriptor fd; fd.close();])
++                [boost::iostreams::file_descriptor fd; fd.close();],
++                [], [], [$2])
+ ])# BOOST_IOSTREAMS
+ 
+ 
+-# BOOST_HASH()
++# BOOST_ITERATOR()
+ # ------------
+-# Look for Boost.Functional/Hash
+-BOOST_DEFUN([Hash],
+-[BOOST_FIND_HEADER([boost/functional/hash.hpp])])
++# Look for Boost.Iterator
++BOOST_DEFUN([Iterator],
++[BOOST_FIND_HEADER([boost/iterator/iterator_adaptor.hpp])])
+ 
+ 
+ # BOOST_LAMBDA()
+@@ -781,35 +1016,64 @@ BOOST_DEFUN([Lambda],
+ [BOOST_FIND_HEADER([boost/lambda/lambda.hpp])])
+ 
+ 
+-# BOOST_LOCALE()
++# BOOST_LOCALE([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # --------------
+ # Look for Boost.Locale
+ BOOST_DEFUN([Locale],
+-[BOOST_FIND_LIB([locale], [$1],
++[
++boost_locale_save_LIBS=$LIBS
++boost_locale_save_LDFLAGS=$LDFLAGS
++# require SYSTEM for boost-1.50.0 and up
++if test $boost_major_version -ge 150; then
++  BOOST_SYSTEM([$1], [$2])
++  m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl
++  LIBS="$LIBS $BOOST_SYSTEM_LIBS"
++  LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
++fi # end of the Boost.System check.
++BOOST_FIND_LIB([locale], [$1],
+     [boost/locale.hpp],
+-    [[boost::locale::generator gen; std::locale::global(gen(""));]])
++    [[boost::locale::generator gen; std::locale::global(gen(""));]], [], [], [$2])
++LIBS=$boost_locale_save_LIBS
++LDFLAGS=$boost_locale_save_LDFLAGS
+ ])# BOOST_LOCALE
+ 
+-# BOOST_LOG([PREFERRED-RT-OPT])
++# BOOST_LOG([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------
+ # Look for Boost.Log.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Log],
+-[BOOST_FIND_LIB([log], [$1],
++[boost_log_save_LIBS=$LIBS
++boost_log_save_LDFLAGS=$LDFLAGS
++BOOST_SYSTEM([$1], [$2])
++BOOST_FILESYSTEM([$1], [$2])
++BOOST_DATE_TIME([$1], [$2])
++m4_pattern_allow([^BOOST_(SYSTEM|FILESYSTEM|DATE_TIME)_(LIBS|LDFLAGS)$])dnl
++LIBS="$LIBS $BOOST_DATE_TIME_LIBS $BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
++LDFLAGS="$LDFLAGS $BOOST_DATE_TIME_LDFLAGS $BOOST_FILESYSTEM_LDFLAGS $BOOST_SYSTEM_LDFLAGS"
++BOOST_FIND_LIB([log], [$1],
+     [boost/log/core/core.hpp],
+-    [boost::log::attribute a; a.get_value();])
++    [boost::log::attribute a; a.get_value();], [], [], [$2])
++LIBS=$boost_log_save_LIBS
++LDFLAGS=$boost_log_save_LDFLAGS
+ ])# BOOST_LOG
+ 
+ 
+-# BOOST_LOG_SETUP([PREFERRED-RT-OPT])
++# BOOST_LOG_SETUP([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------
+ # Look for Boost.Log.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Log_Setup],
+-[AC_REQUIRE([BOOST_LOG])dnl
++[boost_log_setup_save_LIBS=$LIBS
++boost_log_setup_save_LDFLAGS=$LDFLAGS
++BOOST_LOG([$1])
++m4_pattern_allow([^BOOST_LOG_(LIBS|LDFLAGS)$])dnl
++LIBS="$LIBS $BOOST_LOG_LIBS"
++LDFLAGS="$LDFLAGS $BOOST_LOG_LDFLAGS"
+ BOOST_FIND_LIB([log_setup], [$1],
+     [boost/log/utility/setup/from_settings.hpp],
+-    [boost::log::basic_settings<char> bs; bs.empty();])
++    [boost::log::basic_settings<char> bs; bs.empty();], [], [], [$2])
++LIBS=$boost_log_setup_save_LIBS
++LDFLAGS=$boost_log_setup_save_LDFLAGS
+ ])# BOOST_LOG_SETUP
+ 
+ 
+@@ -825,7 +1089,7 @@ BOOST_DEFUN([Math],
+ [BOOST_FIND_HEADER([boost/math/special_functions.hpp])])
+ 
+ 
+-# BOOST_MPI([PREFERRED-RT-OPT])
++# BOOST_MPI([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -------------------------------
+ # Look for Boost MPI.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.  Uses MPICXX variable if it is
+@@ -842,12 +1106,20 @@ BOOST_FIND_LIB([mpi], [$1],
+                [boost/mpi.hpp],
+                [int argc = 0;
+                 char **argv = 0;
+-                boost::mpi::environment env(argc,argv);])
++                boost::mpi::environment env(argc,argv);],
++               [], [], [$2])
+ CXX=${boost_save_CXX}
+ CXXCPP=${boost_save_CXXCPP}
+ ])# BOOST_MPI
+ 
+ 
++# BOOST_MPL()
++# ------------------
++# Look for Boost.MPL
++BOOST_DEFUN([MPL],
++[BOOST_FIND_HEADER([boost/mpl/for_each.hpp])])
++
++
+ # BOOST_MULTIARRAY()
+ # ------------------
+ # Look for Boost.MultiArray
+@@ -855,6 +1127,13 @@ BOOST_DEFUN([MultiArray],
+ [BOOST_FIND_HEADER([boost/multi_array.hpp])])
+ 
+ 
++# BOOST_MULTIINDEXCCONTAINER()
++# ------------------
++# Look for Boost.MultiIndexContainer
++BOOST_DEFUN([MultiIndexContainer],
++[BOOST_FIND_HEADER([boost/multi_index_container.hpp])])
++
++
+ # BOOST_NUMERIC_UBLAS()
+ # --------------------------
+ # Look for Boost.NumericUblas (Basic Linear Algebra)
+@@ -885,6 +1164,25 @@ BOOST_DEFUN([Preprocessor],
+ [BOOST_FIND_HEADER([boost/preprocessor/repeat.hpp])])
+ 
+ 
++# BOOST_PROPERTY_TREE([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
++# -----------------------------------------
++# Look for Boost.Property_Tree.  For the documentation of PREFERRED-RT-OPT,
++# see the documentation of BOOST_FIND_LIB above.
++BOOST_DEFUN([Property_Tree],
++[BOOST_FIND_LIB([property_tree], [$1],
++                [boost/property_tree/ptree.hpp],
++                [boost::property_tree::ptree pt; boost::property_tree::read_xml d("test", pt);],
++                [], [], [$2])
++])# BOOST_PROPERTY_TREE
++
++
++# BOOST_RANDOM()
++# --------------------
++# Look for Boost.Random
++BOOST_DEFUN([Random],
++[BOOST_FIND_HEADER([boost/random/random_number_generator.hpp])])
++
++
+ # BOOST_RANGE()
+ # --------------------
+ # Look for Boost.Range
+@@ -905,14 +1203,15 @@ BOOST_DEFUN([Uuid],
+ [BOOST_FIND_HEADER([boost/uuid/uuid.hpp])])
+ 
+ 
+-# BOOST_PROGRAM_OPTIONS([PREFERRED-RT-OPT])
++# BOOST_PROGRAM_OPTIONS([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -----------------------------------------
+ # Look for Boost.Program_options.  For the documentation of PREFERRED-RT-OPT,
+ # see the documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Program_Options],
+ [BOOST_FIND_LIB([program_options], [$1],
+                 [boost/program_options.hpp],
+-                [boost::program_options::options_description d("test");])
++                [boost::program_options::options_description d("test");],
++                [], [], [$2])
+ ])# BOOST_PROGRAM_OPTIONS
+ 
+ 
+@@ -928,7 +1227,7 @@ boost_python_save_$1=$$1
+ $1="$$1 $BOOST_PYTHON_$1"])
+ 
+ 
+-# BOOST_PYTHON([PREFERRED-RT-OPT])
++# BOOST_PYTHON([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # --------------------------------
+ # Look for Boost.Python.  For the documentation of PREFERRED-RT-OPT,
+ # see the documentation of BOOST_FIND_LIB above.
+@@ -939,7 +1238,7 @@ _BOOST_PYTHON_CONFIG([LIBS],      [libs])
+ m4_pattern_allow([^BOOST_PYTHON_MODULE$])dnl
+ BOOST_FIND_LIBS([python], [python python3], [$1],
+                 [boost/python.hpp],
+-                [], [BOOST_PYTHON_MODULE(empty) {}])
++                [], [BOOST_PYTHON_MODULE(empty) {}], [], [$2])
+ CPPFLAGS=$boost_python_save_CPPFLAGS
+ LDFLAGS=$boost_python_save_LDFLAGS
+ LIBS=$boost_python_save_LIBS
+@@ -953,18 +1252,26 @@ BOOST_DEFUN([Ref],
+ [BOOST_FIND_HEADER([boost/ref.hpp])])
+ 
+ 
+-# BOOST_REGEX([PREFERRED-RT-OPT])
++# BOOST_REGEX([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # -------------------------------
+ # Look for Boost.Regex.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Regex],
+ [BOOST_FIND_LIB([regex], [$1],
+                 [boost/regex.hpp],
+-                [boost::regex exp("*"); boost::regex_match("foo", exp);])
++                [boost::regex exp("*"); boost::regex_match("foo", exp);],
++                [], [], [$2])
+ ])# BOOST_REGEX
+ 
+ 
+-# BOOST_SERIALIZATION([PREFERRED-RT-OPT])
++# BOOST_SCOPE_EXIT()
++# ------------
++# Look for Boost.ScopeExit.
++BOOST_DEFUN([SCOPE_EXIT],
++[BOOST_FIND_HEADER([boost/scope_exit.hpp])])
++
++
++# BOOST_SERIALIZATION([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ---------------------------------------
+ # Look for Boost.Serialization.  For the documentation of PREFERRED-RT-OPT, see
+ # the documentation of BOOST_FIND_LIB above.
+@@ -972,18 +1279,20 @@ BOOST_DEFUN([Serialization],
+ [BOOST_FIND_LIB([serialization], [$1],
+                 [boost/archive/text_oarchive.hpp],
+                 [std::ostream* o = 0; // Cheap way to get an ostream...
+-                boost::archive::text_oarchive t(*o);])
++                boost::archive::text_oarchive t(*o);],
++                [], [], [$2])
+ ])# BOOST_SERIALIZATION
+ 
+ 
+-# BOOST_SIGNALS([PREFERRED-RT-OPT])
++# BOOST_SIGNALS([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ---------------------------------
+ # Look for Boost.Signals.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+ BOOST_DEFUN([Signals],
+ [BOOST_FIND_LIB([signals], [$1],
+                 [boost/signal.hpp],
+-                [boost::signal<void ()> s;])
++                [boost::signal<void ()> s;],
++                [], [], [$2])
+ ])# BOOST_SIGNALS
+ 
+ 
+@@ -1019,19 +1328,24 @@ BOOST_DEFUN([String_Algo],
+ ])
+ 
+ 
+-# BOOST_SYSTEM([PREFERRED-RT-OPT])
++# BOOST_SYSTEM([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # --------------------------------
+ # Look for Boost.System.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.  This library was introduced in Boost
+-# 1.35.0.
++# 1.35.0 and is header only since 1.70.
+ BOOST_DEFUN([System],
+-[BOOST_FIND_LIB([system], [$1],
++[
++if test $boost_major_version -ge 170; then
++  BOOST_FIND_HEADER([boost/system/error_code.hpp])
++else
++  BOOST_FIND_LIB([system], [$1],
+                 [boost/system/error_code.hpp],
+-                [boost::system::error_code e; e.clear();])
++                [boost::system::error_code e; e.clear();], [], [], [$2])
++fi
+ ])# BOOST_SYSTEM
+ 
+ 
+-# BOOST_TEST([PREFERRED-RT-OPT])
++# BOOST_TEST([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ------------------------------
+ # Look for Boost.Test.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+@@ -1041,11 +1355,11 @@ BOOST_FIND_LIB([unit_test_framework], [$1],
+                [boost/test/unit_test.hpp], [BOOST_CHECK(2 == 2);],
+                [using boost::unit_test::test_suite;
+                test_suite* init_unit_test_suite(int argc, char ** argv)
+-               { return NULL; }])
++               { return NULL; }], [], [$2])
+ ])# BOOST_TEST
+ 
+ 
+-# BOOST_THREAD([PREFERRED-RT-OPT])
++# BOOST_THREAD([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ---------------------------------
+ # Look for Boost.Thread.  For the documentation of PREFERRED-RT-OPT, see the
+ # documentation of BOOST_FIND_LIB above.
+@@ -1059,7 +1373,7 @@ boost_thread_save_LDFLAGS=$LDFLAGS
+ boost_thread_save_CPPFLAGS=$CPPFLAGS
+ # Link-time dependency from thread to system was added as of 1.49.0.
+ if test $boost_major_version -ge 149; then
+-BOOST_SYSTEM([$1])
++BOOST_SYSTEM([$1], [$2])
+ fi # end of the Boost.System check.
+ m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl
+ LIBS="$LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag"
+@@ -1078,7 +1392,7 @@ if test $boost_major_version -lt 148; then
+ fi
+ BOOST_FIND_LIBS([thread], [thread$boost_thread_lib_ext],
+                 [$1],
+-                [boost/thread.hpp], [boost::thread t; boost::mutex m;])
++                [boost/thread.hpp], [boost::thread t; boost::mutex m;], [], [], [$2])
+ 
+ case $host_os in
+   (*mingw*) boost_thread_w32_socket_link=-lws2_32;;
+@@ -1154,7 +1468,7 @@ BOOST_FIND_HEADER([boost/ptr_container/ptr_map.hpp])
+ ])# BOOST_POINTER_CONTAINER
+ 
+ 
+-# BOOST_WAVE([PREFERRED-RT-OPT])
++# BOOST_WAVE([PREFERRED-RT-OPT], [ERROR_ON_UNUSABLE])
+ # ------------------------------
+ # NOTE: If you intend to use Wave/Spirit with thread support, make sure you
+ # call BOOST_THREAD first.
+@@ -1172,7 +1486,7 @@ LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS $BOOST_FILESYSTEM_LDFLAGS \
+ $BOOST_DATE_TIME_LDFLAGS $BOOST_THREAD_LDFLAGS"
+ BOOST_FIND_LIB([wave], [$1],
+                 [boost/wave.hpp],
+-                [boost::wave::token_id id; get_token_name(id);])
++                [boost::wave::token_id id; get_token_name(id);], [], [], [$2])
+ LIBS=$boost_wave_save_LIBS
+ LDFLAGS=$boost_wave_save_LDFLAGS
+ ])# BOOST_WAVE
+@@ -1240,10 +1554,11 @@ AC_CACHE_CHECK([for the flags needed to use pthreads], [boost_cv_pthread_flag],
+                            -pthreads -mthreads -lpthread --thread-safe -mt";;
+   esac
+   # Generate the test file.
+-  AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <pthread.h>],
+-    [pthread_t th; pthread_join(th, 0);
+-    pthread_attr_init(0); pthread_cleanup_push(0, 0);
+-    pthread_create(0,0,0,0); pthread_cleanup_pop(0);])])
++  AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <pthread.h>
++    void *f(void*){ return 0; }],
++    [pthread_t th; pthread_create(&th,0,f,0); pthread_join(th,0);
++    pthread_attr_t attr; pthread_attr_init(&attr); pthread_cleanup_push(0, 0);
++    pthread_cleanup_pop(0);])])
+   for boost_pthread_flag in '' $boost_pthread_flags; do
+     boost_pthread_ok=false
+ dnl Re-use the test file already generated.
+@@ -1305,6 +1620,79 @@ if test x$boost_cv_inc_path != xno; then
+   # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
+   # the same defines as GCC's).
+   for i in \
++    "defined __clang__ && __clang_major__ == 14 && __clang_minor__ == 0 @ clang140" \
++    "defined __clang__ && __clang_major__ == 13 && __clang_minor__ == 0 @ clang130" \
++    "defined __clang__ && __clang_major__ == 12 && __clang_minor__ == 0 @ clang120" \
++    "defined __clang__ && __clang_major__ == 11 && __clang_minor__ == 1 @ clang111" \
++    "defined __clang__ && __clang_major__ == 11 && __clang_minor__ == 0 @ clang110" \
++    "defined __clang__ && __clang_major__ == 10 && __clang_minor__ == 0 @ clang100" \
++    "defined __clang__ && __clang_major__ == 9 && __clang_minor__ == 0 @ clang90" \
++    "defined __clang__ && __clang_major__ == 8 && __clang_minor__ == 0 @ clang80" \
++    "defined __clang__ && __clang_major__ == 7 && __clang_minor__ == 0 @ clang70" \
++    "defined __clang__ && __clang_major__ == 6 && __clang_minor__ == 0 @ clang60" \
++    "defined __clang__ && __clang_major__ == 5 && __clang_minor__ == 0 @ clang50" \
++    "defined __clang__ && __clang_major__ == 4 && __clang_minor__ == 0 @ clang40" \
++    "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 9 @ clang39" \
++    "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 8 @ clang38" \
++    "defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 7 @ clang37" \
++    _BOOST_mingw_test(11, 2) \
++    _BOOST_gcc_test(11, 2) \
++    _BOOST_mingw_test(11, 1) \
++    _BOOST_gcc_test(11, 1) \
++    _BOOST_mingw_test(10, 3) \
++    _BOOST_gcc_test(10, 3) \
++    _BOOST_mingw_test(10, 2) \
++    _BOOST_gcc_test(10, 2) \
++    _BOOST_mingw_test(10, 1) \
++    _BOOST_gcc_test(10, 1) \
++    _BOOST_mingw_test(9, 3) \
++    _BOOST_gcc_test(9, 3) \
++    _BOOST_mingw_test(9, 2) \
++    _BOOST_gcc_test(9, 2) \
++    _BOOST_mingw_test(9, 1) \
++    _BOOST_gcc_test(9, 1) \
++    _BOOST_mingw_test(9, 0) \
++    _BOOST_gcc_test(9, 0) \
++    _BOOST_mingw_test(8, 5) \
++    _BOOST_gcc_test(8, 5) \
++    _BOOST_mingw_test(8, 4) \
++    _BOOST_gcc_test(8, 4) \
++    _BOOST_mingw_test(8, 3) \
++    _BOOST_gcc_test(8, 3) \
++    _BOOST_mingw_test(8, 2) \
++    _BOOST_gcc_test(8, 2) \
++    _BOOST_mingw_test(8, 1) \
++    _BOOST_gcc_test(8, 1) \
++    _BOOST_mingw_test(8, 0) \
++    _BOOST_gcc_test(8, 0) \
++    _BOOST_mingw_test(7, 4) \
++    _BOOST_gcc_test(7, 4) \
++    _BOOST_mingw_test(7, 3) \
++    _BOOST_gcc_test(7, 3) \
++    _BOOST_mingw_test(7, 2) \
++    _BOOST_gcc_test(7, 2) \
++    _BOOST_mingw_test(7, 1) \
++    _BOOST_gcc_test(7, 1) \
++    _BOOST_mingw_test(7, 0) \
++    _BOOST_gcc_test(7, 0) \
++    _BOOST_mingw_test(6, 5) \
++    _BOOST_gcc_test(6, 5) \
++    _BOOST_mingw_test(6, 4) \
++    _BOOST_gcc_test(6, 4) \
++    _BOOST_mingw_test(6, 3) \
++    _BOOST_gcc_test(6, 3) \
++    _BOOST_mingw_test(6, 2) \
++    _BOOST_gcc_test(6, 2) \
++    _BOOST_mingw_test(6, 1) \
++    _BOOST_gcc_test(6, 1) \
++    _BOOST_mingw_test(6, 0) \
++    _BOOST_gcc_test(6, 0) \
++    _BOOST_mingw_test(5, 5) \
++    _BOOST_gcc_test(5, 5) \
++    _BOOST_mingw_test(5, 4) \
++    _BOOST_gcc_test(5, 4) \
++    _BOOST_mingw_test(5, 3) \
++    _BOOST_gcc_test(5, 3) \
+     _BOOST_mingw_test(5, 2) \
+     _BOOST_gcc_test(5, 2) \
+     _BOOST_mingw_test(5, 1) \
+-- 
+2.47.3
+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/7 package/jwt-cpp: new package

In reply to Bernd Kuhls

Needed for domoticz >= 2025.1:
https://github.com/domoticz/domoticz/commit/b30d9e9436ad428a2cbfd1fbb273461bdbf50a82

---
Gitlab pipelines passed for this patch:
https://gitlab.com/bkuhls/buildroot/-/commits/d1721738f6b10ea02053da6f6f6eb3dc05a2364c

 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/jwt-cpp/Config.in    | 12 ++++++++++++
 package/jwt-cpp/jwt-cpp.hash |  4 ++++
 package/jwt-cpp/jwt-cpp.mk   | 18 ++++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 package/jwt-cpp/Config.in
 create mode 100644 package/jwt-cpp/jwt-cpp.hash
 create mode 100644 package/jwt-cpp/jwt-cpp.mk
DEVELOPERS +1 -0
index 97eb2d9cac..faec7489e2 100644
@@ -408,6 +408,7 @@ F:	package/intel-mediasdk/
 F:	package/intel-microcode/
 F:	package/intel-vpl-gpu-rt/
 F:	package/jsoncpp/
+F:	package/jwt-cpp/
 F:	package/kodi*
 F:	package/lame/
 F:	package/lcms2/
package/Config.in +1 -0
index aa94d44eca..262d7c4f57 100644
@@ -1908,6 +1908,7 @@ menu "JSON/XML"
 	source "package/json-for-modern-cpp/Config.in"
 	source "package/json-glib/Config.in"
 	source "package/jsoncpp/Config.in"
+	source "package/jwt-cpp/Config.in"
 	source "package/libfastjson/Config.in"
 	source "package/libjson/Config.in"
 	source "package/libroxml/Config.in"
package/jwt-cpp/Config.in new file +12 -0
new file mode 100644
index 0000000000..3feadfe3ec
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_JWT_CPP
+	bool "jwt-cpp"
+	depends on BR2_INSTALL_LIBSTDCPP
+	select BR2_PACKAGE_OPENSSL
+	help
+	  A header only library for creating and validating json web
+	  tokens in c++
+
+	  https://thalhammer.github.io/jwt-cpp/
+
+comment "jwt-cpp needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/jwt-cpp/jwt-cpp.hash new file +4 -0
new file mode 100644
index 0000000000..38df18ced7
@@ -0,0 +1,4 @@
+# From https://github.com/Thalhammer/jwt-cpp/releases/tag/v0.7.2
+sha256  7c1b4f767bdd14f727f6114d9e35b761f10d00d6a27ef7650ee8c628f08df27c  jwt-cpp-v0.7.2.tar.gz
+# Locally calculated
+sha256  35c2d7d6824a1e1ed2b266ec334b7862726ae593855c3cfa68b952bb75f082c4  LICENSE
package/jwt-cpp/jwt-cpp.mk new file +18 -0
new file mode 100644
index 0000000000..27e7d23691
@@ -0,0 +1,18 @@
+################################################################################
+#
+# jwt-cpp
+#
+################################################################################
+
+JWT_CPP_VERSION = 0.7.2
+JWT_CPP_SITE = https://github.com/Thalhammer/jwt-cpp/releases/download/v$(JWT_CPP_VERSION)
+JWT_CPP_SOURCE = jwt-cpp-v$(JWT_CPP_VERSION).tar.gz
+JWT_CPP_LICENSE = MIT
+JWT_CPP_LICENSE_FILES = LICENSE
+JWT_CPP_INSTALL_STAGING = YES
+JWT_CPP_DEPENDENCIES = openssl
+JWT_CPP_CONF_OPTS = \
+	-DJWT_BUILD_EXAMPLES=OFF \
+	-DJWT_BUILD_TESTS=OFF
+
+$(eval $(cmake-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 4/7 package/domoticz: bump version to 2026.3

In reply to Bernd Kuhls

Added new dependency jwt-cpp needed since 2025.1:
https://github.com/domoticz/domoticz/commit/b30d9e9436ad428a2cbfd1fbb273461bdbf50a82

Added _EXTRA_DOWNLOAD for libwebem after its split from domoticz:
https://github.com/domoticz/domoticz/commit/7de4834e9959e8a9a21a2b82bb7700ea5af6e618
to avoid fetching git submodules. Use version number from upstream repo:
https://github.com/domoticz/domoticz/tree/2026.3/extern

Raised minimum gcc version because libwebem depends on c++17:
https://github.com/domoticz/libwebem/blob/master/README.md

Removed configure option USE_BUILTIN_MQTT due to its upstream removal:
https://github.com/domoticz/domoticz/commit/be95eec094bf524c1ab011eebcd797d3b19b17fc

Link to libatomic to fix a build error

output/per-package/domoticz/host/opt/ext-toolchain/bin/../lib/gcc/arc-buildroot-linux-uclibc/15.3.0/../../../../arc-buildroot-linux-uclibc/bin/ld:
CMakeFiles/domoticz.dir/hardware/Matter.cpp.o:
undefined reference to symbol '__atomic_load_8@@LIBATOMIC_1.0'

detected by the Gitlab pipelines which is introduced by upstream commit
https://github.com/domoticz/domoticz/commit/ec5488a7df963af4b260a92bfecea53edc20b136
that added hardware/Matter.cpp in version 2026.2.

---
Gitlab pipelines passed for this patch:
https://gitlab.com/bkuhls/buildroot/-/commits/3bf0746866cb1710fab45e7c57a3dc5e0ad9334c

 package/domoticz/Config.in     |  7 ++++---
 package/domoticz/domoticz.hash |  3 ++-
 package/domoticz/domoticz.mk   | 27 +++++++++++++++++++++++----
 3 files changed, 29 insertions(+), 8 deletions(-)
package/domoticz/Config.in +4 -3
index a0e69a7601..2af63baecf 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_DOMOTICZ
 	bool "domoticz"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS
-	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6 # C++14
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
 	# pthread_condattr_setclock
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # mosquitto
 	depends on BR2_INSTALL_LIBSTDCPP
@@ -17,6 +17,7 @@ config BR2_PACKAGE_DOMOTICZ
 	select BR2_PACKAGE_BOOST_THREAD
 	select BR2_PACKAGE_CEREAL
 	select BR2_PACKAGE_JSONCPP
+	select BR2_PACKAGE_JWT_CPP
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_MINIZIP_ZLIB
 	select BR2_PACKAGE_MOSQUITTO
@@ -32,11 +33,11 @@ config BR2_PACKAGE_DOMOTICZ
 
 	  http://domoticz.com
 
-comment "domoticz needs lua 5.3 and a toolchain w/ C++, gcc >= 6, NPTL, wchar, dynamic library"
+comment "domoticz needs lua 5.3 and a toolchain w/ C++, gcc >= 7, NPTL, wchar, dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
 	depends on !BR2_INSTALL_LIBSTDCPP || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_6 || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
 		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
 		!BR2_USE_WCHAR || BR2_STATIC_LIBS || \
 		!BR2_PACKAGE_LUA_5_3
package/domoticz/domoticz.hash +2 -1
index ae86a67b79..fc3904ade7 100644
@@ -1,3 +1,4 @@
 # Locally computed:
-sha256  d87113d7cacd0b52b9126fcc1ef24e140a4f7042d5bc6262e86e4b4752f5cf38  domoticz-2024.4.tar.gz
+sha256  10053191b4f6becdf244d2a416b9e655c91d357b51dd8280832c6e36f7d5d5c7  domoticz-2026.3.tar.gz
+sha256  937e31bfb4b414bb33e70cad1403afd023dfff6cebba3213ec62a9c91525dcab  libwebem-9126af0ce3456c24b936dfb20d1b5a8bdb797104.tar.gz
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  License.txt
package/domoticz/domoticz.mk +23 -4
index 95d3335adb..5387076b97 100644
@@ -4,16 +4,30 @@
 #
 ################################################################################
 
-DOMOTICZ_VERSION = 2024.4
+DOMOTICZ_VERSION = 2026.3
 DOMOTICZ_SITE = $(call github,domoticz,domoticz,$(DOMOTICZ_VERSION))
 DOMOTICZ_LICENSE = GPL-3.0
 DOMOTICZ_LICENSE_FILES = License.txt
 DOMOTICZ_CPE_ID_VENDOR = domoticz
+
+DOMOTICZ_LIBWEBEM_VERSION = 9126af0ce3456c24b936dfb20d1b5a8bdb797104
+DOMOTICZ_EXTRA_DOWNLOADS = \
+	$(call github,domoticz,libwebem,$(DOMOTICZ_LIBWEBEM_VERSION))/libwebem-$(DOMOTICZ_LIBWEBEM_VERSION).tar.gz
+
+define DOMOTICZ_INSTALL_SUBPROJECTS
+	rm -rf $(@D)/extern/libwebem
+	mkdir -p $(@D)/extern/libwebem
+	$(TAR) --strip-components=1 -C $(@D)/extern/libwebem \
+		-xf $(DOMOTICZ_DL_DIR)/libwebem-$(DOMOTICZ_LIBWEBEM_VERSION).tar.gz
+endef
+DOMOTICZ_POST_EXTRACT_HOOKS += DOMOTICZ_INSTALL_SUBPROJECTS
+
 DOMOTICZ_DEPENDENCIES = \
 	boost \
 	cereal \
 	host-pkgconf \
 	jsoncpp \
+	jwt-cpp \
 	libcurl \
 	lua \
 	minizip-zlib \
@@ -25,6 +39,11 @@ DOMOTICZ_DEPENDENCIES = \
 # Disable precompiled header as it needs cmake >= 3.16
 DOMOTICZ_CONF_OPTS = -DUSE_PRECOMPILED_HEADER=OFF
 
+# Uses __atomic_load_8
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+DOMOTICZ_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
+endif
+
 # Due to the dependency on mosquitto, domoticz depends on
 # !BR2_STATIC_LIBS so set USE_STATIC_BOOST and USE_OPENSSL_STATIC to OFF
 DOMOTICZ_CONF_OPTS += \
@@ -32,12 +51,12 @@ DOMOTICZ_CONF_OPTS += \
 	-DUSE_OPENSSL_STATIC=OFF
 
 # Do not use any built-in libraries which are enabled by default for
-# jsoncpp, fmt, minizip, sqlite and mqtt
+# jsoncpp, jwt-cpp, minizip and sqlite
 DOMOTICZ_CONF_OPTS += \
 	-DUSE_BUILTIN_JSONCPP=OFF \
+	-DUSE_BUILTIN_JWTCPP=OFF \
 	-DUSE_BUILTIN_MINIZIP=OFF \
-	-DUSE_BUILTIN_SQLITE=OFF \
-	-DUSE_BUILTIN_MQTT=OFF
+	-DUSE_BUILTIN_SQLITE=OFF
 
 ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
 DOMOTICZ_DEPENDENCIES += libexecinfo
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 5/7 package/libtorrent-rasterbar: bump version to 2.1.1

In reply to Bernd Kuhls

https://github.com/arvidn/libtorrent/blob/v2.1.1/ChangeLog

Switched to sha256 tarball hash provided by upstream.

Updated license hash due to copyright year bumps:
https://github.com/arvidn/libtorrent/commit/d3f7a363c2a413f4b3b4ddfd6cbe5a3208016b1c
https://github.com/arvidn/libtorrent/commit/fb2ab9946a130df7b5ee290ec363aa2214256e00

Added patch 0001 to fix a build error with gcc-9.3.0 detected by the Gitlab pipelines which would be introduced by this bump.

Raised minimum gcc version to 8 to fix a build error detected by the
Gitlab pipelines which would be introduced by this bump:
/builds/bkuhls/buildroot/br-test-pkg/bootlin-aarch64-glibc-old/build/libtorrent-rasterbar-2.1.1/include/libtorrent/string_view.hpp:13:23:
fatal error: string_view: No such file or directory

Added dependency to BR2_USE_MMU to fix a build error detected by the
Gitlab pipelines which would be introduced by this bump:
/builds/bkuhls/buildroot/br-test-pkg/bootlin-armv7m-uclibc/build/libtorrent-rasterbar-2.1.1/src/mmap.cpp:283:19:
error: ‘::madvise’ has not been declared; did you mean ‘advise’?

Switched build system to cmake due to upstream removal of autotools:
https://github.com/arvidn/libtorrent/commit/d7db28663d3b6827c2fa8d5a44fad7c73828108a

Added new configure option webtorrent
https://github.com/arvidn/libtorrent/commit/4ef8be818fea440c921c39e5f90e5818a4749086
to disable the dependency to OpenSSL for libdatachannel:
https://github.com/paullouisageneau/libdatachannel/blob/a02b751917ac8afc8c58dc6f4461d25ff9465d48/CMakeLists.txt#L452
which was added to libtorrent-rasterbar in version 2.1.0:
https://github.com/arvidn/libtorrent/commit/8d7d82b0330f16297b21e77a5d7c355813687e16

---
Gitlab pipelines passed for this patch:
https://gitlab.com/bkuhls/buildroot/-/commits/b77a022a44f3d155462477818f183e16f46593cb

 .../0001-fix-more-c-17-that-made-it-in.patch  | 53 +++++++++++++++++++
 package/libtorrent-rasterbar/Config.in        |  8 +--
 .../libtorrent-rasterbar.hash                 |  5 +-
 .../libtorrent-rasterbar.mk                   | 22 +++-----
 4 files changed, 67 insertions(+), 21 deletions(-)
 create mode 100644 package/libtorrent-rasterbar/0001-fix-more-c-17-that-made-it-in.patch
package/libtorrent-rasterbar/0001-fix-more-c-17-that-made-it-in.patch new file +53 -0
new file mode 100644
index 0000000000..afce75b9ff
@@ -0,0 +1,53 @@
+From 2638789b7048e17aba7cc8674305f36bd349c795 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Mon, 14 Sep 2026 17:31:24 +0200
+Subject: [PATCH] fix more c++17 that made it in
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Patch was inspired by https://github.com/arvidn/libtorrent/pull/4805
+and fixes a build error with gcc-9.3.0
+
+buildroot/output/build/libtorrent-rasterbar-2.1.1/src/torrent_info.cpp:855:16:
+ error: function ‘libtorrent::torrent_info& libtorrent::torrent_info::operator=(libtorrent::torrent_info&&)’
+ defaulted on its redeclaration with an exception-specification that
+ differs from the implicit exception-specification ‘’
+
+Upstream: https://github.com/arvidn/libtorrent/pull/8869
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ include/libtorrent/torrent_info.hpp | 2 +-
+ src/torrent_info.cpp                | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp
+index 8843179a2..add61c2d7 100644
+--- a/include/libtorrent/torrent_info.hpp
++++ b/include/libtorrent/torrent_info.hpp
+@@ -213,7 +213,7 @@ TORRENT_VERSION_NAMESPACE_4
+ 
+ 		// hidden
+ 		torrent_info& operator=(torrent_info const&) = delete;
+-		torrent_info& operator=(torrent_info&&) noexcept;
++		torrent_info& operator=(torrent_info&&);
+ 
+ 		// The file_storage object contains the information on how to map the
+ 		// pieces to files. It is separated from the torrent_info object as the
+diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp
+index 0a4b90b04..6fe584c39 100644
+--- a/src/torrent_info.cpp
++++ b/src/torrent_info.cpp
+@@ -856,7 +856,7 @@ namespace {
+ TORRENT_VERSION_NAMESPACE_4
+ 
+ 	torrent_info::torrent_info(torrent_info const&) = default;
+-	torrent_info& torrent_info::operator=(torrent_info&&) noexcept = default;
++	torrent_info& torrent_info::operator=(torrent_info&&) = default;
+ 
+ #if TORRENT_ABI_VERSION < 4
+ 	void torrent_info::remap_files(file_storage const& f)
+-- 
+2.47.3
+
package/libtorrent-rasterbar/Config.in +5 -3
index 459edc1be5..d78f9ac206 100644
@@ -1,8 +1,9 @@
-comment "libtorrent-rasterbar needs a toolchain w/ C++, threads, wchar, gcc >= 4.9"
+comment "libtorrent-rasterbar needs a toolchain w/ C++, threads, wchar, gcc >= 8"
 	depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
+	depends on BR2_USE_MMU
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_8
 
 comment "libtorrent-rasterbar needs exception_ptr"
 	depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
@@ -11,9 +12,10 @@ comment "libtorrent-rasterbar needs exception_ptr"
 config BR2_PACKAGE_LIBTORRENT_RASTERBAR
 	bool "libtorrent-rasterbar"
 	depends on BR2_INSTALL_LIBSTDCPP # boost
-	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # string_view
 	depends on BR2_TOOLCHAIN_HAS_THREADS # boost
 	depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
+	depends on BR2_USE_MMU # madvise()
 	depends on BR2_USE_WCHAR # boost
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
 	select BR2_PACKAGE_BOOST
package/libtorrent-rasterbar/libtorrent-rasterbar.hash +3 -2
index 6b6175d9de..19f11665e6 100644
@@ -1,3 +1,4 @@
+# From https://github.com/arvidn/libtorrent/releases/tag/v2.1.1
+sha256  0f163516ecef2e3331500266751de3098835a3c3ae0c2290448046c632bc0e93  libtorrent-rasterbar-2.1.1.tar.gz
 # Locally calculated
-sha256  ccbf8e8c21dc81635de95166b498922b4725f9725a23b2cfe2a6b2fead6fb9fc  libtorrent-rasterbar-1.2.20.tar.gz
-sha256  f3a5dd1558cce616b12edad521427ec8976ce2bb0af33f7f359cfa648bf55ad8  COPYING
+sha256  f4b492afbde73d2f4e051050a619622876a13b77e7b8b6ea3ec2868a6929b31b  COPYING
package/libtorrent-rasterbar/libtorrent-rasterbar.mk +6 -16
index 2cc24c487a..d71907b1be 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBTORRENT_RASTERBAR_VERSION = 1.2.20
+LIBTORRENT_RASTERBAR_VERSION = 2.1.1
 LIBTORRENT_RASTERBAR_SITE = \
 	https://github.com/arvidn/libtorrent/releases/download/v$(LIBTORRENT_RASTERBAR_VERSION)
 LIBTORRENT_RASTERBAR_LICENSE = BSD-3-Clause
@@ -13,10 +13,7 @@ LIBTORRENT_RASTERBAR_CPE_ID_VENDOR = libtorrent
 LIBTORRENT_RASTERBAR_CPE_ID_PRODUCT = libtorrent
 LIBTORRENT_RASTERBAR_DEPENDENCIES = host-pkgconf boost
 LIBTORRENT_RASTERBAR_INSTALL_STAGING = YES
-LIBTORRENT_RASTERBAR_CONF_OPTS = \
-	--with-boost-libdir=$(STAGING_DIR)/usr/lib \
-	--disable-invariant-checks
-LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11
+LIBTORRENT_RASTERBAR_CXXFLAGS = $(TARGET_CXXFLAGS)
 
 # Internal error, aborting at dwarf2cfi.c:2802 in connect_traces
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864
@@ -28,20 +25,13 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
 LIBTORRENT_RASTERBAR_CXXFLAGS += -O0
 endif
 
-LIBTORRENT_RASTERBAR_CONF_OPTS += CXXFLAGS="$(LIBTORRENT_RASTERBAR_CXXFLAGS)"
-
-ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
-LIBTORRENT_RASTERBAR_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
-LIBTORRENT_RASTERBAR_CONF_OPTS += --with-libiconv
-else
-LIBTORRENT_RASTERBAR_CONF_OPTS += --without-libiconv
-endif
+LIBTORRENT_RASTERBAR_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBTORRENT_RASTERBAR_CXXFLAGS)"
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBTORRENT_RASTERBAR_DEPENDENCIES += openssl
-LIBTORRENT_RASTERBAR_CONF_OPTS += --enable-encryption
+LIBTORRENT_RASTERBAR_CONF_OPTS += -Dencryption=ON -Dwebtorrent=ON
 else
-LIBTORRENT_RASTERBAR_CONF_OPTS += --disable-encryption
+LIBTORRENT_RASTERBAR_CONF_OPTS += -Dencryption=OFF -Dwebtorrent=OFF
 endif
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 6/7 package/boost: remove dependencies on Boost.DateTime

In reply to Bernd Kuhls

From: Michael Nosthoff <[email protected]>

Boost.DateTime is header-only since 1.77.0
The Boost Release Notes[0] didn't mention it but it was introduced in the documentation of DateTime in this commit: [1]

This was bumped in buildroot in d39d8f7cee9b4634e6f490020204f63fae419e8e

So analog to the "header-only" move of Boost.System we have now to gradually phase out the dependencies on this library. Ideally before the stub is removed as it now happened for Boost.System in 1.89.0.

[0] https://www.boost.org/releases/1.77.0/
[1] https://github.com/boostorg/date_time/commit/33dc6136f193a100c753c819694d6d11e9ab4123

---
Downloaded from
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

 package/boost/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/boost/Config.in +3 -2
index a9ab4836b5..7b78345798 100644
@@ -95,6 +95,9 @@ config BR2_PACKAGE_BOOST_DATE_TIME
 	  A set of date-time libraries based on generic programming
 	  concepts.
 
+	  This library is header only since boost 1.77.0. Building a
+	  stub library is still supported for backward compatibility.
+
 config BR2_PACKAGE_BOOST_EXCEPTION
 	bool "boost-exception"
 	help
@@ -200,7 +203,6 @@ config BR2_PACKAGE_BOOST_LOG
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread
 	select BR2_PACKAGE_BOOST_ATOMIC
-	select BR2_PACKAGE_BOOST_DATE_TIME
 	select BR2_PACKAGE_BOOST_FILESYSTEM
 	select BR2_PACKAGE_BOOST_REGEX
 	select BR2_PACKAGE_BOOST_THREAD
@@ -359,7 +361,6 @@ config BR2_PACKAGE_BOOST_WAVE
 	depends on !BR2_m68k_cf
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-thread
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread
-	select BR2_PACKAGE_BOOST_DATE_TIME
 	select BR2_PACKAGE_BOOST_FILESYSTEM
 	select BR2_PACKAGE_BOOST_THREAD
 	help
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH 7/7 package/boost: bump version to 1.92.0

In reply to Bernd Kuhls

https://www.boost.org/releases/1.92.0/
https://www.boost.org/releases/1.91.0/
https://www.boost.org/releases/1.90.0/
https://www.boost.org/releases/1.89.0/
https://www.boost.org/releases/1.88.0/
https://www.boost.org/releases/1.87.0/
https://www.boost.org/releases/1.86.0/
https://www.boost.org/releases/1.85.0/
https://www.boost.org/releases/1.84.0/

Removed patch which is included in this release.

Added patch 0001 to fix a build error introduced by upstream commit
https://github.com/boostorg/process/commit/406cd3ecf36c19b94b4376241a4b3b43d1eae308
first included in version 1.85.0.

Added patches 0002-0005 to fix more build errors detected by the Gitlab pipelines.

Updated supported archs according to
https://www.boost.org/doc/libs/1_92_0/libs/context/doc/html/context/architectures.html

sparc64 passed Gitlab pipeline:
https://gitlab.com/bkuhls/buildroot/-/jobs/16491117298

loongarch64 passed this defconfig:

BR2_loongarch64=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_BOOST=y
BR2_PACKAGE_BOOST_CONTRACT=y
BR2_PACKAGE_BOOST_COROUTINE=y
BR2_PACKAGE_BOOST_DATE_TIME=y
BR2_PACKAGE_BOOST_EXCEPTION=y
BR2_PACKAGE_BOOST_FIBER=y
BR2_PACKAGE_BOOST_GRAPH=y
BR2_PACKAGE_BOOST_GRAPH_PARALLEL=y
BR2_PACKAGE_BOOST_IOSTREAMS=y
BR2_PACKAGE_BOOST_JSON=y
BR2_PACKAGE_BOOST_LOCALE=y
BR2_PACKAGE_BOOST_LOG=y
BR2_PACKAGE_BOOST_MATH=y
BR2_PACKAGE_BOOST_MPI=y
BR2_PACKAGE_BOOST_NOWIDE=y
BR2_PACKAGE_BOOST_PROGRAM_OPTIONS=y
BR2_PACKAGE_BOOST_STACKTRACE=y
BR2_PACKAGE_BOOST_SYSTEM=y
BR2_PACKAGE_BOOST_TEST=y
BR2_PACKAGE_BOOST_TIMER=y
BR2_PACKAGE_BOOST_TYPE_ERASURE=y
BR2_PACKAGE_BOOST_URL=y
BR2_PACKAGE_BOOST_WAVE=y

Updated module dependencies according to the Boost Dependency Report:
https://pdimov.github.io/boostdep-report/boost-1.92.0/module-overview.html

---
Gitlab pipelines passed for the Boost package:
https://gitlab.com/bkuhls/buildroot/-/commits/8b08b0a43ac540ad290c45969807d27ad846adbc

Gitlab pipelines for all packages using Boost reached the 3h timeout:
https://gitlab.com/bkuhls/buildroot/-/commits/0863ce2a34e0a09a9e6dcb95a215b95e0e095c14
The tested defconfig built locally.

 ...xit_code-guard-static_asserts-on-MIP.patch | 59 +++++++++++++++++
 .../0001-unordered-fix-copy-assign.patch      | 22 -------
 ...-for-duplicate-definition-of-SIGLOST.patch | 30 +++++++++
 package/boost/0003-Fix-build.patch            | 39 +++++++++++
 package/boost/0004-Fix-build.patch            | 40 ++++++++++++
 package/boost/0005-Fix-build.patch            | 64 +++++++++++++++++++
 package/boost/Config.in                       | 12 ++--
 package/boost/boost.hash                      |  4 +-
 package/boost/boost.mk                        |  2 +-
 9 files changed, 242 insertions(+), 30 deletions(-)
 create mode 100644 package/boost/0001-fix-process-v2-exit_code-guard-static_asserts-on-MIP.patch
 delete mode 100644 package/boost/0001-unordered-fix-copy-assign.patch
 create mode 100644 package/boost/0002-Add-check-for-duplicate-definition-of-SIGLOST.patch
 create mode 100644 package/boost/0003-Fix-build.patch
 create mode 100644 package/boost/0004-Fix-build.patch
 create mode 100644 package/boost/0005-Fix-build.patch
package/boost/0001-fix-process-v2-exit_code-guard-static_asserts-on-MIP.patch new file +59 -0
new file mode 100644
index 0000000000..3f96580e4e
@@ -0,0 +1,59 @@
+From 670ad64ea1f012bc06ed4d657e6b8a4b530abd82 Mon Sep 17 00:00:00 2001
+From: WXbet <[email protected]>
+Date: Sat, 1 Aug 2026 17:01:19 +0200
+Subject: [PATCH] fix: process/v2/exit_code: guard static_asserts on MIPS
+
+glibc 2.44 added sysdeps/unix/sysv/linux/mips/bits/waitstatus.h
+(commit c19cdbf66ff62a4578ac2117d43ebb306ae36aeb) which defines
+WIFSTOPPED and WIFSIGNALED as `static inline int` functions rather
+than macros so that MIPS's SIGRTMAX=127 special-case (status 0x7f)
+can be handled. Since those inline functions are not constexpr, the
+four static_assert lines guarding still_active fail to compile on
+MIPS with
+
+  error: non-constant condition for static assertion
+  error: call to non-'constexpr' function 'int __WIFSTOPPED(int)'
+
+whenever env.cpp (or any other TU pulling exit_code.hpp) is compiled.
+
+Earlier glibc versions used the generic macro-based header on MIPS
+too and Boost.Process compiled fine there. musl has taken the same
+approach for MIPS since 2018 (musl commit 41c632824c...); this is the
+same class of problem previously reported for is_running.hpp / musl
+in issue #48, which was fixed by the v1 rewrite but resurfaced in
+v2's exit_code.hpp.
+
+The asserts are compile-time sanity checks on Boost's own still_active
+constant (0x17f); the semantics on MIPS are unchanged (WIFSTOPPED
+returns true, the other three return false, as intended). Guard the
+block with `#ifndef __mips__` so the checks keep firing on every port
+where they can, and are skipped only on the one arch where glibc
+implements the underlying primitives as inline functions.
+
+Upstream: https://github.com/boostorg/process/pull/565
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ boost/process/v2/exit_code.hpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/boost/process/v2/exit_code.hpp b/boost/process/v2/exit_code.hpp
+index 24e51fa..b87c544 100644
+--- a/boost/process/v2/exit_code.hpp
++++ b/boost/process/v2/exit_code.hpp
+@@ -73,10 +73,12 @@ typedef int native_exit_code_type;
+ namespace detail
+ {
+ constexpr native_exit_code_type still_active = 0x17f;
++#ifndef __mips__
+ static_assert(WIFSTOPPED(still_active), "Expected still_active to indicate WIFSTOPPED");
+ static_assert(!WIFEXITED(still_active), "Expected still_active to not indicate WIFEXITED");
+ static_assert(!WIFSIGNALED(still_active), "Expected still_active to not indicate WIFSIGNALED");
+ static_assert(!WIFCONTINUED(still_active), "Expected still_active to not indicate WIFCONTINUED");
++#endif
+ }
+ 
+ inline bool process_is_running(int code)
+-- 
+2.47.3
+
package/boost/0001-unordered-fix-copy-assign.patch deleted +0 -22
deleted file mode 100644
index 670552535a..0000000000
@@ -1,22 +0,0 @@
-Upstream Patch for Unordered
-
-Prevent erroneous copying of groups data, update max load to properly propagate
-
-Signed-off-by: Michael Nosthoff <[email protected]>
-Upstream: https://github.com/boostorg/unordered/commit/067884a4e213352e7c81c441f1453c54735c39f3
-diff --git a/include/boost/unordered/detail/foa/core.hpp b/include/boost/unordered/detail/foa/core.hpp
-index 239d05d3..7ae9f2c8 100644
---- a/boost/unordered/detail/foa/core.hpp
-+++ b/boost/unordered/detail/foa/core.hpp
-@@ -1870,9 +1870,10 @@ private:
- 
-   void fast_copy_elements_from(const table_core& x)
-   {
--    if(arrays.elements){
-+    if(arrays.elements&&x.arrays.elements){
-       copy_elements_array_from(x);
-       copy_groups_array_from(x);
-+      size_ctrl.ml=std::size_t(x.size_ctrl.ml);
-       size_ctrl.size=std::size_t(x.size_ctrl.size);
-     }
-   }
package/boost/0002-Add-check-for-duplicate-definition-of-SIGLOST.patch new file +30 -0
new file mode 100644
index 0000000000..56bb9cacb1
@@ -0,0 +1,30 @@
+From ea71ce1995ca861b1bbfacf01ed0d2e5fea50237 Mon Sep 17 00:00:00 2001
+From: John Paul Adrian Glaubitz <[email protected]>
+Date: Tue, 17 Feb 2026 09:35:57 +0100
+Subject: [PATCH] Add check for duplicate definition of SIGLOST
+
+Closes #545
+
+Upstream: https://github.com/boostorg/process/commit/ea71ce1995ca861b1bbfacf01ed0d2e5fea50237
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ libs/process/src/error.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/process/src/error.cpp b/libs/process/src/error.cpp
+index 3427072..0c93fb3 100644
+--- a/libs/process/src/error.cpp
++++ b/libs/process/src/error.cpp
+@@ -112,7 +112,7 @@ struct exit_code_category final : public error_category
+ #            if defined(SIGKILL)
+                     case SIGKILL: return "SIGKILL:   Kill signal";
+ #            endif
+-#            if defined(SIGLOST)
++#            if defined(SIGLOST) && SIGLOST != SIGPWR
+                     case SIGLOST: return "SIGLOST:   File lock lost (unused)";
+ #            endif
+ #            if defined(SIGPIPE)
+-- 
+2.47.3
+
package/boost/0003-Fix-build.patch new file +39 -0
new file mode 100644
index 0000000000..10d81538f9
@@ -0,0 +1,39 @@
+From 22d487b7c02fab4e9633b8d9d3fada15c9ca70d0 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sun, 13 Sep 2026 23:53:34 +0200
+Subject: [PATCH] Fix build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In file included from ./boost/charconv/detail/fast_float/fast_float.hpp:11,
+ from output/build/boost-1.92.0/libs/charconv/build/../src/from_chars.cpp:16:
+./boost/charconv/detail/fast_float/float_common.hpp:349:20: error: conflicting declaration ‘constexpr const boost::uint64_t boost::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa []’ [-Wtemplate-body]
+  349 | constexpr uint64_t binary_format_lookup_tables<double, U>::max_mantissa[];
+
+./boost/charconv/detail/fast_float/float_common.hpp:318:34: note: previous declaration as ‘constexpr const uint64_t boost::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa [24]’
+  318 |   static constexpr std::uint64_t max_mantissa[] = {
+
+Upstream: https://github.com/boostorg/charconv/pull/307
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ boost/charconv/detail/fast_float/float_common.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/boost/charconv/detail/fast_float/float_common.hpp b/boost/charconv/detail/fast_float/float_common.hpp
+index 0b9d3ae..627f97f 100644
+--- a/boost/charconv/detail/fast_float/float_common.hpp
++++ b/boost/charconv/detail/fast_float/float_common.hpp
+@@ -315,7 +315,7 @@ struct binary_format_lookup_tables<double, U> {
+ 
+   // Largest integer value v so that (5**index * v) <= 1<<53.
+   // 0x10000000000000 == 1 << 53
+-  static constexpr std::uint64_t max_mantissa[] = {
++  static constexpr uint64_t max_mantissa[] = {
+     UINT64_C(0x10000000000000),
+     UINT64_C(0x10000000000000) / UINT64_C(5),
+     UINT64_C(0x10000000000000) / (UINT64_C(5) * UINT64_C(5)),
+-- 
+2.47.3
+
package/boost/0004-Fix-build.patch new file +40 -0
new file mode 100644
index 0000000000..3c09d8bc5d
@@ -0,0 +1,40 @@
+From 3d5659f0a06b68864a2daed145c0897a4b18c893 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Mon, 14 Sep 2026 00:02:41 +0200
+Subject: [PATCH] Fix build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In file included from ./boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11,
+                 from ./boost/json/detail/charconv/impl/from_chars.ipp:14,
+                 from ./boost/json/src.hpp:59:
+./boost/json/detail/charconv/detail/fast_float/float_common.hpp:307:20: error: conflicting declaration ‘constexpr const boost::uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa []’ [-Wtemplate-body]
+  307 | constexpr uint64_t binary_format_lookup_tables<double, U>::max_mantissa[];
+
+./boost/json/detail/charconv/detail/fast_float/float_common.hpp:276:34: note: previous declaration as ‘constexpr const uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa [24]’
+  276 |   static constexpr std::uint64_t max_mantissa[] = {
+
+Upstream: https://github.com/boostorg/json/pull/1197
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ boost/json/detail/charconv/detail/fast_float/float_common.hpp     | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/boost/json/detail/charconv/detail/fast_float/float_common.hpp b/boost/json/detail/charconv/detail/fast_float/float_common.hpp
+index ef31140..a280095 100644
+--- a/boost/json/detail/charconv/detail/fast_float/float_common.hpp
++++ b/boost/json/detail/charconv/detail/fast_float/float_common.hpp
+@@ -273,7 +273,7 @@ struct binary_format_lookup_tables<double, U> {
+ 
+   // Largest integer value v so that (5**index * v) <= 1<<53.
+   // 0x10000000000000 == 1 << 53
+-  static constexpr std::uint64_t max_mantissa[] = {
++  static constexpr uint64_t max_mantissa[] = {
+     UINT64_C(0x10000000000000),
+     UINT64_C(0x10000000000000) / UINT64_C(5),
+     UINT64_C(0x10000000000000) / (UINT64_C(5) * UINT64_C(5)),
+-- 
+2.47.3
+
package/boost/0005-Fix-build.patch new file +64 -0

64 lines not on this page · raw message

package/boost/Config.in +7 -5
index 7b78345798..da213dd2d3 100644
@@ -41,9 +41,11 @@ config BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS
 	default y if ((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM)
 	default y if (BR2_aarch64 || BR2_aarch64_be)
 	default y if BR2_i386
+	default y if BR2_loongarch64
 	default y if BR2_mips
 	default y if BR2_mipsel
 	default y if BR2_powerpc
+	default y if BR2_sparc64
 	default y if BR2_x86_64
 
 config BR2_PACKAGE_BOOST_CONTEXT
@@ -73,9 +75,7 @@ config BR2_PACKAGE_BOOST_COROUTINE
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-thread
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # boost-context
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-context, boost-thread
-	select BR2_PACKAGE_BOOST_CHRONO
 	select BR2_PACKAGE_BOOST_CONTEXT
-	select BR2_PACKAGE_BOOST_THREAD
 	help
 	  deprecated coroutine library, the non-deprecated coroutine2
 	  library is a header-only library and does not need to be
@@ -154,6 +154,8 @@ config BR2_PACKAGE_BOOST_IOSTREAMS
 	bool "boost-iostreams"
 	select BR2_PACKAGE_BZIP2
 	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_BOOST_RANDOM
+	select BR2_PACKAGE_BOOST_REGEX
 	help
 	  Boost.IOStreams provides a framework for defining streams,
 	  stream buffers and i/o filters.
@@ -219,6 +221,7 @@ comment "boost-log needs a toolchain not affected by GCC bug 64735"
 config BR2_PACKAGE_BOOST_MATH
 	bool "boost-math"
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14
+	select BR2_PACKAGE_BOOST_RANDOM
 	help
 	  Boost.Math includes several contributions in the domain of
 	  mathematics:
@@ -266,6 +269,7 @@ config BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
 config BR2_PACKAGE_BOOST_PYTHON
 	bool "boost-python"
 	depends on BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_BOOST_GRAPH
 	help
 	  The Boost Python Library is a framework for interfacing Python
 	  and C++. It allows you to quickly and seamlessly expose C++
@@ -308,7 +312,6 @@ config BR2_PACKAGE_BOOST_SYSTEM
 config BR2_PACKAGE_BOOST_TEST
 	bool "boost-test"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_BOOST_TIMER
 	help
 	  Support for simple program testing, full unit testing, and for
 	  program execution monitoring.
@@ -326,7 +329,6 @@ comment "boost-thread needs a toolchain not affected by GCC bug 64735"
 
 config BR2_PACKAGE_BOOST_TIMER
 	bool "boost-timer"
-	select BR2_PACKAGE_BOOST_CHRONO
 	help
 	  Event timer, progress timer, and progress display classes.
 
@@ -362,7 +364,7 @@ config BR2_PACKAGE_BOOST_WAVE
 	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-thread
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread
 	select BR2_PACKAGE_BOOST_FILESYSTEM
-	select BR2_PACKAGE_BOOST_THREAD
+	select BR2_PACKAGE_BOOST_SERIALIZATION
 	help
 	  The Boost.Wave library is a Standards conformant, and highly
 	  configurable implementation of the mandated C99/C++
package/boost/boost.hash +2 -2
index 14403758ac..baf5fbd618 100644
@@ -1,5 +1,5 @@
-# From https://www.boost.org/users/history/version_1_83_0.html
-sha256  6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e  boost_1_83_0.tar.bz2
+# From https://www.boost.org/releases/1.92.0/
+sha256  5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c  boost_1_92_0.tar.bz2
 
 # Locally computed
 sha256  c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  LICENSE_1_0.txt
package/boost/boost.mk +1 -1
index 1dcc4a4b3a..ed63a608ac 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-BOOST_VERSION = 1.83.0
+BOOST_VERSION = 1.92.0
 BOOST_SOURCE = boost_$(subst .,_,$(BOOST_VERSION)).tar.bz2
 BOOST_SITE = https://archives.boost.io/release/$(BOOST_VERSION)/source
 BOOST_INSTALL_STAGING = YES
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot