summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch112
-rw-r--r--meta-gnome/recipes-gnome/gnome-shell/gnome-shell_41.0.bb (renamed from meta-gnome/recipes-gnome/gnome-shell/gnome-shell_3.34.5.bb)12
2 files changed, 120 insertions, 4 deletions
diff --git a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch
new file mode 100644
index 0000000000..15e3c8c647
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch
@@ -0,0 +1,112 @@
1From 3bf597b16e23cd2ce0ee3b05c23b46add5e26cd4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Thu, 28 Oct 2021 18:57:24 +0200
4Subject: [PATCH] Introduce options 'gjs_path' to optionally set path to gjs
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Pending
10
11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
12---
13 js/dbusServices/meson.build | 2 +-
14 meson.build | 6 +++++-
15 meson_options.txt | 6 ++++++
16 subprojects/extensions-app/js/meson.build | 2 +-
17 subprojects/extensions-app/meson.build | 7 ++++++-
18 subprojects/extensions-app/meson_options.txt | 6 ++++++
19 6 files changed, 25 insertions(+), 4 deletions(-)
20
21diff --git a/js/dbusServices/meson.build b/js/dbusServices/meson.build
22index 68e8bd12d..16efaebe5 100644
23--- a/js/dbusServices/meson.build
24+++ b/js/dbusServices/meson.build
25@@ -27,7 +27,7 @@ foreach service, dir : dbus_services
26
27 serviceconf = configuration_data()
28 serviceconf.set('service', service)
29- serviceconf.set('gjs', gjs.path())
30+ serviceconf.set('gjs', gjs)
31 serviceconf.set('pkgdatadir', pkgdatadir)
32
33 configure_file(
34diff --git a/meson.build b/meson.build
35index d4583ecf2..3448c6312 100644
36--- a/meson.build
37+++ b/meson.build
38@@ -138,7 +138,11 @@ endif
39
40 mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir')
41 python = find_program('python3')
42-gjs = find_program('gjs')
43+if get_option('gjs_path') == ''
44+ gjs = find_program('gjs')
45+else
46+ gjs = get_option('gjs_path')
47+endif
48
49 cc = meson.get_compiler('c')
50
51diff --git a/meson_options.txt b/meson_options.txt
52index f0f2ecf6c..a45f2e453 100644
53--- a/meson_options.txt
54+++ b/meson_options.txt
55@@ -45,3 +45,9 @@ option('soup2',
56 value: true,
57 description: 'Use Soup 2.4 instead of Soup 3. Must be in sync with libgweather'
58 )
59+
60+option('gjs_path',
61+ type: 'string',
62+ value: '',
63+ description: 'Instead of searching gjs executable, configure path'
64+)
65diff --git a/subprojects/extensions-app/js/meson.build b/subprojects/extensions-app/js/meson.build
66index f311db6e0..8f7bba4e4 100644
67--- a/subprojects/extensions-app/js/meson.build
68+++ b/subprojects/extensions-app/js/meson.build
69@@ -9,7 +9,7 @@ endif
70 launcherconf.set('prefix', prefix)
71 launcherconf.set('libdir', libdir)
72 launcherconf.set('pkgdatadir', pkgdatadir)
73-launcherconf.set('gjs', gjs.path())
74+launcherconf.set('gjs', gjs)
75
76 configure_file(
77 input: prgname + '.in',
78diff --git a/subprojects/extensions-app/meson.build b/subprojects/extensions-app/meson.build
79index f9ccfc24d..bdf118975 100644
80--- a/subprojects/extensions-app/meson.build
81+++ b/subprojects/extensions-app/meson.build
82@@ -44,7 +44,12 @@ localedir = join_paths(datadir, 'locale')
83 metainfodir = join_paths(datadir, 'metainfo')
84 servicedir = join_paths(datadir, 'dbus-1', 'services')
85
86-gjs = find_program('gjs')
87+if get_option('gjs_path') == ''
88+ gjs = find_program('gjs')
89+else
90+ gjs = get_option('gjs_path')
91+endif
92+
93 appstream_util = find_program('appstream-util', required: false)
94 desktop_file_validate = find_program('desktop-file-validate', required: false)
95
96diff --git a/subprojects/extensions-app/meson_options.txt b/subprojects/extensions-app/meson_options.txt
97index ca2eb4115..2787785bf 100644
98--- a/subprojects/extensions-app/meson_options.txt
99+++ b/subprojects/extensions-app/meson_options.txt
100@@ -10,3 +10,9 @@ option('profile',
101 ],
102 value: 'default'
103 )
104+
105+option('gjs_path',
106+ type: 'string',
107+ value: '',
108+ description: 'Instead of searching gjs executable, configure path'
109+)
110--
1112.31.1
112
diff --git a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_3.34.5.bb b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_41.0.bb
index b1aa519a05..6ac2973b9e 100644
--- a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_3.34.5.bb
+++ b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_41.0.bb
@@ -4,14 +4,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4 4
5GNOMEBASEBUILDCLASS = "meson" 5GNOMEBASEBUILDCLASS = "meson"
6 6
7inherit gnomebase gsettings gettext gobject-introspection features_check upstream-version-is-even bash-completion 7inherit gnomebase gsettings gettext gobject-introspection features_check bash-completion
8 8
9REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam" 9REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam"
10 10
11DEPENDS = " \ 11DEPENDS = " \
12 libxml2-native \ 12 libxml2-native \
13 sassc-native \ 13 sassc-native \
14 gtk+3 \ 14 gtk4 \
15 mutter \ 15 mutter \
16 evolution-data-server \ 16 evolution-data-server \
17 gcr \ 17 gcr \
@@ -30,8 +30,8 @@ GTKDOC_MESON_OPTION = "gtk_doc"
30REQUIRED_DISTRO_FEATURES += "gobject-introspection-data" 30REQUIRED_DISTRO_FEATURES += "gobject-introspection-data"
31UNKNOWN_CONFIGURE_WHITELIST:append = " introspection" 31UNKNOWN_CONFIGURE_WHITELIST:append = " introspection"
32 32
33SRC_URI[archive.md5sum] = "4bd27c8a91d30fde78cb69b94677cf1f" 33SRC_URI[archive.sha256sum] = "52f971e85140e5de74b9369ef6656e49ce95af1f232fc1e0df1f046129ab4f65"
34SRC_URI[archive.sha256sum] = "d296f318a74a6d7883358a6ce1c4d8808b7903dbbb4f9c61ab4230f18e6d7550" 34SRC_URI += "file://0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch"
35 35
36PACKAGECONFIG ??= "bluetooth nm ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 36PACKAGECONFIG ??= "bluetooth nm ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
37PACKAGECONFIG[bluetooth] = ",,gnome-bluetooth" 37PACKAGECONFIG[bluetooth] = ",,gnome-bluetooth"
@@ -39,6 +39,9 @@ PACKAGECONFIG[nm] = "-Dnetworkmanager=true, -Dnetworkmanager=false, networkmanag
39PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd" 39PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd"
40 40
41EXTRA_OEMESON = " \ 41EXTRA_OEMESON = " \
42 -Dgjs_path=${bindir}/gjs \
43 -Dextensions-app:gjs_path=${bindir}/gjs \
44 -Dtests=false \
42 -Dman=false \ 45 -Dman=false \
43" 46"
44 47
@@ -52,6 +55,7 @@ do_install:append() {
52GSETTINGS_PACKAGE = "${PN}-gsettings" 55GSETTINGS_PACKAGE = "${PN}-gsettings"
53 56
54FILES:${PN} += " \ 57FILES:${PN} += " \
58 ${datadir}/metainfo \
55 ${datadir}/dbus-1 \ 59 ${datadir}/dbus-1 \
56 ${datadir}/gnome-control-center \ 60 ${datadir}/gnome-control-center \
57 ${datadir}/xdg-desktop-portal \ 61 ${datadir}/xdg-desktop-portal \