From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEBDF138330 for ; Sun, 7 Jan 2018 16:02:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2415E08F1; Sun, 7 Jan 2018 16:02:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4E51E08F1 for ; Sun, 7 Jan 2018 16:02:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1DC3A340CEF for ; Sun, 7 Jan 2018 16:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A020B199 for ; Sun, 7 Jan 2018 16:02:07 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1515340902.79852718db9074e427412b2400003b565dad3c05.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/files/, app-office/libreoffice/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch app-office/libreoffice/libreoffice-5.4.9999.ebuild app-office/libreoffice/libreoffice-6.0.9999.ebuild app-office/libreoffice/libreoffice-9999.ebuild X-VCS-Directories: app-office/libreoffice/ app-office/libreoffice/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 79852718db9074e427412b2400003b565dad3c05 X-VCS-Branch: master Date: Sun, 7 Jan 2018 16:02:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d1770d8f-2e53-4540-8968-c02d630c55bd X-Archives-Hash: 024ba041989b21bd15bf17ecd3cae573 commit: 79852718db9074e427412b2400003b565dad3c05 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jan 7 15:29:44 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jan 7 16:01:42 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79852718 app-office/libreoffice: Fix build w/ USE=pdfimport and poppler-0.62 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/libreoffice-6.0.0.1-poppler-0.62.patch | 44 ++++++++++++++++++++++ app-office/libreoffice/libreoffice-5.4.9999.ebuild | 3 +- app-office/libreoffice/libreoffice-6.0.9999.ebuild | 3 +- app-office/libreoffice/libreoffice-9999.ebuild | 1 + 4 files changed, 49 insertions(+), 2 deletions(-) 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 new file mode 100644 index 00000000000..f0ecc3b990b --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch @@ -0,0 +1,44 @@ +Fix build with >=poppler-0.62.0, cleanup ifdef and raise minimum poppler version. + +--- a/configure.ac 2017-12-12 18:45:07.000000000 +0100 ++++ b/configure.ac 2018-01-04 23:57:16.410999542 +0100 +@@ -10403,7 +10403,7 @@ + if test "$with_system_poppler" = "yes"; then + AC_MSG_RESULT([external]) + SYSTEM_POPPLER=TRUE +- PKG_CHECK_MODULES( POPPLER, poppler >= 0.12.0 ) ++ PKG_CHECK_MODULES( POPPLER, poppler >= 0.21.1 ) + AC_LANG_PUSH([C++]) + save_CXXFLAGS=$CXXFLAGS + save_CPPFLAGS=$CPPFLAGS +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2017-12-12 18:45:07.000000000 +0100 ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2018-01-05 00:29:16.541246738 +0100 +@@ -32,13 +32,11 @@ + #pragma warning(push, 1) + #endif + +-// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1 + // FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1) + // because the internal poppler does not provide poppler-version.h and the macro always returns 0 +-#if POPPLER_CHECK_VERSION(0, 21, 1) +-#include +-#elif POPPLER_CHECK_VERSION(0, 21, 0) +-#include "UTF.h" ++// UTF8.h was renamed to UnicodeMapFuncs.h in poppler-0.62.0 ++#if POPPLER_CHECK_VERSION(0, 62, 0) ++#include "UnicodeMapFuncs.h" + #else + #include "UTF8.h" + #endif +@@ -918,7 +916,11 @@ + ); + + // silence spurious warning ++#if POPPLER_CHECK_VERSION(0, 62, 0) ++ (void)&mapUTF16; ++#else + (void)&mapUCS2; ++#endif + + char buf[9]; + for( int i=0; i