From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1465487-garchives=archives.gentoo.org@lists.gentoo.org>
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 E4E23158020
	for <garchives@archives.gentoo.org>; Fri,  9 Dec 2022 21:27:40 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 110F6E0866;
	Fri,  9 Dec 2022 21:27:40 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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 E8724E0866
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Dec 2022 21:27:39 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 04E43340FA9
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Dec 2022 21:27:39 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7817675
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Dec 2022 21:27:37 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1670621217.17f87b4fff4a298528282c1f56e856c8adf39762.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
X-VCS-Directories: app-text/ghostscript-gpl/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 17f87b4fff4a298528282c1f56e856c8adf39762
X-VCS-Branch: master
Date: Fri,  9 Dec 2022 21:27:37 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: aaf613d7-9a80-4328-9168-9cb5dbca357d
X-Archives-Hash: 4e59e714e8fbb87e5b5aed2eb56a3102

commit:     17f87b4fff4a298528282c1f56e856c8adf39762
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  9 21:21:52 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  9 21:26:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f87b4f

app-text/ghostscript-gpl: filter LTO

Unsupported upstream.

Closes: https://bugs.gentoo.org/884841
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
index 6001ee7799d5..cfd631cb8085 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 MY_PN=${PN/-gpl}
 MY_P="${MY_PN}-${PV/_}"
@@ -116,13 +116,16 @@ src_prepare() {
 }
 
 src_configure() {
+	# Unsupported upstream, bug #884841
+	filter-lto
+
 	local FONTPATH
 	for path in \
 		"${EPREFIX}"/usr/share/fonts/urw-fonts \
 		"${EPREFIX}"/usr/share/fonts/Type1 \
 		"${EPREFIX}"/usr/share/fonts
 	do
-		FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
+		FONTPATH="${FONTPATH}${FONTPATH:+:}${EPREFIX}${path}"
 	done
 
 	PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
@@ -135,7 +138,7 @@ src_configure() {
 		--enable-openjpeg \
 		--disable-compile-inits \
 		--with-drivers=ALL \
-		--with-fontpath="$FONTPATH" \
+		--with-fontpath="${FONTPATH}" \
 		--with-ijs \
 		--with-jbig2dec \
 		--with-libpaper \