mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
media-gfx/solvespace: fix build with GCC 11
Closes: https://bugs.gentoo.org/790776 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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"
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user