gentoo/dev-libs/liborcus/files/liborcus-0.19.2-boost-m4.patch
Holger Hoffstätte 2510291d8d
dev-libs/liborcus: fix build with boost-1.89.0, add python-3.14
- add minimal, backwards-compatible fix to allow building with boost-1.89.0
- drop python-3.10, add python-3.14 support

Closes: https://bugs.gentoo.org/961527
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43475
Closes: https://github.com/gentoo/gentoo/pull/43475
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-05 20:05:01 +02:00

32 lines
999 B
Diff

Minimal diff from upstream boost.m4 (https://github.com/tsuna/boost.m4)
to make things work with >=boost-1.89.0, which made boost_system a
header-only library.
--- a/m4/boost.m4~
+++ b/m4/boost.m4
@@ -1130,15 +1130,20 @@ 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