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 2CD2D138334 for ; Wed, 16 Jan 2019 08:17:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A22BE0BB5; Wed, 16 Jan 2019 08:17:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 CD672E0BB5 for ; Wed, 16 Jan 2019 08:17:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 C0779335CFD for ; Wed, 16 Jan 2019 08:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B035517 for ; Wed, 16 Jan 2019 08:17:16 +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: <1547626617.1a60273805cf51fd56385301b250d909df53d8c2.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.2.0.2-poppler-0.73.patch app-office/libreoffice/libreoffice-6.2.0.2.ebuild X-VCS-Directories: app-office/libreoffice/ app-office/libreoffice/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 1a60273805cf51fd56385301b250d909df53d8c2 X-VCS-Branch: master Date: Wed, 16 Jan 2019 08:17:16 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 66f86ca8-886b-4e69-a2cf-bdda57122c83 X-Archives-Hash: f2a72a788de0662b59af86e5926d88ae commit: 1a60273805cf51fd56385301b250d909df53d8c2 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Jan 16 08:16:19 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 16 08:16:57 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a602738 app-office/libreoffice: Fix build with poppler-0.73 Bug: https://bugs.gentoo.org/675452 Package-Manager: Portage-2.3.55, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/libreoffice-6.2.0.2-poppler-0.73.patch | 101 +++++++++++++++++++++ app-office/libreoffice/libreoffice-6.2.0.2.ebuild | 1 + 2 files changed, 102 insertions(+) diff --git a/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch b/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch new file mode 100644 index 00000000000..eb6d597c195 --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-6.2.0.2-poppler-0.73.patch @@ -0,0 +1,101 @@ +From 9e1522ad1d2c2bd775fa50c2b142eb110a56af72 Mon Sep 17 00:00:00 2001 +From: Michael Stahl +Date: Mon, 14 Jan 2019 15:08:42 +0100 +Subject: sdext: fix build with poppler 0.73 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +... which has removed Guchar, Gushort, Guint, Gulong... + +Change-Id: Ia54ad378031f167f6779f6ffe574b85c1e72f26d +Reviewed-on: https://gerrit.libreoffice.org/66305 +Tested-by: Jenkins +Reviewed-by: Michael Stahl +(cherry picked from commit 50d371ae08c66648d9f32f633b2245e1746e2bb6) +Reviewed-on: https://gerrit.libreoffice.org/66356 +Reviewed-by: Caolán McNamara +Tested-by: Caolán McNamara +--- + sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 4 ++-- + sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 6 +++++- + sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx | 6 +++--- + 3 files changed, 10 insertions(+), 6 deletions(-) + +(limited to 'sdext/source/pdfimport/xpdfwrapper') + +diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +index 575a90a..35490a0 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +@@ -298,7 +298,7 @@ static void writePpm_( OutputBuffer& o_rOutputBuf, + o_rOutputBuf.resize(header_size); + + // initialize stream +- Guchar *p; ++ unsigned char *p; + GfxRGB rgb; + std::unique_ptr imgStr( + new ImageStream(str, +@@ -401,7 +401,7 @@ static void writeImage_( OutputBuffer& o_rOutputBuf, + oneColor = { byteToCol( 0xff ), byteToCol( 0xff ), byteToCol( 0xff ) }; + if( colorMap->getColorSpace()->getMode() == csIndexed || colorMap->getColorSpace()->getMode() == csDeviceGray ) + { +- Guchar nIndex = 0; ++ unsigned char nIndex = 0; + colorMap->getRGB( &nIndex, &zeroColor ); + nIndex = 1; + colorMap->getRGB( &nIndex, &oneColor ); +diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +index da021a2a..443e757 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +@@ -267,9 +267,13 @@ extern FILE* g_binary_out; + + // note: if you ever change Output_t, please keep in mind that the current code + // relies on it being of 8 bit size +-typedef Guchar Output_t; ++typedef unsigned char Output_t; + typedef std::vector< Output_t > OutputBuffer; + ++#if !POPPLER_CHECK_VERSION(0, 73, 0) ++static_assert(std::is_same_v, "unexpected typedef"); ++#endif ++ + #endif // INCLUDED_SDEXT_SOURCE_PDFIMPORT_XPDFWRAPPER_PDFIOUTDEV_GPL_HXX + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx +index 4d9e3bb..b582856 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx ++++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx +@@ -242,7 +242,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, + appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image + + // initialize stream +- Guchar *p, *pm; ++ unsigned char *p, *pm; + GfxRGB rgb; + GfxGray alpha; + std::unique_ptr imgStr( +@@ -328,7 +328,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, + appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image + + // initialize stream +- Guchar *p; ++ unsigned char *p; + GfxRGB rgb; + std::unique_ptr imgStr( + new ImageStream(str, +@@ -374,7 +374,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf, + { + for( int x = 0; x < maskWidth; ++x ) + { +- Guchar aPixel = 0; ++ unsigned char aPixel = 0; + imgStrMask->getPixel( &aPixel ); + int nIndex = (y*height/maskHeight) * (width*4+1) + // mapped line + (x*width/maskWidth)*4 + 1 + 3 // mapped column +-- +cgit v1.1 + diff --git a/app-office/libreoffice/libreoffice-6.2.0.2.ebuild b/app-office/libreoffice/libreoffice-6.2.0.2.ebuild index 91afb2dd020..9dc3659a431 100644 --- a/app-office/libreoffice/libreoffice-6.2.0.2.ebuild +++ b/app-office/libreoffice/libreoffice-6.2.0.2.ebuild @@ -256,6 +256,7 @@ PATCHES=( # master branch "${FILESDIR}"/${PN}-6.2.0.1-poppler-0.71-{1,2}.patch "${FILESDIR}"/${PN}-6.2.0.1-poppler-0.72.patch + "${FILESDIR}"/${P}-poppler-0.73.patch ) S="${WORKDIR}/${PN}-${MY_PV}"