commit:     ca803bef78ff27b3f3fa6a92097bf72c9e707da2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  3 07:53:38 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 08:01:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca803bef

dev-libs/glib: build minimal glib for bootstrapping introspection

Pass various options down to the glib subproject for the bootstrapping
gobject-introspection part.

This fixes an automagic build failure with DTrace at least as well
as speeding up the build a bit. But overall, it should make it more
robust as it's affected by fewer components.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/glib/glib-2.80.5.ebuild | 17 +++++++++++++++++
 dev-libs/glib/glib-2.82.2.ebuild | 17 +++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/dev-libs/glib/glib-2.80.5.ebuild b/dev-libs/glib/glib-2.80.5.ebuild
index 22a8e5f6665b..89ca28c092cd 100644
--- a/dev-libs/glib/glib-2.80.5.ebuild
+++ b/dev-libs/glib/glib-2.80.5.ebuild
@@ -224,6 +224,23 @@ multilib_src_configure() {
                        --force-fallback-for=glib
                        # Tell meson to make paths in pkgconfig files relative, 
because we arent doing an actual install
                        -Dpkgconfig.relocatable=true
+
+                       # We want as minimal a build as possible here to speed 
things up
+                       # and reduce the risk of failures.
+                       -Dglib:selinux=disabled
+                       -Dglib:xattr=false
+                       -Dglib:libmount=disabled
+                       -Dglib:man-pages=disabled
+                       -Dglib:dtrace=false
+                       -Dglib:systemtap=false
+                       -Dglib:sysprof=disabled
+                       -Dglib:documentation=false
+                       -Dglib:tests=false
+                       -Dglib:installed_tests=false
+                       -Dglib:nls=disabled
+                       -Dglib:oss_fuzz=disabled
+                       -Dglib:libelf=disabled
+                       -Dglib:multiarch=false
                )
 
                ORIG_SOURCE_DIR=${EMESON_SOURCE}

diff --git a/dev-libs/glib/glib-2.82.2.ebuild b/dev-libs/glib/glib-2.82.2.ebuild
index 0f09238ad661..a088dd47af25 100644
--- a/dev-libs/glib/glib-2.82.2.ebuild
+++ b/dev-libs/glib/glib-2.82.2.ebuild
@@ -224,6 +224,23 @@ multilib_src_configure() {
                        --force-fallback-for=glib
                        # Tell meson to make paths in pkgconfig files relative, 
because we arent doing an actual install
                        -Dpkgconfig.relocatable=true
+
+                       # We want as minimal a build as possible here to speed 
things up
+                       # and reduce the risk of failures.
+                       -Dglib:selinux=disabled
+                       -Dglib:xattr=false
+                       -Dglib:libmount=disabled
+                       -Dglib:man-pages=disabled
+                       -Dglib:dtrace=false
+                       -Dglib:systemtap=false
+                       -Dglib:sysprof=disabled
+                       -Dglib:documentation=false
+                       -Dglib:tests=false
+                       -Dglib:installed_tests=false
+                       -Dglib:nls=disabled
+                       -Dglib:oss_fuzz=disabled
+                       -Dglib:libelf=disabled
+                       -Dglib:multiarch=false
                )
 
                ORIG_SOURCE_DIR=${EMESON_SOURCE}

Reply via email to