commit:     0988ef1034175424490a94733ae8ef250c861b8c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 05:36:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 05:36:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0988ef10

dev-libs/glib: try to constrain scope of PKG_CONFIG_* mangling for bootstrap

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

 dev-libs/glib/glib-2.84.4.ebuild | 5 +++--
 dev-libs/glib/glib-2.86.1.ebuild | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-libs/glib/glib-2.84.4.ebuild b/dev-libs/glib/glib-2.84.4.ebuild
index 17e1fc80ac63..e3897427ee6a 100644
--- a/dev-libs/glib/glib-2.84.4.ebuild
+++ b/dev-libs/glib/glib-2.84.4.ebuild
@@ -306,15 +306,16 @@ multilib_src_configure() {
                export PATH="${INTROSPECTION_BIN_DIR}:${PATH}"
 
                # Override primary pkgconfig search paths to prioritize our 
internal copy
-               export 
PKG_CONFIG_LIBDIR="${INTROSPECTION_LIB_DIR}/pkgconfig:${INTROSPECTION_BUILD_DIR}/meson-private:$($(tc-getPKG_CONFIG)
 --variable pc_system_libdirs pkg-config)"
+               local -x 
PKG_CONFIG_LIBDIR="${INTROSPECTION_LIB_DIR}/pkgconfig:${INTROSPECTION_BUILD_DIR}/meson-private:$($(tc-getPKG_CONFIG)
 --variable pc_system_libdirs pkg-config)"
 
                # Set the normal primary pkgconfig search paths as secondary
                # (We also need to prepend our just-built one for later use of
                # g-ir-scanner to use the new one and to help workaround bugs 
like
                # bug #946221.)
-               export 
PKG_CONFIG_PATH="${PKG_CONFIG_LIBDIR}:$($(tc-getPKG_CONFIG) --variable pc_path 
pkg-config)"
+               local -x 
PKG_CONFIG_PATH="${PKG_CONFIG_LIBDIR}:$($(tc-getPKG_CONFIG) --variable pc_path 
pkg-config)"
 
                # Add the paths to the built glib libraries to the library path 
so that gobject-introspection can load them
+               local gliblib
                for gliblib in glib gobject gthread gmodule gio girepository; do
                        export 
LD_LIBRARY_PATH="${BUILD_DIR}/${gliblib}:${LD_LIBRARY_PATH}"
                done

diff --git a/dev-libs/glib/glib-2.86.1.ebuild b/dev-libs/glib/glib-2.86.1.ebuild
index 9cfd31d4e4f5..099b5296dc6e 100644
--- a/dev-libs/glib/glib-2.86.1.ebuild
+++ b/dev-libs/glib/glib-2.86.1.ebuild
@@ -306,15 +306,16 @@ multilib_src_configure() {
                export PATH="${INTROSPECTION_BIN_DIR}:${PATH}"
 
                # Override primary pkgconfig search paths to prioritize our 
internal copy
-               export 
PKG_CONFIG_LIBDIR="${INTROSPECTION_LIB_DIR}/pkgconfig:${INTROSPECTION_BUILD_DIR}/meson-private:$($(tc-getPKG_CONFIG)
 --variable pc_system_libdirs pkg-config)"
+               local -x 
PKG_CONFIG_LIBDIR="${INTROSPECTION_LIB_DIR}/pkgconfig:${INTROSPECTION_BUILD_DIR}/meson-private:$($(tc-getPKG_CONFIG)
 --variable pc_system_libdirs pkg-config)"
 
                # Set the normal primary pkgconfig search paths as secondary
                # (We also need to prepend our just-built one for later use of
                # g-ir-scanner to use the new one and to help workaround bugs 
like
                # bug #946221.)
-               export 
PKG_CONFIG_PATH="${PKG_CONFIG_LIBDIR}:$($(tc-getPKG_CONFIG) --variable pc_path 
pkg-config)"
+               local -x 
PKG_CONFIG_PATH="${PKG_CONFIG_LIBDIR}:$($(tc-getPKG_CONFIG) --variable pc_path 
pkg-config)"
 
                # Add the paths to the built glib libraries to the library path 
so that gobject-introspection can load them
+               local gliblib
                for gliblib in glib gobject gthread gmodule gio girepository; do
                        export 
LD_LIBRARY_PATH="${BUILD_DIR}/${gliblib}:${LD_LIBRARY_PATH}"
                done

Reply via email to