summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-07 06:40:38 +0000
committerSam James <sam@gentoo.org>2021-06-07 07:13:54 +0000
commit099369de66cdc8a91f4e9b372bb2c38a6767a881 (patch)
tree3cfdf14391111d3c164cd9bd58ef564b1c9c01d0 /media-gfx
parentx11-misc/evolvotron: fix build with GCC 11 (diff)
downloadgentoo-099369de66cdc8a91f4e9b372bb2c38a6767a881.tar.gz
gentoo-099369de66cdc8a91f4e9b372bb2c38a6767a881.tar.bz2
gentoo-099369de66cdc8a91f4e9b372bb2c38a6767a881.zip
media-gfx/solvespace: fix build with GCC 11
Closes: https://bugs.gentoo.org/790776 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/solvespace/files/solvespace-2.3-gcc11-missing-limits-inc.patch19
-rw-r--r--media-gfx/solvespace/solvespace-2.3.ebuild7
2 files changed, 25 insertions, 1 deletions
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 <libdxfrw.h>
++#include <limits>
+ #include "solvespace.h"
+
+ VectorFileWriter::~VectorFileWriter() {
+--- a/src/importdxf.cpp
++++ b/src/importdxf.cpp
+@@ -1,3 +1,5 @@
++#include <limits>
++
+ #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"