<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3710140130b17de25b55677d509b505aff80f40a">https://github.com/macports/macports-ports/commit/3710140130b17de25b55677d509b505aff80f40a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 3710140130b gjs: update to 1.64.5
</span>3710140130b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3710140130b17de25b55677d509b505aff80f40a
</span>Author: Evan Miller <emmiller@gmail.com>
AuthorDate: Sun Feb 6 11:11:38 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> gjs: update to 1.64.5
</span>---
gnome/gjs/Portfile | 45 ++++++++++++++++++++++-------------
gnome/gjs/files/patch-gjs-gint64.diff | 18 ++++++++++++++
gnome/gjs/files/patch-gjs-gsize.diff | 40 ++++++++++++-------------------
gnome/gjs/files/patch-gjs-test.diff | 13 ++++++++++
4 files changed, 75 insertions(+), 41 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gjs/Portfile b/gnome/gjs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e2551355d71..b3b6a063ed4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gjs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gjs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +1,14 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup meson 1.0
</span> PortGroup gobject_introspection 1.0
name gjs
conflicts gjs-devel
set my_name gjs
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 1.54.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.64.5
</span> revision 0
set branch [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,36 +26,48 @@ distname ${my_name}-${version}
</span> dist_subdir ${my_name}
use_xz yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 6b6ef5e4812d393237be264dffc6f6ee4a87f8e6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 76b30dcc3ce9836c053aee531aa9f1d9d3f94b8503adf0a5a7bd176c492ba6b1 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 647704
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c4f03a6d3717efba782d2b92c3248e0100d3d011 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 883b7c2bfe06716f0c44d6a447728f93e7fb810e18a1c48567914bb7d102949e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 422548
</span>
depends_build port:pkgconfig \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gettext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python310
</span>
depends_lib path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gnome-js-common \
</span> port:libffi \
path:lib/pkgconfig/cairo.pc:cairo \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:mozjs60 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:mozjs68 \
</span> port:readline
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Teach glibtool about -stdlib=libc++
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-autoreconf.args -fvi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2017
</span>
# Fix gsize/size_t mismatch on 32-bit systems
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-gjs-gsize.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-gjs-gsize.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix gint64/int64_t mismatch on x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-gjs-gint64.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# LD_LIBRARY_PATH => DYLD_LIBRARY_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-gjs-test.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python3.10
</span>
# profiler currently only supported on Linux
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --disable-profiler \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --disable-silent-rules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dprofiler=disabled \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbsymbolic_functions=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dpython=${prefix}/bin/python3.10
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#use_parallel_build no
</span>
gobject_introspection yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Note that a few tests will fail because the "macports" user
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# does not have permission to open a display, issuing warnings like:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Gtk-WARNING **: 07:57:17.013: cannot open display: /tmp/launch-vBCmUl/org.macports:0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.type gnome
livecheck.name ${my_name}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gjs/files/patch-gjs-gint64.diff b/gnome/gjs/files/patch-gjs-gint64.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9ca97c9df8d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gjs/files/patch-gjs-gint64.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Undefined symbols for architecture x86_64:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "_gjs_profiler_add_mark(_GjsProfiler*, long long, long long, char const*, char const*, char const*)", referenced from:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GjsContextPrivate::set_sweeping(bool) in gjs_context.cpp.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ld: symbol(s) not found for architecture x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gjs/profiler.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gjs/profiler.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -673,8 +673,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ self->filename = g_strdup(filename);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void _gjs_profiler_add_mark(GjsProfiler* self, gint64 time_nsec,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- gint64 duration_nsec, const char* group,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++void _gjs_profiler_add_mark(GjsProfiler* self, int64_t time_nsec,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int64_t duration_nsec, const char* group,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* name, const char* message) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ g_return_if_fail(self);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ g_return_if_fail(group);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gjs/files/patch-gjs-gsize.diff b/gnome/gjs/files/patch-gjs-gsize.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index e07dc574ee5..885dee0ee0d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gjs/files/patch-gjs-gsize.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gjs/files/patch-gjs-gsize.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,12 +29,13 @@ https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/680
</span> /* First, let's handle the case where we're passed an instance
--- gi/function.cpp.orig
+++ gi/function.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -840,12 +840,12 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GjsAutoChar name = format_function_name(function, is_method);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- JS_ReportWarningUTF8(context, "Too many arguments to %s: expected %d, "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "got %" G_GSIZE_FORMAT, name.get(),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- function->expected_js_argc, args.length());
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ function->expected_js_argc, (gsize)args.length());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -856,13 +856,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Too many arguments to %s: expected %d, "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "got %" G_GSIZE_FORMAT,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name.get(), function->expected_js_argc,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- args.length()))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (gsize)args.length()))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return false;
</span> } else if (args.length() < function->expected_js_argc) {
GjsAutoChar name = format_function_name(function, is_method);
gjs_throw(context, "Too few arguments to %s: "
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,25 +76,14 @@ https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/680
</span> GjsAutoUnref<GFile> file = g_file_new_for_commandline_arg(filename);
if (!g_file_load_contents(file, nullptr, &script, &script_len, nullptr,
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- gjs/global.cpp.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ gjs/global.cpp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -55,7 +55,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- .setSourceIsLazy(true);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- JS::RootedScript compiled_script(cx);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- size_t script_len;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ gsize script_len;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- auto script = static_cast<const char *>(g_bytes_get_data(script_bytes.get(),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- &script_len));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (!JS::Compile(cx, options, script, script_len, &compiled_script))
</span> --- gjs/module.cpp.orig
+++ gjs/module.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -123,7 +123,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size_t script_len = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int start_line_number = 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -145,7 +145,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GError *error = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *unowned_script;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- size_t script_len = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ gsize script_len = 0;
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- if (!(g_file_load_contents(file, nullptr, &unowned_script, &script_len,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (!(g_file_load_contents(file, nullptr, &unowned_script, nullptr,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- nullptr, &error))) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- gjs_throw_g_error(cx, error);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!(g_file_load_contents(file, nullptr, &unowned_script, &script_len,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ nullptr, &error)))
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gjs/files/patch-gjs-test.diff b/gnome/gjs/files/patch-gjs-test.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..13a0f131dc9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gjs/files/patch-gjs-test.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Darwin uses DYLD_LIBRARY_PATH, not LD_LIBRARY_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build.orig 2022-03-02 07:44:45.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build 2022-03-02 07:44:52.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -574,7 +574,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tests_environment.set('GJS_PATH', '')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tests_environment.prepend('GI_TYPELIB_PATH', meson.current_build_dir(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ js_tests_builddir)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-tests_environment.prepend('LD_LIBRARY_PATH', meson.current_build_dir(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++tests_environment.prepend('DYLD_LIBRARY_PATH', meson.current_build_dir(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ js_tests_builddir)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tests_environment.set('G_FILENAME_ENCODING', 'latin1')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tests_environment.set('LSAN_OPTIONS', 'exitcode=23,suppressions=@0@'.format(
</span></pre><pre style='margin:0'>
</pre>