[arch-commits] Commit in prusa-slicer/trunk (PKGBUILD prusa-slicer-gcc11.patch)
Evangelos Foutras
foutrelis at archlinux.org
Tue May 18 11:16:35 UTC 2021
Date: Tuesday, May 18, 2021 @ 11:16:34
Author: foutrelis
Revision: 936248
Fix build with GCC 11
Added:
prusa-slicer/trunk/prusa-slicer-gcc11.patch
Modified:
prusa-slicer/trunk/PKGBUILD
--------------------------+
PKGBUILD | 6 +++++-
prusa-slicer-gcc11.patch | 21 +++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-18 11:08:48 UTC (rev 936247)
+++ PKGBUILD 2021-05-18 11:16:34 UTC (rev 936248)
@@ -11,12 +11,16 @@
makedepends=(cmake boost cereal eigen expat gtest libpng systemd)
replaces=(slic3r-prusa3d)
source=(${url}/archive/version_${pkgver}/${pkgname}-${pkgver}.tar.gz
+ prusa-slicer-gcc11.patch
prusa-slicer-openexr3.patch)
sha256sums=('c1315826d07f428dfe4b9aa6325727beb1257aa6f711d1659a2760f8e213cd51'
+ '1d394b12e0b8f597e5c19c3531621a7ccfd70216d997a77de24891c92a524170'
'1ef7c22f641b7c18de212202c21f14f6533834a36d7fe0c2b322bc9a13804c6b')
prepare() {
- patch -d PrusaSlicer-version_${pkgver} -p1 < prusa-slicer-openexr3.patch # Fix build with openEXR 3
+ cd PrusaSlicer-version_${pkgver}
+ patch -p1 < ../prusa-slicer-gcc11.patch # Add missing include for GCC 11
+ patch -p1 < ../prusa-slicer-openexr3.patch # Fix build with openEXR 3
}
build() {
Added: prusa-slicer-gcc11.patch
===================================================================
--- prusa-slicer-gcc11.patch (rev 0)
+++ prusa-slicer-gcc11.patch 2021-05-18 11:16:34 UTC (rev 936248)
@@ -0,0 +1,21 @@
+From 62592cab48cfb6a20d84041b1992aecc6a2b659c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= <hejl.lukas at 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 {
+
More information about the arch-commits
mailing list