summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lermytte <gentoo@lermytte.be>2019-12-17 18:39:22 +0100
committerJoonas Niilola <juippis@gentoo.org>2019-12-20 07:34:12 +0200
commitbca5d279dd1a2ceff9b672d81793aacb614adbf9 (patch)
treed2100315ed18bc443066e08e90522544179c7117 /media-gfx/openscad
parentmedia-tv/plex-media-server: Bump to 1.18.3 (diff)
downloadgentoo-bca5d279dd1a2ceff9b672d81793aacb614adbf9.tar.gz
gentoo-bca5d279dd1a2ceff9b672d81793aacb614adbf9.tar.bz2
gentoo-bca5d279dd1a2ceff9b672d81793aacb614adbf9.zip
media-gfx/openscad: fix compilation with boost-1.72
Patch originates from upstream commit which is staged for release https://github.com/openscad/openscad/pull/3105 Closes: https://bugs.gentoo.org/703022 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Christophe Lermytte <gentoo@lermytte.be> Closes: https://github.com/gentoo/gentoo/pull/14028 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/openscad')
-rw-r--r--media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch27
-rw-r--r--media-gfx/openscad/openscad-2019.05-r1.ebuild4
2 files changed, 31 insertions, 0 deletions
diff --git a/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch
new file mode 100644
index 000000000000..28d3285a7375
--- /dev/null
+++ b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch
@@ -0,0 +1,27 @@
+From b6c170cc5dd1bc677176ee732cdb0ddae57e5cf0 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich@FreeBSD.org>
+Date: Fri, 25 Oct 2019 15:10:26 +0000
+Subject: [PATCH] Add missing header bootlegged by Boost < 1.72
+
+src/parser.y:76:6: error: no template named 'stack' in namespace 'std'
+std::stack<LocalScope *> scope_stack;
+~~~~~^
+---
+ src/parser.y | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/parser.y b/src/parser.y
+index 7f4fd56c..4c77c989 100644
+--- a/src/parser.y
++++ b/src/parser.y
+@@ -46,6 +46,7 @@
+ #include "printutils.h"
+ #include "memory.h"
+ #include <sstream>
++#include <stack>
+ #include <boost/filesystem.hpp>
+ #include "boost-utils.h"
+ #include "feature.h"
+--
+2.24.1
+
diff --git a/media-gfx/openscad/openscad-2019.05-r1.ebuild b/media-gfx/openscad/openscad-2019.05-r1.ebuild
index 8991b255f4ca..11211477d2d1 100644
--- a/media-gfx/openscad/openscad-2019.05-r1.ebuild
+++ b/media-gfx/openscad/openscad-2019.05-r1.ebuild
@@ -16,6 +16,10 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="emacs"
+PATCHES=(
+ "${FILESDIR}/${PN}-2019.05_fix-boost-1.72.0-build.patch"
+)
+
# FIXME: add optional lib3mf
RDEPEND="
dev-cpp/eigen:3