* [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default.
2024-12-09 20:11 [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1 Liliana Marie Prikler
@ 2024-12-08 11:19 ` Liliana Marie Prikler
2024-12-09 22:07 ` Mark H Weaver
2024-12-09 19:22 ` [bug#74756] [PATCH gnome-team 2/3] gnu: mozjs: Update to 128.3.1 Liliana Marie Prikler
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Liliana Marie Prikler @ 2024-12-08 11:19 UTC (permalink / raw)
To: 74756
Cc: liliana.prikler, maxim.cournoyer, vivien, nandre, clement,
jonathan.brielmaier, mhw
* gnu/packages/icu4c.scm (icu4c): Update to 73.1.
[patches]: Adjust accordingly.
(icu4c-73): Delete variable.
(icu4c-71): New variable, containing the old icu4c.
* gnu/packages/librewolf.scm (librewolf)[inputs]: Adjust accordingly.
* gnu/packages/tor-browsers.scm (make-torbrowser): Likewise.
* gnu/packages/gnuzilla.scm (icecat-minimal, icedove-minimal): Likewise.
---
gnu/packages/gnuzilla.scm | 4 ++--
gnu/packages/icu4c.scm | 21 ++++++++++-----------
gnu/packages/librewolf.scm | 2 +-
gnu/packages/tor-browsers.scm | 2 +-
4 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 8a6c558c50..a65b1fbb8b 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -744,7 +744,7 @@ (define-public icecat-minimal
;; https://bugzilla.mozilla.org/show_bug.cgi?id=1819374).
ffmpeg-5
libvpx
- icu4c-73
+ icu4c
pixman
pulseaudio
mesa
@@ -1550,7 +1550,7 @@ (define-public icedove-minimal
gtk+
gtk+-2
hunspell
- icu4c-73
+ icu4c
libcanberra
libevent
libffi
diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 6f09fae65c..965da509ff 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -45,7 +45,7 @@ (define-module (gnu packages icu4c)
(define-public icu4c
(package
(name "icu4c")
- (version "71.1")
+ (version "73.1")
(source (origin
(method url-fetch)
(uri (string-append
@@ -55,7 +55,12 @@ (define-public icu4c
(string-map (lambda (x) (if (char=? x #\.) #\_ x)) version)
"-src.tgz"))
(sha256
- (base32 "1gqywaqj9jmdwrng9lm6inyqmi5j2cz36db9dcqg3yk13zjyd9v7"))))
+ (base32 "0iccpdvc0kvpww5a31k9gjkqigyz016i7v80r9zamd34w4fl6mx4"))
+ (patches
+ (append
+ (search-patches
+ "icu4c-icu-22132-fix-vtimezone.patch"
+ "icu4c-fix-TestHebrewCalendarInTemporalLeapYear.patch")))))
(build-system gnu-build-system)
(native-inputs
(append (list python-minimal)
@@ -109,11 +114,11 @@ (define-public icu4c
(license x11)
(home-page "http://site.icu-project.org/")))
-(define-public icu4c-73
+(define-public icu4c-71
(package
(inherit icu4c)
(name "icu4c")
- (version "73.1")
+ (version "71.1")
(source (origin
(method url-fetch)
(uri (string-append
@@ -124,13 +129,7 @@ (define-public icu4c-73
"-src.tgz"))
(sha256
(base32
- "0iccpdvc0kvpww5a31k9gjkqigyz016i7v80r9zamd34w4fl6mx4"))
- (patches
- (append
- (search-patches
- "icu4c-icu-22132-fix-vtimezone.patch"
- "icu4c-fix-TestHebrewCalendarInTemporalLeapYear.patch")
- (origin-patches (package-source icu4c))))))))
+ "1gqywaqj9jmdwrng9lm6inyqmi5j2cz36db9dcqg3yk13zjyd9v7"))))))
(define-public icu4c-70
(package
diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 6517c1953d..4a42f76f4a 100644
--- a/gnu/packages/librewolf.scm
+++ b/gnu/packages/librewolf.scm
@@ -657,7 +657,7 @@ (define-public librewolf
gtk+
gtk+-2
hunspell
- icu4c-73
+ icu4c
jemalloc
libcanberra
libevent
diff --git a/gnu/packages/tor-browsers.scm b/gnu/packages/tor-browsers.scm
index e517f9b214..30bdedd311 100644
--- a/gnu/packages/tor-browsers.scm
+++ b/gnu/packages/tor-browsers.scm
@@ -248,7 +248,7 @@ (define* (make-torbrowser #:key
libffi
ffmpeg
libvpx
- icu4c-73
+ icu4c
pixman
pulseaudio
mesa
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default.
2024-12-08 11:19 ` [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default Liliana Marie Prikler
@ 2024-12-09 22:07 ` Mark H Weaver
0 siblings, 0 replies; 6+ messages in thread
From: Mark H Weaver @ 2024-12-09 22:07 UTC (permalink / raw)
To: Liliana Marie Prikler, 74756
Cc: nandre, jonathan.brielmaier, vivien, clement, maxim.cournoyer
Hi Liliana,
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> * gnu/packages/icu4c.scm (icu4c): Update to 73.1.
> [patches]: Adjust accordingly.
> (icu4c-73): Delete variable.
> (icu4c-71): New variable, containing the old icu4c.
> * gnu/packages/librewolf.scm (librewolf)[inputs]: Adjust accordingly.
> * gnu/packages/tor-browsers.scm (make-torbrowser): Likewise.
> * gnu/packages/gnuzilla.scm (icecat-minimal, icedove-minimal): Likewise.
[...]
> diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
> index 6f09fae65c..965da509ff 100644
> --- a/gnu/packages/icu4c.scm
> +++ b/gnu/packages/icu4c.scm
> @@ -45,7 +45,7 @@ (define-module (gnu packages icu4c)
> (define-public icu4c
> (package
> (name "icu4c")
> - (version "71.1")
> + (version "73.1")
> (source (origin
> (method url-fetch)
> (uri (string-append
> @@ -55,7 +55,12 @@ (define-public icu4c
> (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version)
> "-src.tgz"))
> (sha256
> - (base32 "1gqywaqj9jmdwrng9lm6inyqmi5j2cz36db9dcqg3yk13zjyd9v7"))))
> + (base32 "0iccpdvc0kvpww5a31k9gjkqigyz016i7v80r9zamd34w4fl6mx4"))
> + (patches
> + (append
> + (search-patches
> + "icu4c-icu-22132-fix-vtimezone.patch"
> + "icu4c-fix-TestHebrewCalendarInTemporalLeapYear.patch")))))
The unary 'append' call above is vestigial and should probably be
dropped. Otherwise, it looks good to me.
Thanks!
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#74756] [PATCH gnome-team 2/3] gnu: mozjs: Update to 128.3.1.
2024-12-09 20:11 [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1 Liliana Marie Prikler
2024-12-08 11:19 ` [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default Liliana Marie Prikler
@ 2024-12-09 19:22 ` Liliana Marie Prikler
2024-12-09 19:26 ` [bug#74756] [PATCH gnome-team 3/3] gnu: gjs: Update to 1.82.1 Liliana Marie Prikler
2024-12-10 23:11 ` [bug#74756] [PATCH gnome-team 0/3] Update gjs " André Batista
3 siblings, 0 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2024-12-09 19:22 UTC (permalink / raw)
To: 74756
Cc: liliana.prikler, maxim.cournoyer, vivien, nandre, clement,
jonathan.brielmaier, mhw
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4462 bytes --]
* gnu/packages/gnuzilla.scm (mozjs): Update to 128.3.1.
[#:phases]<configure>: Set HOME.
<adjust-tests>: Update accordingly.
[native-inputs]: Add rust-cbindgen.
(mozjs-102): New variable.
---
gnu/packages/gnuzilla.scm | 49 +++++++++++++++++++++++++++++++++++----
1 file changed, 45 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index a65b1fbb8b..567384a5a9 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -104,7 +104,7 @@ (define-module (gnu packages gnuzilla)
(define-public mozjs
(package
(name "mozjs")
- (version "102.2.0")
+ (version "128.3.1")
(source (origin
(method url-fetch)
;; TODO: Switch to IceCat source once available on ftp.gnu.org.
@@ -113,7 +113,7 @@ (define-public mozjs
version "esr.source.tar.xz"))
(sha256
(base32
- "1zwpgis7py1bf8p88pz3mpai6a02qrdb8ww2fa9kxxdl9b8r2k81"))))
+ "1a3h7p7126pxzpidb1lqckvhfh1had805mai4l96mnc878phbx61"))))
(build-system gnu-build-system)
(arguments
(list
@@ -161,6 +161,8 @@ (define-public mozjs
;; but not the root directory either.
(mkdir "run-configure-from-here")
(chdir "run-configure-from-here")
+ ;; Configure script writes to $HOME.
+ (setenv "HOME" (getcwd))
(setenv "SHELL" (which "sh"))
(setenv "CONFIG_SHELL" (which "sh"))
(setenv "AUTOCONF" (which "autoconf"))
@@ -198,7 +200,29 @@ (define-public mozjs
;; FIXME: got "en-US-posix", expected "en-US-POSIX".
(delete-file "non262/Intl/available-locales-supported.js")
;; FIXME: got "en-US", expected "en-US-POSIX"
- (delete-file "non262/Intl/available-locales-resolved.js"))))
+ (delete-file "non262/Intl/available-locales-resolved.js")
+
+ ;;; Since 115:
+ ;; Mismatching array lengths
+ (delete-file "non262/Intl/supportedValuesOf-timeZones-canonical.js")
+ ;; FIXME: got "America/Santa_Isabel", expected "America/Tijuana":
+ ;; America/Santa_Isabel -> America/Tijuana
+ (delete-file "non262/Intl/DateTimeFormat/timeZone_backward_links.js")
+ ;; TODO: tzdata 2024a expected – find a way to regenerate
+ ;; these generated tests
+ (delete-file "non262/Intl/DateTimeFormat/timeZone_version.js")
+
+ ;; FIXME: got "\uD840\uDDF2", expected "\u5047"
+ (delete-file "non262/Intl/Collator/implicithan.js")
+ ;; FIXME: got "\uD840\uDDF2", expected "\u3467"
+ (delete-file "non262/Intl/Collator/big5han-gb2312han.js")
+
+ ;; Since 128:
+ ;; FIXME: got (void 0), expected "GMT"
+ (delete-file "non262/Intl/DateTimeFormat/formatRange-timeZoneName-matches-format.js")
+ ;; FIXME: got 7, expected 9: parts count mismatch
+ (delete-file "non262/Intl/DateTimeFormat/formatRange-timeZone-offset.js")
+ (delete-file "non262/Intl/DateTimeFormat/formatRange-timeZoneName.js"))))
(add-before 'check 'pre-check
(lambda _
(setenv "JSTESTS_EXTRA_ARGS"
@@ -219,7 +243,8 @@ (define-public mozjs
pkg-config
python-wrapper
rust
- `(,rust "cargo")))
+ `(,rust "cargo")
+ rust-cbindgen))
(inputs
(list icu4c readline zlib))
(propagated-inputs
@@ -231,6 +256,22 @@ (define-public mozjs
in C/C++.")
(license license:mpl2.0))) ; and others for some files
+(define-public mozjs-102
+ (package
+ (inherit mozjs)
+ (name "mozjs")
+ (version "102.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ftp.mozilla.org/pub/firefox"
+ "/releases/" version "esr/source/firefox-"
+ version "esr.source.tar.xz"))
+ (sha256
+ (base32
+ "1zwpgis7py1bf8p88pz3mpai6a02qrdb8ww2fa9kxxdl9b8r2k81"))))
+ (inputs (modify-inputs (package-inputs mozjs)
+ (replace "icu4c" icu4c-71)))))
+
(define-public mozjs-91
(package
(inherit mozjs)
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74756] [PATCH gnome-team 3/3] gnu: gjs: Update to 1.82.1.
2024-12-09 20:11 [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1 Liliana Marie Prikler
2024-12-08 11:19 ` [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default Liliana Marie Prikler
2024-12-09 19:22 ` [bug#74756] [PATCH gnome-team 2/3] gnu: mozjs: Update to 128.3.1 Liliana Marie Prikler
@ 2024-12-09 19:26 ` Liliana Marie Prikler
2024-12-10 23:11 ` [bug#74756] [PATCH gnome-team 0/3] Update gjs " André Batista
3 siblings, 0 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2024-12-09 19:26 UTC (permalink / raw)
To: 74756; +Cc: liliana.prikler, maxim.cournoyer, vivien
* gnu/packages/gnome.scm (gjs): Update to 1.82.1.
* gnu/packages/patches/gjs-fix-closure-annotations.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Unregister it.
---
gnu/local.mk | 1 -
gnu/packages/gnome.scm | 6 +-
.../patches/gjs-fix-closure-annotations.patch | 99 -------------------
3 files changed, 2 insertions(+), 104 deletions(-)
delete mode 100644 gnu/packages/patches/gjs-fix-closure-annotations.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 30dca28a3b..34c82523ef 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1406,7 +1406,6 @@ dist_patch_DATA = \
%D%/packages/patches/ghostscript-no-header-uuid.patch \
%D%/packages/patches/ghostscript-no-header-creationdate.patch \
%D%/packages/patches/git-filter-repo-generate-doc.patch \
- %D%/packages/patches/gjs-fix-closure-annotations.patch \
%D%/packages/patches/gklib-suitesparse.patch \
%D%/packages/patches/glib-appinfo-watch.patch \
%D%/packages/patches/glib-skip-failing-test.patch \
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 292e7e87f5..af76610ad4 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -7867,7 +7867,7 @@ (define-public gnome-session
(define-public gjs
(package
(name "gjs")
- (version "1.76.3")
+ (version "1.82.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/"
@@ -7875,9 +7875,7 @@ (define-public gjs
name "-" version ".tar.xz"))
(sha256
(base32
- "0knkbczic9874r2mnhc8yh9w63bmj574b7528ql0x3lf40nzcjx5"))
- ;; TODO: Remove when updating to 1.82.0.
- (patches (search-patches "gjs-fix-closure-annotations.patch"))
+ "0g39nl4x32x71c9gnwlrlv8jnpl2lnhmc7qpl7jy0vap6rbalfgv"))
(modules '((guix build utils)))
(snippet
'(begin
diff --git a/gnu/packages/patches/gjs-fix-closure-annotations.patch b/gnu/packages/patches/gjs-fix-closure-annotations.patch
deleted file mode 100644
index 1b440ef9da..0000000000
--- a/gnu/packages/patches/gjs-fix-closure-annotations.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-From 1df5d72d8df383199dcd88cd1d16209617bf32ca Mon Sep 17 00:00:00 2001
-From: Philip Chimento <philip.chimento@gmail.com>
-Date: Sat, 27 Jul 2024 20:17:39 -0700
-Subject: [PATCH] GjsPrivate: Fix closure annotations
-
-Apparently the closure annotation can be omitted if the parameter is named
-"user_data". If it is needed because the parameter is not named
-"user_data" then the annotation should be on the callback argument and
-refer to the user data argument.
----
- libgjs-private/gjs-util.c | 10 +++++-----
- libgjs-private/gjs-util.h | 16 ++++++++--------
- 2 files changed, 13 insertions(+), 13 deletions(-)
-
-diff --git a/libgjs-private/gjs-util.c b/libgjs-private/gjs-util.c
-index b264aec1e..ae65287f5 100644
---- a/libgjs-private/gjs-util.c
-+++ b/libgjs-private/gjs-util.c
-@@ -235,7 +235,7 @@ void gjs_gtk_container_child_set_property(GObject* container, GObject* child,
- * @store: a #GListStore
- * @item: the new item
- * @compare_func: (scope call): pairwise comparison function for sorting
-- * @user_data: (closure): user data for @compare_func
-+ * @user_data: user data for @compare_func
- *
- * Inserts @item into @store at a position to be determined by the
- * @compare_func.
-@@ -258,7 +258,7 @@ unsigned int gjs_list_store_insert_sorted(GListStore *store, GObject *item,
- * gjs_list_store_sort:
- * @store: a #GListStore
- * @compare_func: (scope call): pairwise comparison function for sorting
-- * @user_data: (closure): user data for @compare_func
-+ * @user_data: user data for @compare_func
- *
- * Sort the items in @store according to @compare_func.
- */
-@@ -270,7 +270,7 @@ void gjs_list_store_sort(GListStore *store, GjsCompareDataFunc compare_func,
- /**
- * gjs_gtk_custom_sorter_new:
- * @sort_func: (nullable) (scope call): function to sort items
-- * @user_data: (closure): user data for @compare_func
-+ * @user_data: user data for @sort_func
- * @destroy: destroy notify for @user_data
- *
- * Creates a new `GtkSorter` that works by calling @sort_func to compare items.
-@@ -305,7 +305,7 @@ GObject* gjs_gtk_custom_sorter_new(GjsCompareDataFunc sort_func,
- * gjs_gtk_custom_sorter_set_sort_func:
- * @sorter: a `GtkCustomSorter`
- * @sort_func: (nullable) (scope call): function to sort items
-- * @user_data: (closure): user data to pass to @sort_func
-+ * @user_data: user data to pass to @sort_func
- * @destroy: destroy notify for @user_data
- *
- * Sets (or unsets) the function used for sorting items.
-@@ -423,7 +423,7 @@ void gjs_log_set_writer_default() {
- /**
- * gjs_log_set_writer_func:
- * @func: (scope notified): callback with log data
-- * @user_data: (closure): user data for @func
-+ * @user_data: user data for @func
- * @user_data_free: (destroy user_data_free): destroy for @user_data
- *
- * Sets a given function as the writer function for structured logging,
-diff --git a/libgjs-private/gjs-util.h b/libgjs-private/gjs-util.h
-index 7ee83e0d8..11b7c7cbc 100644
---- a/libgjs-private/gjs-util.h
-+++ b/libgjs-private/gjs-util.h
-@@ -124,11 +124,11 @@ typedef gboolean (*GjsBindingTransformFunc)(GBinding* binding,
- * @target:
- * @target_property:
- * @flags:
-- * @to_callback: (scope notified) (nullable):
-- * @to_data: (closure to_callback):
-+ * @to_callback: (scope notified) (nullable) (closure to_data):
-+ * @to_data:
- * @to_notify: (destroy to_data):
-- * @from_callback: (scope notified) (nullable):
-- * @from_data: (closure from_callback):
-+ * @from_callback: (scope notified) (nullable) (closure from_data):
-+ * @from_data:
- * @from_notify: (destroy from_data):
- *
- * Returns: (transfer none):
-@@ -149,11 +149,11 @@ GBinding* gjs_g_object_bind_property_full(
- * @target:
- * @target_property:
- * @flags:
-- * @to_callback: (scope notified) (nullable):
-- * @to_data: (closure to_callback):
-+ * @to_callback: (scope notified) (nullable) (closure to_data):
-+ * @to_data:
- * @to_notify: (destroy to_data):
-- * @from_callback: (scope notified) (nullable):
-- * @from_data: (closure from_callback):
-+ * @from_callback: (scope notified) (nullable) (closure from_data):
-+ * @from_data:
- * @from_notify: (destroy from_data):
- */
- GJS_EXPORT
\ No newline at end of file
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1
2024-12-09 20:11 [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1 Liliana Marie Prikler
` (2 preceding siblings ...)
2024-12-09 19:26 ` [bug#74756] [PATCH gnome-team 3/3] gnu: gjs: Update to 1.82.1 Liliana Marie Prikler
@ 2024-12-10 23:11 ` André Batista
3 siblings, 0 replies; 6+ messages in thread
From: André Batista @ 2024-12-10 23:11 UTC (permalink / raw)
To: Liliana Marie Prikler; +Cc: 74756, vivien, maxim.cournoyer
Hi Liliana,
seg 09 dez 2024 às 21:11:59 (1733789519), liliana.prikler@gmail.com enviou:
> Hi Guix,
>
> after updating GNOME Shell to 46 in [1], I noticed that the tools
> dealing with extensions do not work as supposed. According to [2],
> upstream expects gjs versions 1.80 or 1.82 for GNOME 46/47 respectively,
> so let's update it. Unfortunately, this also requires updates of icu4c
> and mozjs, which I'd rather put in the hands of our mozilla team if
> possible.
>
I'm not sure I understood your last sentence above: what do you mean
by "rather put in the hands of our mozilla team"? To build on a
separate branch? To review here the work you've already done? To fix
those FIXMEs that you've worked around for now?
The patches look good to me, but they trigger to many builds for me
to actually test them locally.
Oh and the icu4c one does not apply cleanly on master because there's
a icu4c-75 under what is currently icu4c-73.
Cheers!
^ permalink raw reply [flat|nested] 6+ messages in thread