summaryrefslogtreecommitdiffstats
path: root/meta-gnome
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-12-16 10:07:05 +0100
committerKhem Raj <raj.khem@gmail.com>2024-12-16 08:42:01 -0800
commit42b5b958744f188829d8976a8d57c34cb5c2b87e (patch)
tree251bece84e636a1a11496c4421b28aeefba05ff4 /meta-gnome
parent21eb35aa278d9a04c76e79dfa63239116b3c44e2 (diff)
downloadmeta-openembedded-42b5b958744f188829d8976a8d57c34cb5c2b87e.tar.gz
gjs: update 1.80.2 -> 1.82.1
- Refresh patches Version 1.82.1 -------------- - Closed bugs and merge requests: * gnome-shell crash when switching user after upgrade from Fedora 40 to Fedora 41 [#647, !955, Philip Chimento] Version 1.82.0 -------------- - Closed bugs and merge requests: * installed tests are failing because they can't load internal typelibs from parent directory [#639, !953, Simon McVittie] * GIMarshalling test has 3 failures with 1.81.90 on i686 [#642, !954, Philip Chimento] Version 1.81.90 --------------- - Closed bugs and merge requests: * callbacks: fix sweeping check for incremental GC [!859, !950, Evan Welsh, Gary Li] * GJS doesn't handle query parameters in imports [#618, !944, Gary Li] * Integrate gobject-introspection-tests as submodule [!946, Philip Chimento] * module: Include full module specifier in import.meta.url [!947, Philip Chimento] * doap: Remove invalid maintainer entry [!948, Sophie Herold] * installed tests have the wrong libexecdir [#636, !949, Jeremy Bicha] * Inheriting final class crashes GJS [#640, !951, Gary Li] * Various maintenance [!952, Philip Chimento] Version 1.81.2 -------------- - New JavaScript features! This version of GJS is based on SpiderMonkey 128, an upgrade from the previous ESR (Extended Support Release) of SpiderMonkey 115. Here are the highlights of the new JavaScript features. For more information, look them up on MDN or devdocs.io. * New APIs + The new `Object.groupBy()` and `Map.groupBy()` static methods group the elements of an iterable according to the return value of a key function. + The new `Promise.withResolvers()` static method returns a Promise as well as its resolve and reject functions, shorthand for a common pattern used when promisifying event-based APIs. + Strings have gained the `isWellFormed()` and `toWellFormed()` methods which help when interoperating with strings that may have unpaired Unicode surrogates. This usually does not come up in the GNOME platform. + ArrayBuffers have gained the `transfer()` and `transferToFixedLength()` methods, which transfer ownership of a data buffer to a new ArrayBuffer object, without copying it, and invalidating ("detaching") any existing references to the buffer. There is also a new property, `detached`, which allows checking whether an ArrayBuffer is in the detached state. + The new `Intl.Segmenter` class allows splitting a string into graphemes, words, or sentences, in a locale-aware way. + `Intl.NumberFormat` has gained `formatRange()` and `formatRangeToParts()` methods, which allow formatting number ranges, like "3–5". + `Intl.PluralRules` has gained a `selectRange()` method, which allows selecting the proper plural form based on a range of numbers, like "30–50 feral hogs". * New behaviour + The `Intl.NumberFormat` and `Intl.PluralRules` constructors support new options: `roundingIncrement`, `roundingMode`, `roundingPriority`, and `trailingZeroDisplay`. + The `Intl.NumberFormat` constructor also supports the new option `useGrouping`. * Backwards-incompatible changes + The behaviour of `Date.parse()` has been changed to be more consistent with other JavaScript engines. (But don't use `Date.parse()`.) - Closed bugs and merge requests: * Invalid search paths cause failed assertions when printing imports.gi [#629, !935, Gary Li] * SpiderMonkey 128 [#630, !936, !945, Philip Chimento] * Pretty-printing byte array in gjs-console throws a type conversion error [#434, !937, Gary Li] * js: Add gjs_debug_callable() debug function [!940, Philip Chimento] * build: Build Cairo from subproject if not found [!941, Philip Chimento] * Bump CI image to Fedora 40 [!942, Philip Chimento] * CI tools updates [!943, Philip Chimento] Version 1.81.1 -------------- - Breaking change: When creating a GObject with the `new` operator, the constructor takes a single argument consisting of a property bag with GObject construct properties and their values. This was often confused with the `new` static method that may take arguments that are not interpreted as property bags. For example, Gio.FileIcon was one of the many affected APIs: new Gio.FileIcon({file: myFile}) vs Gio.FileIcon.new(myFile) Confusion between the two often lead to bug reports when confusing these two and calling `new Gio.FileIcon(myFile)` - the constructor would look for a nonexistent `file` property on `myFile`, causing an improperly initialized object. This is now no longer allowed. The argument to `new Gio.FileIcon(...)` must be a plain JS object, not a GObject. It's possible that existing code legitimately used a GObject here. If your code does this and a quick migration is impractical, please get in touch and we will revert this change before 1.82.0 in favour of a longer deprecation period. - The `get_data()`, `get_qdata()`, `set_data()`, `steal_data()`, `steal_qdata()`, `ref()`, `unref()`, `ref_sink()`, and `force_floating()` methods of GObject now throw if called. These methods never worked, but sometimes they would silently appear to succeed, then cause crashes or memory leaks later. If you were trying to use the `get_data()` family of methods, just set a JS property instead. If you were trying to modify the refcount of a GObject in JS, instead set the object as the value of a JS property on some other object. - Closed bugs and merge requests: * doc: Document how to get a stack trace [!864, Sonny Piers] * TextDecoder should accept GBytes [#587, !903, Sriyansh Shivam] * Possible use-after-free with GLib.Regex.match/GLib.MatchInfo [#589, !920, Philip Chimento] * method `get_line` of `Pango.Layout` doesn't work. [#547, !921, Philip Chimento] * Block calls to g_object_get_data and friends [#423, !922, Philip Chimento] * Crash when calling Pango.Layout.get_pixel_size() with a badly init:ed Pango.Layout [#580, !923, Philip Chimento] * doc: avoid reference to Gio.UnixInputStream [!925, Andy Holmes] * Add a CI check for config.h, and some other useful checks [#447, !926, Philip Chimento] * Incorrect UnixOutputStream warning [#610, !928, Philip Chimento] * Various maintenance [!929, !931, Philip Chimento] * Docs: Various markdown fixes [!930, Frank Dana] * Some build fixes for the main (and gnome-46) branches for Visual Studio [!932, Chun-wei Fan] * GJS doesn't log undefined values [#621, !933, Gary Li] * property objects are printed as empty js objects [#622, !934, Gary Li] 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')
-rw-r--r--meta-gnome/recipes-gnome/gjs/gjs/0001-Support-cross-builds-a-bit-better.patch10
-rw-r--r--meta-gnome/recipes-gnome/gjs/gjs/0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch19
-rw-r--r--meta-gnome/recipes-gnome/gjs/gjs_1.82.1.bb (renamed from meta-gnome/recipes-gnome/gjs/gjs_1.80.2.bb)4
3 files changed, 19 insertions, 14 deletions
diff --git a/meta-gnome/recipes-gnome/gjs/gjs/0001-Support-cross-builds-a-bit-better.patch b/meta-gnome/recipes-gnome/gjs/gjs/0001-Support-cross-builds-a-bit-better.patch
index 12b4b08c7e..c66d42da62 100644
--- a/meta-gnome/recipes-gnome/gjs/gjs/0001-Support-cross-builds-a-bit-better.patch
+++ b/meta-gnome/recipes-gnome/gjs/gjs/0001-Support-cross-builds-a-bit-better.patch
@@ -1,4 +1,4 @@
1From 8a78a7996b01aba21377ceb7547da673fd30a391 Mon Sep 17 00:00:00 2001 1From 8e7a25b0171eb60c802168593355354dff7806f5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> 2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Wed, 27 Oct 2021 20:18:47 +0200 3Date: Wed, 27 Oct 2021 20:18:47 +0200
4Subject: [PATCH] Support cross builds a bit better 4Subject: [PATCH] Support cross builds a bit better
@@ -17,10 +17,10 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
17 1 file changed, 3 insertions(+), 1 deletion(-) 17 1 file changed, 3 insertions(+), 1 deletion(-)
18 18
19diff --git a/meson.build b/meson.build 19diff --git a/meson.build b/meson.build
20index c9b26d6..3058e8c 100644 20index f3081fc..ac958d3 100644
21--- a/meson.build 21--- a/meson.build
22+++ b/meson.build 22+++ b/meson.build
23@@ -262,6 +262,7 @@ release builds of SpiderMonkey. Try configuring SpiderMonkey with 23@@ -252,6 +252,7 @@ release builds of SpiderMonkey. Try configuring SpiderMonkey with
24 --disable-debug.''') 24 --disable-debug.''')
25 endif 25 endif
26 26
@@ -28,7 +28,7 @@ index c9b26d6..3058e8c 100644
28 # Check if a minimal SpiderMonkey program compiles, links, and runs. If not, 28 # Check if a minimal SpiderMonkey program compiles, links, and runs. If not,
29 # it's most likely the case that SpiderMonkey was configured incorrectly, for 29 # it's most likely the case that SpiderMonkey was configured incorrectly, for
30 # example by building mozglue as a shared library. 30 # example by building mozglue as a shared library.
31@@ -292,6 +293,7 @@ elif minimal_program.returncode() != 0 31@@ -282,6 +283,7 @@ elif minimal_program.returncode() != 0
32 failed to execute. Most likely you should build it with a different 32 failed to execute. Most likely you should build it with a different
33 configuration.''' + recommended_configuration) 33 configuration.''' + recommended_configuration)
34 endif 34 endif
@@ -36,7 +36,7 @@ index c9b26d6..3058e8c 100644
36 36
37 have_printf_alternative_int = cc.compiles(''' 37 have_printf_alternative_int = cc.compiles('''
38 #include <stdio.h> 38 #include <stdio.h>
39@@ -690,7 +692,7 @@ subdir('installed-tests') 39@@ -656,7 +658,7 @@ subdir('installed-tests')
40 40
41 # Note: The test program in test/ needs to be ported 41 # Note: The test program in test/ needs to be ported
42 # to Windows before we can build it on Windows. 42 # to Windows before we can build it on Windows.
diff --git a/meta-gnome/recipes-gnome/gjs/gjs/0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch b/meta-gnome/recipes-gnome/gjs/gjs/0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch
index e932f06d27..bca27c33d4 100644
--- a/meta-gnome/recipes-gnome/gjs/gjs/0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch
+++ b/meta-gnome/recipes-gnome/gjs/gjs/0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch
@@ -1,12 +1,17 @@
1From 29221ae42e424c6100b8c313d2b61801430c872d Mon Sep 17 00:00:00 2001 1From 6a70d3ac658988dda49d51ed8b46584b716a9c7c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller=20installed=5Ftests=20is=20false?= 2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3 <schnitzeltony@gmail.com>
4Date: Wed, 27 Oct 2021 20:04:02 +0200 3Date: Wed, 27 Oct 2021 20:04:02 +0200
5Subject: [PATCH] meson.build: Do not add dir installed-tests when 4Subject: [PATCH] meson.build: Do not add dir installed-tests when
6MIME-Version: 1.0 5MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
9 8
9From: =?UTF-8?q?Andreas=20M=C3=BCller=20installed=5Ftests=20is=20false?=
10 <schnitzeltony@gmail.com>
11MIME-Version: 1.0
12Content-Type: text/plain; charset=UTF-8
13Content-Transfer-Encoding: 8bit
14
10MIME-Version: 1.0 15MIME-Version: 1.0
11Content-Type: text/plain; charset=UTF-8 16Content-Type: text/plain; charset=UTF-8
12Content-Transfer-Encoding: 8bit 17Content-Transfer-Encoding: 8bit
@@ -19,12 +24,12 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
19 1 file changed, 3 insertions(+), 1 deletion(-) 24 1 file changed, 3 insertions(+), 1 deletion(-)
20 25
21diff --git a/meson.build b/meson.build 26diff --git a/meson.build b/meson.build
22index 3058e8c..06cf8da 100644 27index ac958d3..e773508 100644
23--- a/meson.build 28--- a/meson.build
24+++ b/meson.build 29+++ b/meson.build
25@@ -688,7 +688,9 @@ endif 30@@ -654,7 +654,9 @@ gi_tests = subproject('gobject-introspection-tests',
26 31 default_options: ['werror=false', 'cairo=true',
27 ### Tests and test setups ###################################################### 32 'install_dir=@0@'.format(installed_tests_execdir)])
28 33
29-subdir('installed-tests') 34-subdir('installed-tests')
30+if get_option('installed_tests') 35+if get_option('installed_tests')
diff --git a/meta-gnome/recipes-gnome/gjs/gjs_1.80.2.bb b/meta-gnome/recipes-gnome/gjs/gjs_1.82.1.bb
index 1d781d078c..c4bccbe7b0 100644
--- a/meta-gnome/recipes-gnome/gjs/gjs_1.80.2.bb
+++ b/meta-gnome/recipes-gnome/gjs/gjs_1.82.1.bb
@@ -3,11 +3,11 @@ LICENSE = "MIT & LGPL-2.0-or-later"
3LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48" 3LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
4 4
5 5
6DEPENDS = "mozjs-115 cairo" 6DEPENDS = "mozjs-128 cairo"
7 7
8inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig 8inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig
9 9
10SRC_URI[archive.sha256sum] = "135e39c5ac591096233e557cfe577d64093f5054411d47cb2e214bad7d4199bd" 10SRC_URI[archive.sha256sum] = "fb39aa5636576de0e5a1171f56a1a5825e2bd1a69972fb120ba78bd109b5693c"
11SRC_URI += " \ 11SRC_URI += " \
12 file://0001-Support-cross-builds-a-bit-better.patch \ 12 file://0001-Support-cross-builds-a-bit-better.patch \
13 file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \ 13 file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \