commit: 474e90962e3fe862aabdf1a0014d99d46dd272c7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Mar 9 17:52:26 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Mar 9 17:53:23 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=474e9096
x11-terms/xfce4-terminal: Fix build without wayland Closes: https://bugs.gentoo.org/971012 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../files/xfce4-terminal-1.2.0-no-wayland.patch | 32 ++++++++++++++++++++++ .../xfce4-terminal/xfce4-terminal-1.2.0.ebuild | 5 ++++ 2 files changed, 37 insertions(+) diff --git a/x11-terms/xfce4-terminal/files/xfce4-terminal-1.2.0-no-wayland.patch b/x11-terms/xfce4-terminal/files/xfce4-terminal-1.2.0-no-wayland.patch new file mode 100644 index 000000000000..bd822413db17 --- /dev/null +++ b/x11-terms/xfce4-terminal/files/xfce4-terminal-1.2.0-no-wayland.patch @@ -0,0 +1,32 @@ +From b07d9546a08a3cd70b7e9aaad7a86256fbe32b8b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <[email protected]> +Date: Sun, 8 Mar 2026 22:23:34 +0100 +Subject: [PATCH] build: Properly guard wayland code + +Closes: #383 +Fixes: ab0136ac39d1eb0849dcfca84bbd91e8562a7176 +--- + terminal/terminal-window-dropdown.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c +index 6f9e3b48..074a6ce0 100644 +--- a/terminal/terminal-window-dropdown.c ++++ b/terminal/terminal-window-dropdown.c +@@ -567,11 +567,13 @@ terminal_window_dropdown_finalize (GObject *object) + if (dropdown->animation_timeout_id != 0) + g_source_remove (dropdown->animation_timeout_id); + ++#ifdef HAVE_GTK_LAYER_SHELL + if (dropdown->set_monitor_idle_id != 0) + g_source_remove (dropdown->set_monitor_idle_id); + + if (dropdown->monitor_removed_idle_id != 0) + g_source_remove (dropdown->monitor_removed_idle_id); ++#endif + + if (dropdown->status_icon != NULL) + g_object_unref (G_OBJECT (dropdown->status_icon)); +-- +GitLab + diff --git a/x11-terms/xfce4-terminal/xfce4-terminal-1.2.0.ebuild b/x11-terms/xfce4-terminal/xfce4-terminal-1.2.0.ebuild index 1a497db15bd9..a04142855ba0 100644 --- a/x11-terms/xfce4-terminal/xfce4-terminal-1.2.0.ebuild +++ b/x11-terms/xfce4-terminal/xfce4-terminal-1.2.0.ebuild @@ -39,6 +39,11 @@ BDEPEND=" virtual/pkgconfig " +PATCHES=( + # https://gitlab.xfce.org/apps/xfce4-terminal/-/commit/b07d9546a08a3cd70b7e9aaad7a86256fbe32b8b + "${FILESDIR}/${P}-no-wayland.patch" +) + src_configure() { local emesonargs=( $(meson_feature X x11)
