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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D8A4E15808C for ; Fri, 18 Mar 2022 21:30:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29306E0895; Fri, 18 Mar 2022 21:30:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06337E0895 for ; Fri, 18 Mar 2022 21:30:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E23D6343873 for ; Fri, 18 Mar 2022 21:30:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A0E932C for ; Fri, 18 Mar 2022 21:30:34 +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: <1647639022.29b4c8365673eb0c8663e18103e94c09504fe92c.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/inkscape/files/, media-gfx/inkscape/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/inkscape/files/inkscape-1.1.2-poppler-22.03.0.patch media-gfx/inkscape/inkscape-1.1-r1.ebuild media-gfx/inkscape/inkscape-1.1.1.ebuild media-gfx/inkscape/inkscape-1.1.2.ebuild X-VCS-Directories: media-gfx/inkscape/files/ media-gfx/inkscape/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 29b4c8365673eb0c8663e18103e94c09504fe92c X-VCS-Branch: master Date: Fri, 18 Mar 2022 21:30:34 +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: cfe70e68-facf-428c-822d-c738403d5614 X-Archives-Hash: 99321c27c9459715eaf0a2540e3e42f8 commit: 29b4c8365673eb0c8663e18103e94c09504fe92c Author: Andreas K. Hüttel gentoo org> AuthorDate: Fri Mar 18 20:33:43 2022 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Fri Mar 18 21:30:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29b4c836 media-gfx/inkscape: Build fix for poppler-22.03.0 Closes: https://bugs.gentoo.org/835424 See also: https://gitlab.com/inkscape/inkscape/-/merge_requests/4116 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel gentoo.org> .../files/inkscape-1.1.2-poppler-22.03.0.patch | 38 ++++++++++++++++++++++ media-gfx/inkscape/inkscape-1.1-r1.ebuild | 3 ++ media-gfx/inkscape/inkscape-1.1.1.ebuild | 4 +++ media-gfx/inkscape/inkscape-1.1.2.ebuild | 4 +++ 4 files changed, 49 insertions(+) diff --git a/media-gfx/inkscape/files/inkscape-1.1.2-poppler-22.03.0.patch b/media-gfx/inkscape/files/inkscape-1.1.2-poppler-22.03.0.patch new file mode 100644 index 000000000000..5ec18157384e --- /dev/null +++ b/media-gfx/inkscape/files/inkscape-1.1.2-poppler-22.03.0.patch @@ -0,0 +1,38 @@ +From 15ab83e02b07018c3ffd4952a2623393187659e0 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Wed, 2 Mar 2022 19:50:02 +0200 +Subject: [PATCH] Fix build with poppler 22.03.0 + +PDFDoc's constructor now takes an std::unique_ptr as the filename and +the rest of the parameters are std::optional and can be left out. + +Also, remove an obsolete comment regarding special handling on win32; +the "ifndef _WIN32" it was referring to has been removed by commit +ad8effaa6ec3 ("Fix PDF import with non-ASCII filename on Windows"). +--- + src/extension/internal/pdfinput/pdf-input.cpp | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp +index 3dabc94ba2..63742d8c6d 100644 +--- a/src/extension/internal/pdfinput/pdf-input.cpp ++++ b/src/extension/internal/pdfinput/pdf-input.cpp +@@ -686,10 +686,12 @@ PdfInput::open(::Inkscape::Extension::Input * /*mod*/, const gchar * uri) { + // PDFDoc is from poppler. PDFDoc is used for preview and for native import. + std::shared_ptr pdf_doc; + +- // poppler does not use glib g_open. So on win32 we must use unicode call. code was copied from +- // glib gstdio.c ++#if POPPLER_CHECK_VERSION(22, 3, 0) ++ pdf_doc = std::make_shared(std::make_unique(uri)); // TODO: Could ask for password ++#else + GooString *filename_goo = new GooString(uri); +- pdf_doc = std::make_shared(filename_goo, nullptr, nullptr, nullptr); // TODO: Could ask for password ++ pdf_doc = std::make_shared(filename_goo, nullptr, nullptr, nullptr); // TODO: Could ask for password ++#endif + + if (!pdf_doc->isOk()) { + int error = pdf_doc->getErrorCode(); +-- +GitLab + diff --git a/media-gfx/inkscape/inkscape-1.1-r1.ebuild b/media-gfx/inkscape/inkscape-1.1-r1.ebuild index 517577f93f25..64412bc803f8 100644 --- a/media-gfx/inkscape/inkscape-1.1-r1.ebuild +++ b/media-gfx/inkscape/inkscape-1.1-r1.ebuild @@ -111,6 +111,9 @@ src_prepare() { eapply "${WORKDIR}/inkscape-1.1-musl/"*.patch eapply "${FILESDIR}"/${P}-poppler-21.11.0.patch + # Not yet accepted upstream but rather trivial + eapply "${FILESDIR}/${PN}-1.1.2-poppler-22.03.0.patch" # bug 835424 + cmake_src_prepare sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die } diff --git a/media-gfx/inkscape/inkscape-1.1.1.ebuild b/media-gfx/inkscape/inkscape-1.1.1.ebuild index e76f7867922d..a36c80fb7f88 100644 --- a/media-gfx/inkscape/inkscape-1.1.1.ebuild +++ b/media-gfx/inkscape/inkscape-1.1.1.ebuild @@ -97,6 +97,10 @@ RESTRICT="test" S="${WORKDIR}/${P}_2021-09-20_3bf5ae0d25" +PATCHES=( + "${FILESDIR}/${PN}-1.1.2-poppler-22.03.0.patch" # bug 835424 +) + pkg_pretend() { if [[ ${MERGE_TYPE} != binary ]] && use openmp; then tc-has-openmp || die "Please switch to an openmp compatible compiler" diff --git a/media-gfx/inkscape/inkscape-1.1.2.ebuild b/media-gfx/inkscape/inkscape-1.1.2.ebuild index 58011f3429ba..5f461759e758 100644 --- a/media-gfx/inkscape/inkscape-1.1.2.ebuild +++ b/media-gfx/inkscape/inkscape-1.1.2.ebuild @@ -105,6 +105,10 @@ RESTRICT="!test? ( test )" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}/${PN}-1.1.2-poppler-22.03.0.patch" # bug 835424 +) + pkg_pretend() { if [[ ${MERGE_TYPE} != binary ]] && use openmp; then tc-has-openmp || die "Please switch to an openmp compatible compiler"