summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2024-04-15 10:02:13 +0300
committerMart Raudsepp <leio@gentoo.org>2024-04-15 10:02:13 +0300
commit89550f1ceb58051c2d518b0e0103300a05ea80b5 (patch)
tree6fc57117b6efc14a7fefc42f8cfec3b8437c1aa2 /dev-util/gnome-builder
parentnet-libs/gnutls: add 3.8.5 (diff)
downloadgentoo-89550f1ceb58051c2d518b0e0103300a05ea80b5.tar.gz
gentoo-89550f1ceb58051c2d518b0e0103300a05ea80b5.tar.bz2
gentoo-89550f1ceb58051c2d518b0e0103300a05ea80b5.zip
dev-util/gnome-builder: Fix build against gui-libs/gtk-4.12.5
Closes: https://bugs.gentoo.org/923371 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'dev-util/gnome-builder')
-rw-r--r--dev-util/gnome-builder/files/44.2-fix-gtk-4.12.5-build.patch26
-rw-r--r--dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild8
2 files changed, 33 insertions, 1 deletions
diff --git a/dev-util/gnome-builder/files/44.2-fix-gtk-4.12.5-build.patch b/dev-util/gnome-builder/files/44.2-fix-gtk-4.12.5-build.patch
new file mode 100644
index 000000000000..eccf90851fb7
--- /dev/null
+++ b/dev-util/gnome-builder/files/44.2-fix-gtk-4.12.5-build.patch
@@ -0,0 +1,26 @@
+From 43a7c586b7291b5cf82febdaa80b4fe4efea8f54 Mon Sep 17 00:00:00 2001
+From: Christian Hergert <chergert@redhat.com>
+Date: Mon, 15 Jan 2024 11:54:38 -0800
+Subject: [PATCH] libide/tweaks: remove autoptr cleanup
+
+This is not needed now with recent GTK changes merged this morning.
+---
+ src/libide/tweaks/ide-tweaks-window.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/libide/tweaks/ide-tweaks-window.c b/src/libide/tweaks/ide-tweaks-window.c
+index f2553a396..dcb55bb35 100644
+--- a/src/libide/tweaks/ide-tweaks-window.c
++++ b/src/libide/tweaks/ide-tweaks-window.c
+@@ -32,8 +32,6 @@
+ #include "ide-tweaks-panel-list-private.h"
+ #include "ide-tweaks-window.h"
+
+-G_DEFINE_AUTOPTR_CLEANUP_FUNC (GtkStackPage, g_object_unref)
+-
+ struct _IdeTweaksWindow
+ {
+ AdwWindow parent_instance;
+--
+2.43.0
+
diff --git a/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild b/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild
index b99f6335b15c..8dd7656ce8b7 100644
--- a/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild
+++ b/dev-util/gnome-builder/gnome-builder-44.2-r1.ebuild
@@ -31,10 +31,12 @@ REQUIRED_USE="
# Editorconfig needs old pcre, with vte migrating away, might want it optional or ported to pcre2?
# An introspection USE flag of a dep is required if any introspection based language plugin wants to use it (grep for gi.repository). Last full check at 3.28.4
+# >=gtk-4.12.5 for relying on GtkStackPage autoptr cleanup added in that version
+
# TODO: Handle llvm slots via llvm.eclass; see plugins/clang/meson.build
RDEPEND="
>=dev-libs/glib-2.75.0:2
- >=gui-libs/gtk-4.8:4[introspection]
+ >=gui-libs/gtk-4.12.5:4[introspection]
>=gui-libs/libadwaita-1.3.0:1
>=gui-libs/libpanel-1.1.2:1
>=gui-libs/gtksourceview-5.7.2:5[introspection]
@@ -126,6 +128,10 @@ that are currently available with packages include:
# stylelint for stylesheet (CSS and co) linting
# gvls for vala language-server integration
+PATCHES=(
+ "${FILESDIR}"/${PV}-fix-gtk-4.12.5-build.patch
+)
+
llvm_check_deps() {
has_version "sys-devel/clang:${LLVM_SLOT}"
}