summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-14 18:44:37 +0000
committerSam James <sam@gentoo.org>2021-06-14 22:11:11 +0000
commitd6e2f2e2e4a912779ff1c9fb72775b1789cc3364 (patch)
tree7e84770c777b41822192d5095277778997d74aa5 /media-gfx/prusaslicer
parentdev-util/rustup: drop 1.24.1, 1.24.2 (diff)
downloadgentoo-d6e2f2e2e4a912779ff1c9fb72775b1789cc3364.tar.gz
gentoo-d6e2f2e2e4a912779ff1c9fb72775b1789cc3364.tar.bz2
gentoo-d6e2f2e2e4a912779ff1c9fb72775b1789cc3364.zip
media-gfx/prusaslicer: fix build with GCC 11
Closes: https://bugs.gentoo.org/788196 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/prusaslicer')
-rw-r--r--media-gfx/prusaslicer/files/prusaslicer-2.3.1-gcc11-missing-include.patch24
-rw-r--r--media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild1
2 files changed, 25 insertions, 0 deletions
diff --git a/media-gfx/prusaslicer/files/prusaslicer-2.3.1-gcc11-missing-include.patch b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-gcc11-missing-include.patch
new file mode 100644
index 000000000000..6480277bde64
--- /dev/null
+++ b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-gcc11-missing-include.patch
@@ -0,0 +1,24 @@
+https://github.com/prusa3d/PrusaSlicer/commit/62592ca
+https://bugs.gentoo.org/788196
+
+From 62592cab48cfb6a20d84041b1992aecc6a2b659c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= <hejl.lukas@gmail.com>
+Date: Sat, 1 May 2021 22:33:59 +0200
+Subject: [PATCH] Added missing include (GCC 11.1)
+
+---
+ src/libslic3r/Optimize/Optimizer.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/libslic3r/Optimize/Optimizer.hpp b/src/libslic3r/Optimize/Optimizer.hpp
+index 05191eba26..8ae55c61c5 100644
+--- a/src/libslic3r/Optimize/Optimizer.hpp
++++ b/src/libslic3r/Optimize/Optimizer.hpp
+@@ -8,6 +8,7 @@
+ #include <functional>
+ #include <limits>
+ #include <cassert>
++#include <optional>
+
+ namespace Slic3r { namespace opt {
+
diff --git a/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild b/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild
index bc9455e57d39..cc29c97ae4a3 100644
--- a/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild
+++ b/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild
@@ -58,6 +58,7 @@ S="${WORKDIR}/${MY_PN}-version_${PV}"
PATCHES=(
"${FILESDIR}/${PN}-2.3.0-miniz-zip-header.patch"
+ "${FILESDIR}/${PN}-2.3.1-gcc11-missing-include.patch"
)
src_configure() {