From 099369de66cdc8a91f4e9b372bb2c38a6767a881 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 7 Jun 2021 06:40:38 +0000 Subject: media-gfx/solvespace: fix build with GCC 11 Closes: https://bugs.gentoo.org/790776 Signed-off-by: Sam James --- .../solvespace-2.3-gcc11-missing-limits-inc.patch | 19 +++++++++++++++++++ media-gfx/solvespace/solvespace-2.3.ebuild | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 media-gfx/solvespace/files/solvespace-2.3-gcc11-missing-limits-inc.patch (limited to 'media-gfx') diff --git a/media-gfx/solvespace/files/solvespace-2.3-gcc11-missing-limits-inc.patch b/media-gfx/solvespace/files/solvespace-2.3-gcc11-missing-limits-inc.patch new file mode 100644 index 000000000000..ecf02fc5c01e --- /dev/null +++ b/media-gfx/solvespace/files/solvespace-2.3-gcc11-missing-limits-inc.patch @@ -0,0 +1,19 @@ +https://bugs.gentoo.org/790776 +--- a/src/exportvector.cpp ++++ b/src/exportvector.cpp +@@ -4,6 +4,7 @@ + // Copyright 2008-2013 Jonathan Westhues. + //----------------------------------------------------------------------------- + #include ++#include + #include "solvespace.h" + + VectorFileWriter::~VectorFileWriter() { +--- a/src/importdxf.cpp ++++ b/src/importdxf.cpp +@@ -1,3 +1,5 @@ ++#include ++ + #include "solvespace.h" + #include "libdxfrw.h" + #include "libdwgr.h" diff --git a/media-gfx/solvespace/solvespace-2.3.ebuild b/media-gfx/solvespace/solvespace-2.3.ebuild index ca5fc5249b9e..25975546f2b6 100644 --- a/media-gfx/solvespace/solvespace-2.3.ebuild +++ b/media-gfx/solvespace/solvespace-2.3.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 + DXFRW_COMMIT="87ff1082f49b1286a033ac8f38fe8dde0975bb8b" DXFRW_PV="0.6.3" DXFRW_P="libdxfrw-${DXFRW_PV}-${DXFRW_COMMIT}" @@ -31,6 +32,10 @@ DEPEND="${RDEPEND} # NOTE: please keep commit hash actually when version up GIT_COMMIT_HASH="4d1e1341d926ac356b295d5cc3d61c7a6cd7d07d" +PATCHES=( + "${FILESDIR}"/${PN}-2.3-gcc11-missing-limits-inc.patch +) + src_prepare() { rm -r "extlib/libdxfrw" || die "rm extlib/libdxfrw failed" mv "${WORKDIR}/libdxfrw-${DXFRW_COMMIT}" "extlib/libdxfrw" || die "move libdxfrw-${DXFRW_COMMIT} failed" -- cgit v1.2.3-65-gdbad