From d6e2f2e2e4a912779ff1c9fb72775b1789cc3364 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 14 Jun 2021 18:44:37 +0000 Subject: media-gfx/prusaslicer: fix build with GCC 11 Closes: https://bugs.gentoo.org/788196 Signed-off-by: Sam James --- .../prusaslicer-2.3.1-gcc11-missing-include.patch | 24 ++++++++++++++++++++++ media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild | 1 + 2 files changed, 25 insertions(+) create mode 100644 media-gfx/prusaslicer/files/prusaslicer-2.3.1-gcc11-missing-include.patch (limited to 'media-gfx/prusaslicer') 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?= +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 + #include + #include ++#include + + 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() { -- cgit v1.2.3-65-gdbad