From d21596df1d4c08b3262aef76aafe0864731c392c Mon Sep 17 00:00:00 2001 From: Krul Ceter Date: Mon, 21 Nov 2022 18:55:38 +0300 Subject: [PATCH] LibreCAD: fix build --- .../LibreCAD/patches/fix-boost-tuple.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/LibreCAD/patches/fix-boost-tuple.patch diff --git a/srcpkgs/LibreCAD/patches/fix-boost-tuple.patch b/srcpkgs/LibreCAD/patches/fix-boost-tuple.patch new file mode 100644 index 000000000000..e2fc513a5454 --- /dev/null +++ b/srcpkgs/LibreCAD/patches/fix-boost-tuple.patch @@ -0,0 +1,29 @@ +From 1fd07fcd847659d518efa0897a9f603de83fe362 Mon Sep 17 00:00:00 2001 +From: Jiri Slaby +Date: Tue, 4 May 2021 09:25:03 +0200 +Subject: [PATCH] add boost tuple include to fix build + +With boost 1.76, we see: +lib/engine/rs_ellipse.cpp:70:15: error: 'tuple' in namespace 'boost::math' does not name a template type + 70 | boost::math::tuple operator()(double const& z) const { + | ^~~~~ + +Fix this by including the proper boost header. +--- + librecad/src/lib/engine/rs_ellipse.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/librecad/src/lib/engine/rs_ellipse.cpp b/librecad/src/lib/engine/rs_ellipse.cpp +index 291f734ea6..d47bf6ca4a 100644 +--- a/librecad/src/lib/engine/rs_ellipse.cpp ++++ b/librecad/src/lib/engine/rs_ellipse.cpp +@@ -48,6 +48,9 @@ + #include + #include + #include ++#if BOOST_VERSION > 104500 ++#include ++#endif + #endif + + namespace{