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>
This commit is contained in:
Markus Volk 2024-12-16 10:07:05 +01:00 committed by Khem Raj
parent 21eb35aa27
commit 42b5b95874
No known key found for this signature in database
GPG Key ID: BB053355919D3314
3 changed files with 19 additions and 14 deletions

View File

@ -1,4 +1,4 @@
From 8a78a7996b01aba21377ceb7547da673fd30a391 Mon Sep 17 00:00:00 2001
From 8e7a25b0171eb60c802168593355354dff7806f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Wed, 27 Oct 2021 20:18:47 +0200
Subject: [PATCH] Support cross builds a bit better
@ -17,10 +17,10 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index c9b26d6..3058e8c 100644
index f3081fc..ac958d3 100644
--- a/meson.build
+++ b/meson.build
@@ -262,6 +262,7 @@ release builds of SpiderMonkey. Try configuring SpiderMonkey with
@@ -252,6 +252,7 @@ release builds of SpiderMonkey. Try configuring SpiderMonkey with
--disable-debug.''')
endif
@ -28,7 +28,7 @@ index c9b26d6..3058e8c 100644
# Check if a minimal SpiderMonkey program compiles, links, and runs. If not,
# it's most likely the case that SpiderMonkey was configured incorrectly, for
# example by building mozglue as a shared library.
@@ -292,6 +293,7 @@ elif minimal_program.returncode() != 0
@@ -282,6 +283,7 @@ elif minimal_program.returncode() != 0
failed to execute. Most likely you should build it with a different
configuration.''' + recommended_configuration)
endif
@ -36,7 +36,7 @@ index c9b26d6..3058e8c 100644
have_printf_alternative_int = cc.compiles('''
#include <stdio.h>
@@ -690,7 +692,7 @@ subdir('installed-tests')
@@ -656,7 +658,7 @@ subdir('installed-tests')
# Note: The test program in test/ needs to be ported
# to Windows before we can build it on Windows.

View File

@ -1,12 +1,17 @@
From 29221ae42e424c6100b8c313d2b61801430c872d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller=20installed=5Ftests=20is=20false?=
<schnitzeltony@gmail.com>
From 6a70d3ac658988dda49d51ed8b46584b716a9c7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Wed, 27 Oct 2021 20:04:02 +0200
Subject: [PATCH] meson.build: Do not add dir installed-tests when
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: =?UTF-8?q?Andreas=20M=C3=BCller=20installed=5Ftests=20is=20false?=
<schnitzeltony@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
@ -19,12 +24,12 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 3058e8c..06cf8da 100644
index ac958d3..e773508 100644
--- a/meson.build
+++ b/meson.build
@@ -688,7 +688,9 @@ endif
### Tests and test setups ######################################################
@@ -654,7 +654,9 @@ gi_tests = subproject('gobject-introspection-tests',
default_options: ['werror=false', 'cairo=true',
'install_dir=@0@'.format(installed_tests_execdir)])
-subdir('installed-tests')
+if get_option('installed_tests')

View File

@ -3,11 +3,11 @@ LICENSE = "MIT & LGPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=8dcea832f6acf45d856abfeb2d51ec48"
DEPENDS = "mozjs-115 cairo"
DEPENDS = "mozjs-128 cairo"
inherit gnomebase gsettings gobject-introspection gettext features_check upstream-version-is-even pkgconfig
SRC_URI[archive.sha256sum] = "135e39c5ac591096233e557cfe577d64093f5054411d47cb2e214bad7d4199bd"
SRC_URI[archive.sha256sum] = "fb39aa5636576de0e5a1171f56a1a5825e2bd1a69972fb120ba78bd109b5693c"
SRC_URI += " \
file://0001-Support-cross-builds-a-bit-better.patch \
file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \