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 E97E2158094 for ; Fri, 2 Sep 2022 04:38:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02133E094F; Fri, 2 Sep 2022 04:38:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1DA5E094F for ; Fri, 2 Sep 2022 04:38:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 EA25E3411E6 for ; Fri, 2 Sep 2022 04:38:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 600155B2 for ; Fri, 2 Sep 2022 04:38:06 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1662093447.5908d48769d80baedb730c61b2605a983d97bb0f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/scribus/, app-office/scribus/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/scribus/files/scribus-1.5.8-poppler-22.09.0.patch app-office/scribus/scribus-1.5.8-r1.ebuild X-VCS-Directories: app-office/scribus/files/ app-office/scribus/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5908d48769d80baedb730c61b2605a983d97bb0f X-VCS-Branch: master Date: Fri, 2 Sep 2022 04:38:06 +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: 5b317e55-34fa-457c-99f8-445290829532 X-Archives-Hash: 34acbb8c1f7dafc50e5e0a0140493d0a commit: 5908d48769d80baedb730c61b2605a983d97bb0f Author: Sam James gentoo org> AuthorDate: Fri Sep 2 04:37:21 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 2 04:37:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5908d487 app-office/scribus: fix build with Poppler 22.09.0 Signed-off-by: Sam James gentoo.org> .../files/scribus-1.5.8-poppler-22.09.0.patch | 20 ++++++++++++++++++++ app-office/scribus/scribus-1.5.8-r1.ebuild | 1 + 2 files changed, 21 insertions(+) diff --git a/app-office/scribus/files/scribus-1.5.8-poppler-22.09.0.patch b/app-office/scribus/files/scribus-1.5.8-poppler-22.09.0.patch new file mode 100644 index 000000000000..106a6f5162b6 --- /dev/null +++ b/app-office/scribus/files/scribus-1.5.8-poppler-22.09.0.patch @@ -0,0 +1,20 @@ +--- a/scribus/plugins/import/pdf/slaoutput.cpp ++++ b/scribus/plugins/import/pdf/slaoutput.cpp +@@ -3741,9 +3741,16 @@ void SlaOutputDev::getPenState(GfxState *state) + break; + } + double lw = state->getLineWidth(); +- double *dashPattern; + int dashLength; ++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 9, 0) ++ const double *dashPattern; ++ const std::vector &dash = state->getLineDash(&DashOffset); ++ dashPattern = dash.data(); ++ dashLength = dash.size(); ++#else ++ double *dashPattern; + state->getLineDash(&dashPattern, &dashLength, &DashOffset); ++#endif + QVector pattern(dashLength); + for (int i = 0; i < dashLength; ++i) + { diff --git a/app-office/scribus/scribus-1.5.8-r1.ebuild b/app-office/scribus/scribus-1.5.8-r1.ebuild index 5457bc6ee17f..175ae6cd558b 100644 --- a/app-office/scribus/scribus-1.5.8-r1.ebuild +++ b/app-office/scribus/scribus-1.5.8-r1.ebuild @@ -80,6 +80,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.5.8-poppler-22.2.0-2.patch "${FILESDIR}"/${PN}-1.5.8-poppler-22.03.0.patch # bug 834537 "${FILESDIR}"/${PN}-1.5.8-poppler-22.04.0.patch # bug 843287 + "${FILESDIR}"/${PN}-1.5.8-poppler-22.09.0.patch ) CMAKE_BUILD_TYPE="Release"