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