Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/files/, app-office/libreoffice/
Date: Sun, 07 Jan 2018 16:02:11
Message-Id: 1515340902.79852718db9074e427412b2400003b565dad3c05.asturm@gentoo
1 commit: 79852718db9074e427412b2400003b565dad3c05
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 15:29:44 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 16:01:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79852718
7
8 app-office/libreoffice: Fix build w/ USE=pdfimport and poppler-0.62
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 .../files/libreoffice-6.0.0.1-poppler-0.62.patch | 44 ++++++++++++++++++++++
13 app-office/libreoffice/libreoffice-5.4.9999.ebuild | 3 +-
14 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 3 +-
15 app-office/libreoffice/libreoffice-9999.ebuild | 1 +
16 4 files changed, 49 insertions(+), 2 deletions(-)
17
18 diff --git a/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch b/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch
19 new file mode 100644
20 index 00000000000..f0ecc3b990b
21 --- /dev/null
22 +++ b/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch
23 @@ -0,0 +1,44 @@
24 +Fix build with >=poppler-0.62.0, cleanup ifdef and raise minimum poppler version.
25 +
26 +--- a/configure.ac 2017-12-12 18:45:07.000000000 +0100
27 ++++ b/configure.ac 2018-01-04 23:57:16.410999542 +0100
28 +@@ -10403,7 +10403,7 @@
29 + if test "$with_system_poppler" = "yes"; then
30 + AC_MSG_RESULT([external])
31 + SYSTEM_POPPLER=TRUE
32 +- PKG_CHECK_MODULES( POPPLER, poppler >= 0.12.0 )
33 ++ PKG_CHECK_MODULES( POPPLER, poppler >= 0.21.1 )
34 + AC_LANG_PUSH([C++])
35 + save_CXXFLAGS=$CXXFLAGS
36 + save_CPPFLAGS=$CPPFLAGS
37 +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2017-12-12 18:45:07.000000000 +0100
38 ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2018-01-05 00:29:16.541246738 +0100
39 +@@ -32,13 +32,11 @@
40 + #pragma warning(push, 1)
41 + #endif
42 +
43 +-// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1
44 + // FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1)
45 + // because the internal poppler does not provide poppler-version.h and the macro always returns 0
46 +-#if POPPLER_CHECK_VERSION(0, 21, 1)
47 +-#include <UTF8.h>
48 +-#elif POPPLER_CHECK_VERSION(0, 21, 0)
49 +-#include "UTF.h"
50 ++// UTF8.h was renamed to UnicodeMapFuncs.h in poppler-0.62.0
51 ++#if POPPLER_CHECK_VERSION(0, 62, 0)
52 ++#include "UnicodeMapFuncs.h"
53 + #else
54 + #include "UTF8.h"
55 + #endif
56 +@@ -918,7 +916,11 @@
57 + );
58 +
59 + // silence spurious warning
60 ++#if POPPLER_CHECK_VERSION(0, 62, 0)
61 ++ (void)&mapUTF16;
62 ++#else
63 + (void)&mapUCS2;
64 ++#endif
65 +
66 + char buf[9];
67 + for( int i=0; i<uLen; ++i )
68
69 diff --git a/app-office/libreoffice/libreoffice-5.4.9999.ebuild b/app-office/libreoffice/libreoffice-5.4.9999.ebuild
70 index 542f04bac54..d6e9a757db6 100644
71 --- a/app-office/libreoffice/libreoffice-5.4.9999.ebuild
72 +++ b/app-office/libreoffice/libreoffice-5.4.9999.ebuild
73 @@ -1,4 +1,4 @@
74 -# Copyright 1999-2017 Gentoo Foundation
75 +# Copyright 1999-2018 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77
78 EAPI=6
79 @@ -245,6 +245,7 @@ PATCHES=(
80
81 # TODO: upstream
82 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
83 + "${FILESDIR}/${PN}-5.4.4.2-poppler-0.62.patch" # bug 642602
84 )
85
86 pkg_pretend() {
87
88 diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
89 index 9b35442a6de..5fca4ae10c0 100644
90 --- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild
91 +++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
92 @@ -1,4 +1,4 @@
93 -# Copyright 1999-2017 Gentoo Foundation
94 +# Copyright 1999-2018 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96
97 EAPI=6
98 @@ -250,6 +250,7 @@ PATCHES=(
99
100 # TODO: upstream
101 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
102 + "${FILESDIR}/${PN}-6.0.0.1-poppler-0.62.patch" # bug 642602
103 )
104
105 pkg_pretend() {
106
107 diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
108 index 664bacbda8e..ba7d38f7d30 100644
109 --- a/app-office/libreoffice/libreoffice-9999.ebuild
110 +++ b/app-office/libreoffice/libreoffice-9999.ebuild
111 @@ -249,6 +249,7 @@ PATCHES=(
112
113 # TODO: upstream
114 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
115 + "${FILESDIR}/${PN}-6.0.0.1-poppler-0.62.patch" # bug 642602
116 )
117
118 pkg_pretend() {