app-text/poppler: fix pkg-config

if cairo and introspection are enabled, giscanner is called and
PKG_CONFIG must be defined to avoid 'pkg-config' by default.
> ERROR: pkg-config: error executing command ['pkg-config', '--cflags',
> 'gobject-2.0', 'glib-2.0', 'cairo-gobject', 'gio-2.0', 'gmodule-2.0',
> 'gio-unix-2.0']: [Errno 2] No such file or directory: 'pkg-config'

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45612
Closes: https://github.com/gentoo/gentoo/pull/45612
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2026-02-03 09:43:23 +01:00
committed by Sam James
parent b07b38d304
commit ff6364e6f1
2 changed files with 8 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ src_configure() {
xdg_environment_reset
append-lfs-flags # bug #898506
# giscanner is called if cairo and introspection are enabled.
# In that case, PKG_CONFIG must be defined.
tc-export PKG_CONFIG
local mycmakeargs=(
-DBUILD_GTK_TESTS=OFF
-DBUILD_QT5_TESTS=OFF

View File

@@ -97,6 +97,10 @@ src_configure() {
xdg_environment_reset
append-lfs-flags # bug #898506
# giscanner is called if cairo and introspection are enabled.
# In that case, PKG_CONFIG must be defined.
tc-export PKG_CONFIG
local mycmakeargs=(
-DBUILD_GTK_TESTS=OFF
-DBUILD_QT5_TESTS=OFF