commit:     19fe0fb2dd2923d24caeee5d5e3b0d921b3360a0
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 17 15:41:56 2018 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sat Nov 17 17:20:30 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19fe0fb2

x11-libs/goffice: fix unittest build failure

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>

 .../files/0.10.43-unittest-build-failure.patch      | 21 +++++++++++++++++++++
 x11-libs/goffice/goffice-0.10.43.ebuild             |  5 +++++
 2 files changed, 26 insertions(+)

diff --git a/x11-libs/goffice/files/0.10.43-unittest-build-failure.patch 
b/x11-libs/goffice/files/0.10.43-unittest-build-failure.patch
new file mode 100644
index 00000000000..8b9e89c3cf1
--- /dev/null
+++ b/x11-libs/goffice/files/0.10.43-unittest-build-failure.patch
@@ -0,0 +1,21 @@
+From 54098b6cd7dddc573b937f45048dd8a434f581af Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <[email protected]>
+Date: Sat, 17 Nov 2018 16:30:30 +0100
+Subject: [PATCH] Add missing string.h include
+
+---
+ tests/test-quad.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test-quad.c b/tests/test-quad.c
+index 49d751e8..379d91ed 100644
+--- a/tests/test-quad.c
++++ b/tests/test-quad.c
+@@ -1,3 +1,4 @@
++#include <string.h>
+ #include <goffice/goffice.h>
+ 
+ // A rather expensive way of forcing the compiler to drop any excess
+-- 
+2.19.1
+

diff --git a/x11-libs/goffice/goffice-0.10.43.ebuild 
b/x11-libs/goffice/goffice-0.10.43.ebuild
index 33e79cd9153..690248f0287 100644
--- a/x11-libs/goffice/goffice-0.10.43.ebuild
+++ b/x11-libs/goffice/goffice-0.10.43.ebuild
@@ -43,6 +43,11 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=(
+       # https://gitlab.gnome.org/GNOME/goffice/merge_requests/2
+       "${FILESDIR}"/${PV}-unittest-build-failure.patch
+)
+
 src_configure() {
        gnome2_src_configure \
                --without-lasem \

Reply via email to