From ff6364e6f18a8a6c9145c71b99bff865152b6861 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Tue, 3 Feb 2026 09:43:23 +0100 Subject: [PATCH] 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 Part-of: https://github.com/gentoo/gentoo/pull/45612 Closes: https://github.com/gentoo/gentoo/pull/45612 Signed-off-by: Sam James --- app-text/poppler/poppler-26.01.0.ebuild | 4 ++++ app-text/poppler/poppler-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app-text/poppler/poppler-26.01.0.ebuild b/app-text/poppler/poppler-26.01.0.ebuild index b06a28783f134..df1affdf44ac6 100644 --- a/app-text/poppler/poppler-26.01.0.ebuild +++ b/app-text/poppler/poppler-26.01.0.ebuild @@ -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 diff --git a/app-text/poppler/poppler-9999.ebuild b/app-text/poppler/poppler-9999.ebuild index 1f544780d6813..7d03e1bb41d0d 100644 --- a/app-text/poppler/poppler-9999.ebuild +++ b/app-text/poppler/poppler-9999.ebuild @@ -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