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 3EAB5138359 for ; Sat, 21 Nov 2020 21:00:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E44BE078A; Sat, 21 Nov 2020 21:00:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 448D9E078A for ; Sat, 21 Nov 2020 21:00:23 +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 05EF534087E for ; Sat, 21 Nov 2020 21:00:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3EFB6453 for ; Sat, 21 Nov 2020 21:00:20 +0000 (UTC) From: "Andreas K. Hüttel" 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 K. Hüttel" Message-ID: <1605992407.f7c12bfa5c0ec0e2df860f498790b128de1accd2.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/, app-office/libreoffice/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/libreoffice/files/libreoffice-7.0.3.1-fix-disable-pdfium-build.patch app-office/libreoffice/libreoffice-7.0.3.1.ebuild X-VCS-Directories: app-office/libreoffice/ app-office/libreoffice/files/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: f7c12bfa5c0ec0e2df860f498790b128de1accd2 X-VCS-Branch: master Date: Sat, 21 Nov 2020 21:00:20 +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: ee09e038-bfca-4520-837d-37180a46439e X-Archives-Hash: edf31591cfa64e7da33bb8e7f5b4b145 commit: f7c12bfa5c0ec0e2df860f498790b128de1accd2 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat Nov 21 20:59:49 2020 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sat Nov 21 21:00:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c12bfa app-office/libreoffice: Backport disable-pdfium fix from 7.0 branch Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel gentoo.org> ...reoffice-7.0.3.1-fix-disable-pdfium-build.patch | 82 ++++++++++++++++++++++ app-office/libreoffice/libreoffice-7.0.3.1.ebuild | 3 + 2 files changed, 85 insertions(+) diff --git a/app-office/libreoffice/files/libreoffice-7.0.3.1-fix-disable-pdfium-build.patch b/app-office/libreoffice/files/libreoffice-7.0.3.1-fix-disable-pdfium-build.patch new file mode 100644 index 00000000000..346699d5527 --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-7.0.3.1-fix-disable-pdfium-build.patch @@ -0,0 +1,82 @@ +From b9e5d5347e5dece693fe56b88570abc07a30a8ba Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Thu, 29 Oct 2020 15:45:01 +0000 +Subject: [PATCH] fix --disable-pdfium build +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Change-Id: I580972220bc39abe16288fa62c717e4ab25833d9 +Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105015 +Tested-by: Jenkins +Tested-by: René Engelhard +Reviewed-by: René Engelhard +Reviewed-by: Noel Grandin +--- + vcl/source/filter/ipdf/pdfread.cxx | 2 +- + xmlsecurity/source/pdfio/pdfdocument.cxx | 11 +++++++---- + 2 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx +index 3066c4deba4a..bf11578089e0 100644 +--- a/vcl/source/filter/ipdf/pdfread.cxx ++++ b/vcl/source/filter/ipdf/pdfread.cxx +@@ -218,7 +218,7 @@ size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector& rBi + (void)rBitmaps; + (void)nFirstPage; + (void)nPages; +- (void)fResolutionDPI; ++ (void)pSizeHint; + return 0; + #endif // HAVE_FEATURE_PDFIUM + } +diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx +index c132d02cc2b0..b229206391f2 100644 +--- a/xmlsecurity/source/pdfio/pdfdocument.cxx ++++ b/xmlsecurity/source/pdfio/pdfdocument.cxx +@@ -138,10 +138,10 @@ bool IsCompleteSignature(SvStream& rStream, vcl::filter::PDFDocument& rDocument, + return std::find(rAllEOFs.begin(), rAllEOFs.end(), nFileEnd) != rAllEOFs.end(); + } + ++#if HAVE_FEATURE_PDFIUM + /// Collects the checksum of each page of one version of the PDF. + void AnalyizeSignatureStream(SvMemoryStream& rStream, std::vector& rPageChecksums) + { +-#if HAVE_FEATURE_PDFIUM + auto pPdfium = vcl::pdf::PDFiumLibrary::get(); + vcl::pdf::PDFiumDocument aPdfDocument( + FPDF_LoadMemDocument(rStream.GetData(), rStream.GetSize(), /*password=*/nullptr)); +@@ -158,10 +158,8 @@ void AnalyizeSignatureStream(SvMemoryStream& rStream, std::vectorgetChecksum(); + rPageChecksums.push_back(nPageChecksum); + } +-#else +- (void)rStream; +-#endif + } ++#endif + + /** + * Checks if incremental updates after singing performed valid modifications only. +@@ -175,6 +173,7 @@ bool IsValidSignature(SvStream& rStream, vcl::filter::PDFObjectElement* pSignatu + return false; + } + ++#if HAVE_FEATURE_PDFIUM + SvMemoryStream aSignatureStream; + sal_uInt64 nPos = rStream.Tell(); + rStream.Seek(0); +@@ -196,6 +195,10 @@ bool IsValidSignature(SvStream& rStream, vcl::filter::PDFObjectElement* pSignatu + // Fail if any page looks different after signing and at the end. Annotations/commenting doesn't + // count, though. + return aSignedPages == aAllPages; ++#else ++ (void)rStream; ++ return true; ++#endif + } + } + +-- +2.26.2 + diff --git a/app-office/libreoffice/libreoffice-7.0.3.1.ebuild b/app-office/libreoffice/libreoffice-7.0.3.1.ebuild index 75e3660ccfa..b6573bba320 100644 --- a/app-office/libreoffice/libreoffice-7.0.3.1.ebuild +++ b/app-office/libreoffice/libreoffice-7.0.3.1.ebuild @@ -286,6 +286,9 @@ else fi PATCHES=( + # backport from 7.0 branch + "${FILESDIR}/${PN}-7.0.3.1-fix-disable-pdfium-build.patch" + # "${WORKDIR}"/${PATCHSET/.tar.xz/} # not upstreamable stuff