From b355a3e35f87fec714b62bef1b970c6df190f05d Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Sat, 5 Sep 2026 19:29:26 +0200 Subject: [PATCH] app-text/ghostscript-gpl: fix cross-compile cross compiling fails with error ``` configure: error: libcups/libcupsimage not found ``` set target config for `CUPSCONFIG` in cross build Bug: https://bugs.gentoo.org/982024 Signed-off-by: Pepper Gray Part-of: https://github.com/gentoo/gentoo/pull/46756 Closes: https://github.com/gentoo/gentoo/pull/46756 Signed-off-by: Sam James --- app-text/ghostscript-gpl/ghostscript-gpl-10.06.0-r2.ebuild | 3 +++ app-text/ghostscript-gpl/ghostscript-gpl-10.06.0.ebuild | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0-r2.ebuild index bdca788372e90..077a4b906693a 100644 --- a/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0-r2.ebuild +++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0-r2.ebuild @@ -159,6 +159,9 @@ src_configure() { FONTPATH="${FONTPATH}${FONTPATH:+:}${EPREFIX}${path}" done + # use target config in cross build, bug #982024 + use cups && local -x CUPSCONFIG="${ESYSROOT}/usr/bin/cups-config" + # Do not add --enable-dynamic here, it's not supported fully upstream # https://bugs.ghostscript.com/show_bug.cgi?id=705895 # bug #884707 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0.ebuild index ce671c1f7e792..dd4cb4518f927 100644 --- a/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0.ebuild +++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.06.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -146,6 +146,9 @@ src_configure() { FONTPATH="${FONTPATH}${FONTPATH:+:}${EPREFIX}${path}" done + # use target config in cross build, bug #982024 + use cups && local -x CUPSCONFIG="${ESYSROOT}/usr/bin/cups-config" + # Do not add --enable-dynamic here, it's not supported fully upstream # https://bugs.ghostscript.com/show_bug.cgi?id=705895 # bug #884707