diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.2.bb (renamed from meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.1.bb) | 2 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch | 124 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.2.bb (renamed from meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.1.bb) | 15 |
3 files changed, 11 insertions, 130 deletions
diff --git a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.1.bb b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.2.bb index a47548fbbb..6567704c47 100644 --- a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.1.bb +++ b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_47.2.bb | |||
| @@ -6,7 +6,7 @@ inherit gnomebase gettext gsettings features_check | |||
| 6 | 6 | ||
| 7 | REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data" | 7 | REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data" |
| 8 | 8 | ||
| 9 | SRC_URI[archive.sha256sum] = "e9438cc5d39f9875dfd04ea0abb51e5962eaad5c20274123243b1612098b3a85" | 9 | SRC_URI[archive.sha256sum] = "dd774a0291584917abde88bbc4eccf9244178e3c269ce0618d0495177c12652d" |
| 10 | 10 | ||
| 11 | EXTRA_OEMESON += " \ | 11 | EXTRA_OEMESON += " \ |
| 12 | -Dextension_set=all \ | 12 | -Dextension_set=all \ |
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 deleted file mode 100644 index 8ef0da16fe..0000000000 --- a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell/0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch +++ /dev/null | |||
| @@ -1,124 +0,0 @@ | |||
| 1 | From e9835f650d70bf22ad0e5d8c2179aa01b2d18955 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Thu, 28 Oct 2021 18:57:24 +0200 | ||
| 4 | Subject: [PATCH] Introduce options 'gjs_path' to optionally set path to gjs | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 10 | MIME-Version: 1.0 | ||
| 11 | Content-Type: text/plain; charset=UTF-8 | ||
| 12 | Content-Transfer-Encoding: 8bit | ||
| 13 | |||
| 14 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 15 | MIME-Version: 1.0 | ||
| 16 | Content-Type: text/plain; charset=UTF-8 | ||
| 17 | Content-Transfer-Encoding: 8bit | ||
| 18 | |||
| 19 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 20 | MIME-Version: 1.0 | ||
| 21 | Content-Type: text/plain; charset=UTF-8 | ||
| 22 | Content-Transfer-Encoding: 8bit | ||
| 23 | |||
| 24 | Upstream-Status: Pending | ||
| 25 | |||
| 26 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 27 | --- | ||
| 28 | js/dbusServices/meson.build | 2 +- | ||
| 29 | meson.build | 6 +++++- | ||
| 30 | meson_options.txt | 6 ++++++ | ||
| 31 | subprojects/extensions-app/js/meson.build | 2 +- | ||
| 32 | subprojects/extensions-app/meson.build | 7 ++++++- | ||
| 33 | subprojects/extensions-app/meson_options.txt | 6 ++++++ | ||
| 34 | 6 files changed, 25 insertions(+), 4 deletions(-) | ||
| 35 | |||
| 36 | diff --git a/js/dbusServices/meson.build b/js/dbusServices/meson.build | ||
| 37 | index 48b7f89..700b590 100644 | ||
| 38 | --- a/js/dbusServices/meson.build | ||
| 39 | +++ b/js/dbusServices/meson.build | ||
| 40 | @@ -22,7 +22,7 @@ foreach service, dir : dbus_services | ||
| 41 | |||
| 42 | serviceconf = configuration_data() | ||
| 43 | serviceconf.set('service', service) | ||
| 44 | - serviceconf.set('gjs', gjs.full_path()) | ||
| 45 | + serviceconf.set('gjs', gjs) | ||
| 46 | serviceconf.set('pkgdatadir', pkgdatadir) | ||
| 47 | |||
| 48 | configure_file( | ||
| 49 | diff --git a/meson.build b/meson.build | ||
| 50 | index a6d83b1..2c612a8 100644 | ||
| 51 | --- a/meson.build | ||
| 52 | +++ b/meson.build | ||
| 53 | @@ -134,7 +134,11 @@ endif | ||
| 54 | |||
| 55 | mutter_typelibdir = mutter_dep.get_variable('typelibdir') | ||
| 56 | python = find_program('python3') | ||
| 57 | -gjs = find_program('gjs') | ||
| 58 | +if get_option('gjs_path') == '' | ||
| 59 | + gjs = find_program('gjs') | ||
| 60 | +else | ||
| 61 | + gjs = get_option('gjs_path') | ||
| 62 | +endif | ||
| 63 | |||
| 64 | cc = meson.get_compiler('c') | ||
| 65 | |||
| 66 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 67 | index 6e83d92..1bf0ecb 100644 | ||
| 68 | --- a/meson_options.txt | ||
| 69 | +++ b/meson_options.txt | ||
| 70 | @@ -45,3 +45,9 @@ option('systemd', | ||
| 71 | value: true, | ||
| 72 | description: 'Enable systemd integration' | ||
| 73 | ) | ||
| 74 | + | ||
| 75 | +option('gjs_path', | ||
| 76 | + type: 'string', | ||
| 77 | + value: '', | ||
| 78 | + description: 'Instead of searching gjs executable, configure path' | ||
| 79 | +) | ||
| 80 | diff --git a/subprojects/extensions-app/js/meson.build b/subprojects/extensions-app/js/meson.build | ||
| 81 | index c9a67f8..91ae887 100644 | ||
| 82 | --- a/subprojects/extensions-app/js/meson.build | ||
| 83 | +++ b/subprojects/extensions-app/js/meson.build | ||
| 84 | @@ -9,7 +9,7 @@ endif | ||
| 85 | launcherconf.set('prefix', prefix) | ||
| 86 | launcherconf.set('libdir', libdir) | ||
| 87 | launcherconf.set('pkgdatadir', pkgdatadir) | ||
| 88 | -launcherconf.set('gjs', gjs.full_path()) | ||
| 89 | +launcherconf.set('gjs', gjs) | ||
| 90 | |||
| 91 | configure_file( | ||
| 92 | input: prgname + '.in', | ||
| 93 | diff --git a/subprojects/extensions-app/meson.build b/subprojects/extensions-app/meson.build | ||
| 94 | index 45f391b..d581408 100644 | ||
| 95 | --- a/subprojects/extensions-app/meson.build | ||
| 96 | +++ b/subprojects/extensions-app/meson.build | ||
| 97 | @@ -47,7 +47,12 @@ metainfodir = join_paths(datadir, 'metainfo') | ||
| 98 | schemadir = join_paths(datadir, 'glib-2.0', 'schemas') | ||
| 99 | servicedir = join_paths(datadir, 'dbus-1', 'services') | ||
| 100 | |||
| 101 | -gjs = find_program('gjs') | ||
| 102 | +if get_option('gjs_path') == '' | ||
| 103 | + gjs = find_program('gjs') | ||
| 104 | +else | ||
| 105 | + gjs = get_option('gjs_path') | ||
| 106 | +endif | ||
| 107 | + | ||
| 108 | appstream_util = find_program('appstream-util', required: false) | ||
| 109 | appstreamcli = find_program('appstreamcli', required: false) | ||
| 110 | desktop_file_validate = find_program('desktop-file-validate', required: false) | ||
| 111 | diff --git a/subprojects/extensions-app/meson_options.txt b/subprojects/extensions-app/meson_options.txt | ||
| 112 | index ca2eb41..2787785 100644 | ||
| 113 | --- a/subprojects/extensions-app/meson_options.txt | ||
| 114 | +++ b/subprojects/extensions-app/meson_options.txt | ||
| 115 | @@ -10,3 +10,9 @@ option('profile', | ||
| 116 | ], | ||
| 117 | value: 'default' | ||
| 118 | ) | ||
| 119 | + | ||
| 120 | +option('gjs_path', | ||
| 121 | + type: 'string', | ||
| 122 | + value: '', | ||
| 123 | + description: 'Instead of searching gjs executable, configure path' | ||
| 124 | +) | ||
diff --git a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.1.bb b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.2.bb index 042b3935a8..417f0a1816 100644 --- a/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.1.bb +++ b/meta-gnome/recipes-gnome/gnome-shell/gnome-shell_47.2.bb | |||
| @@ -33,21 +33,26 @@ GIR_MESON_OPTION = "" | |||
| 33 | # gobject-introspection is mandatory and cannot be configured | 33 | # gobject-introspection is mandatory and cannot be configured |
| 34 | REQUIRED_DISTRO_FEATURES += "gobject-introspection-data" | 34 | REQUIRED_DISTRO_FEATURES += "gobject-introspection-data" |
| 35 | 35 | ||
| 36 | SRC_URI[archive.sha256sum] = "b467575f8c159d20557258517f0dd68dfd0147d11b48d97ab8e1f709bc522a63" | 36 | SRC_URI[archive.sha256sum] = "4184d01a1ab82cb421d1ca2e2bcce0292ceb46c4c749e61b0bde4b75004d2e00" |
| 37 | SRC_URI += "file://0001-Introduce-options-gjs_path-to-optionally-set-path-to.patch" | ||
| 38 | 37 | ||
| 39 | PACKAGECONFIG ??= "bluetooth nm ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 38 | PACKAGECONFIG ??= "bluetooth nm ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 40 | PACKAGECONFIG[bluetooth] = ",,gnome-bluetooth" | 39 | PACKAGECONFIG[bluetooth] = ",,gnome-bluetooth" |
| 41 | PACKAGECONFIG[nm] = "-Dnetworkmanager=true, -Dnetworkmanager=false,networkmanager libsecret,networkmanager" | 40 | PACKAGECONFIG[nm] = "-Dnetworkmanager=true, -Dnetworkmanager=false,networkmanager libsecret,networkmanager" |
| 42 | PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd" | 41 | PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd" |
| 43 | 42 | ||
| 44 | EXTRA_OEMESON = " \ | 43 | EXTRA_OEMESON += " \ |
| 45 | -Dgjs_path=${bindir}/gjs \ | ||
| 46 | -Dextensions-app:gjs_path=${bindir}/gjs \ | ||
| 47 | -Dtests=false \ | 44 | -Dtests=false \ |
| 48 | -Dman=false \ | 45 | -Dman=false \ |
| 46 | --cross-file=${WORKDIR}/meson-${PN}.cross \ | ||
| 49 | " | 47 | " |
| 50 | 48 | ||
| 49 | do_write_config:append() { | ||
| 50 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
| 51 | [binaries] | ||
| 52 | gjs = '${bindir}/gjs' | ||
| 53 | EOF | ||
| 54 | } | ||
| 55 | |||
| 51 | do_install:append() { | 56 | do_install:append() { |
| 52 | # fix shebangs | 57 | # fix shebangs |
| 53 | for tool in `find ${D}${bindir} -name '*-tool'`; do | 58 | for tool in `find ${D}${bindir} -name '*-tool'`; do |
