forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/librecad: Fix build with >=dev-libs/boost-1.76
Closes: https://bugs.gentoo.org/788706 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 1fd07fcd847659d518efa0897a9f603de83fe362 Mon Sep 17 00:00:00 2001 | ||
From: Jiri Slaby <[email protected]> | ||
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<double, double, double> 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 291f734ea..d47bf6ca4 100644 | ||
--- a/librecad/src/lib/engine/rs_ellipse.cpp | ||
+++ b/librecad/src/lib/engine/rs_ellipse.cpp | ||
@@ -48,6 +48,9 @@ | ||
#include <boost/version.hpp> | ||
#include <boost/math/tools/roots.hpp> | ||
#include <boost/math/special_functions/ellint_2.hpp> | ||
+#if BOOST_VERSION > 104500 | ||
+#include <boost/math/tools/tuple.hpp> | ||
+#endif | ||
#endif | ||
|
||
namespace{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters