commit: 517db018c664c25c9a4db3883ef1ec39cc3588dd Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Jan 13 17:41:00 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Jan 13 20:45:02 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517db018
app-text/libwpd: Fix build with GCC-4.8 Closes: https://bugs.gentoo.org/674402 Package-Manager: Portage-2.3.55, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch | 16 ++++++++++++++++ app-text/libwpd/libwpd-0.10.3.ebuild | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch b/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch new file mode 100644 index 00000000000..f47847c1d21 --- /dev/null +++ b/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch @@ -0,0 +1,16 @@ +Authored by: David Tardon David Tardon 2018-12-30 +Commit 333c8a26f231bea26ec3d56245315041bbf5577f + +fix build with gcc 4.8 + +--- a/src/lib/WPXTable.h ++++ b/src/lib/WPXTable.h +@@ -53,7 +53,7 @@ + ~WPXTable(); + void insertRow(); + void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits); +- const WPXTableCell *getCell(size_t i, size_t j) ++ const WPXTableCell *getCell(std::size_t i, std::size_t j) + { + return &(m_tableRows[i])[j]; + } diff --git a/app-text/libwpd/libwpd-0.10.3.ebuild b/app-text/libwpd/libwpd-0.10.3.ebuild index febfff6725b..469e0bc7eba 100644 --- a/app-text/libwpd/libwpd-0.10.3.ebuild +++ b/app-text/libwpd/libwpd-0.10.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -21,6 +21,8 @@ BDEPEND=" doc? ( app-doc/doxygen ) " +PATCHES=( "${FILESDIR}/${P}-gcc-4.8.patch" ) + src_configure() { local myeconfargs=( --program-suffix=-${SLOT}