From 30803fff33baacb54615ff7fbf803671cbd762fe Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Thu, 10 Sep 2026 22:45:27 +0100 Subject: [PATCH] x11-themes/arc-theme: Patch to fix build with newer Meson Thanks to Aaron Masover. Closes: https://bugs.gentoo.org/981315 Signed-off-by: James Le Cuirot --- .../arc-theme/arc-theme-20221218-r1.ebuild | 6 ++++- .../files/arc-theme-20221218-meson-1.12.patch | 26 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 x11-themes/arc-theme/files/arc-theme-20221218-meson-1.12.patch diff --git a/x11-themes/arc-theme/arc-theme-20221218-r1.ebuild b/x11-themes/arc-theme/arc-theme-20221218-r1.ebuild index a599ec070e3e4..a184046bf6805 100644 --- a/x11-themes/arc-theme/arc-theme-20221218-r1.ebuild +++ b/x11-themes/arc-theme/arc-theme-20221218-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_COMPAT=( python3_{12..14} ) inherit meson python-any-r1 @@ -53,6 +53,10 @@ RDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-meson-1.12.patch +) + src_configure() { # Cinnamon still uses metacity themes for its window manager. # so we enable metacity theme too if USE=cinnamon diff --git a/x11-themes/arc-theme/files/arc-theme-20221218-meson-1.12.patch b/x11-themes/arc-theme/files/arc-theme-20221218-meson-1.12.patch new file mode 100644 index 0000000000000..85a375de22e2b --- /dev/null +++ b/x11-themes/arc-theme/files/arc-theme-20221218-meson-1.12.patch @@ -0,0 +1,26 @@ +From ff6f49f32de68ed0ec9405a1ed73e9e845c77b1c Mon Sep 17 00:00:00 2001 +From: Aaron Masover +Date: Wed, 19 Aug 2026 23:47:53 -0600 +Subject: [PATCH] gnome-shell: exclude directories from gresource depend_files + +The find that collects gresource asset dependencies also prints the +three searched directories themselves. Meson 1.12 validates every +depend_files entry as an existing *file* (File.from_source_file uses +os.path.isfile), so configuring with -Dgnome_shell_gresource=true now +fails on the first entry: + + common/gnome-shell/meson.build:98:28: ERROR: File .../icons does not exist. + +Meson 1.11.2 and earlier did not validate these entries, which is why +the same tree configured fine before. Filter the find to exclude +directories. +--- a/common/gnome-shell/meson.build ++++ b/common/gnome-shell/meson.build +@@ -90,6 +90,7 @@ foreach variant : get_option('variants') + meson.current_source_dir() / gnome_shell_ver / 'icons', + meson.current_source_dir() / gnome_shell_ver / 'common-assets', + meson.current_source_dir() / gnome_shell_ver / variant + '-assets', ++ '-not', '-type', 'd', + check : true + ).stdout().split() +