summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gnome-terminal
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-01-07 14:25:25 +0100
committerKhem Raj <raj.khem@gmail.com>2024-01-08 19:54:39 -0800
commitde8b61ef0e21de8768a097697a4183266e829059 (patch)
treecab6b6062108a1ee3863636626e571bf55b38261 /meta-gnome/recipes-gnome/gnome-terminal
parent34794c0c28eb945d24902fbba58dafb61829850e (diff)
downloadmeta-openembedded-de8b61ef0e21de8768a097697a4183266e829059.tar.gz
gnome-terminal: fix search_provider build
currently org.gnome.ShellSearchProvider2.xml is read from host machine and thus gnome-terminal with search_provider enabled can only be build from a host system that has gnome-shell installed. Add an option and set it to STAGING_DATADIR to avoid: | DEBUG: Executing shell function do_compile | ninja: error: '/usr/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml', needed by 'src/terminal-search-provider-gdbus-generated.c', missing and no known rule to make it Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-gnome/gnome-terminal')
-rw-r--r--meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal/0001-meson-add-option-to-set-dbus_interfacedir.patch63
-rw-r--r--meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal_3.50.1.bb10
2 files changed, 69 insertions, 4 deletions
diff --git a/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal/0001-meson-add-option-to-set-dbus_interfacedir.patch b/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal/0001-meson-add-option-to-set-dbus_interfacedir.patch
new file mode 100644
index 0000000000..9f8475bdd2
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal/0001-meson-add-option-to-set-dbus_interfacedir.patch
@@ -0,0 +1,63 @@
1From 61668e1eb86a316d4ad9a6b9cacf8c8cc74a0c33 Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Sun, 7 Jan 2024 10:40:31 +0100
4Subject: [PATCH] meson: add an option to set dbus_interface_dir
5
6Add an option that allows to set the dbus_interface_dir path manually.
7This will help to cross-compile gnome-terminal on host systems that
8don't have gnome-shell installed.
9
10Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/8046]
11
12Signed-off-by: Markus Volk <f_l_k@t-online.de>
13---
14 meson_options.txt | 7 +++++++
15 src/meson.build | 7 ++++++-
16 2 files changed, 13 insertions(+), 1 deletion(-)
17
18diff --git a/meson_options.txt b/meson_options.txt
19index b555ab66..8fece058 100644
20--- a/meson_options.txt
21+++ b/meson_options.txt
22@@ -13,6 +13,13 @@
23 # You should have received a copy of the GNU General Public License
24 # along with this programme. If not, see <https://www.gnu.org/licenses/>.
25
26+option(
27+ 'dbus_interface_dir',
28+ type: 'string',
29+ value: '',
30+ description: 'directory for D-Bus session interface files [$datadir/dbus-1/interfaces]',
31+)
32+
33 option(
34 'dbg',
35 type: 'boolean',
36diff --git a/src/meson.build b/src/meson.build
37index 27ecd893..420ad45c 100644
38--- a/src/meson.build
39+++ b/src/meson.build
40@@ -185,6 +185,11 @@ server_sources = app_sources + client_util_sources + debug_sources + dbus_source
41
42 if get_option('search_provider')
43
44+ dbus_interface_dir = get_option('dbus_interface_dir')
45+ if dbus_interface_dir == ''
46+ dbus_interface_dir = gt_prefix / gt_dbusinterfacedir
47+ endif
48+
49 server_sources += files(
50 'terminal-search-provider.cc',
51 'terminal-search-provider.hh',
52@@ -192,7 +197,7 @@ if get_option('search_provider')
53
54 server_sources += gnome.gdbus_codegen(
55 'terminal-search-provider-gdbus-generated',
56- gt_prefix / gt_dbusinterfacedir / 'org.gnome.ShellSearchProvider2.xml',
57+ dbus_interface_dir / 'org.gnome.ShellSearchProvider2.xml',
58 autocleanup: 'none',
59 install_header: false,
60 interface_prefix: 'org.gnome.Shell',
61--
622.43.0
63
diff --git a/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal_3.50.1.bb b/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal_3.50.1.bb
index 8616f2c9b0..53f11e95fb 100644
--- a/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal_3.50.1.bb
+++ b/meta-gnome/recipes-gnome/gnome-terminal/gnome-terminal_3.50.1.bb
@@ -19,15 +19,17 @@ DEPENDS = " \
19 libpcre2 \ 19 libpcre2 \
20" 20"
21 21
22SRC_URI = "git://gitlab.gnome.org/GNOME/gnome-terminal.git;protocol=https;nobranch=1 \ 22SRC_URI = " \
23 file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \ 23 git://gitlab.gnome.org/GNOME/gnome-terminal.git;protocol=https;nobranch=1 \
24 " 24 file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \
25 file://0001-meson-add-option-to-set-dbus_interfacedir.patch \
26"
25SRCREV = "5ac3b8e4bd6fa02651b3c23cedb0a7e1cd769655" 27SRCREV = "5ac3b8e4bd6fa02651b3c23cedb0a7e1cd769655"
26S = "${WORKDIR}/git" 28S = "${WORKDIR}/git"
27 29
28PACKAGECONFIG ?= "" 30PACKAGECONFIG ?= ""
29PACKAGECONFIG[nautilus] = "-Dnautilus_extension=true,-Dnautilus_extension=false,nautilus,nautilus" 31PACKAGECONFIG[nautilus] = "-Dnautilus_extension=true,-Dnautilus_extension=false,nautilus,nautilus"
30PACKAGECONFIG[search_provider] = "-Dsearch_provider=true,-Dsearch_provider=false,,gnome-shell" 32PACKAGECONFIG[search_provider] = "-Dsearch_provider=true -Ddbus_interface_dir=${STAGING_DATADIR}/dbus-1/interfaces,-Dsearch_provider=false,gnome-shell"
31 33
32FILES:${PN} += " \ 34FILES:${PN} += " \
33 ${datadir} \ 35 ${datadir} \