x11-libs/goffice: fix unittest build failure
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 17 Nov 2018 15:41:56 +0000 (16:41 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Sat, 17 Nov 2018 17:20:30 +0000 (18:20 +0100)
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
x11-libs/goffice/files/0.10.43-unittest-build-failure.patch [new file with mode: 0644]
x11-libs/goffice/goffice-0.10.43.ebuild

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 (file)
index 0000000..8b9e89c
--- /dev/null
@@ -0,0 +1,21 @@
+From 54098b6cd7dddc573b937f45048dd8a434f581af Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+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
+
index 33e79cd9153220b54a1550f40656d4e1cdf1e851..690248f0287f84663becc1c81da7ae9c32511c99 100644 (file)
@@ -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 \