Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gjs for openSUSE:Factory checked in at 2022-07-09 16:59:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gjs (Old) and /work/SRC/openSUSE:Factory/.gjs.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gjs" Sat Jul 9 16:59:22 2022 rev:103 rq:987354 version:1.72.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gjs/gjs.changes 2022-03-23 20:16:43.930406880 +0100 +++ /work/SRC/openSUSE:Factory/.gjs.new.1523/gjs.changes 2022-07-09 16:59:32.832482069 +0200 @@ -1,0 +2,13 @@ +Wed Jul 6 12:18:50 UTC 2022 - Dominique Leuenberger <dims...@opensuse.org> + +- Update to version 1.72.1: + + Compilation error: call to deleted function 'js_value_to_c'. + * jsapi-util-strings: Ignore locale to compute the upper case of + a char (i.e. fix implicit properties on Turkish locale). + * Fix memory leak when passing a "transfer none" GBytes parameter + to a native function. + * arg-cache: Do not leak an interface info structures on + Callbacks. + * test-ci: Ignore safe directory errors on CI. + +------------------------------------------------------------------- Old: ---- gjs-1.72.0.tar.xz New: ---- gjs-1.72.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gjs.spec ++++++ --- /var/tmp/diff_new_pack.ddEMel/_old 2022-07-09 16:59:33.240482682 +0200 +++ /var/tmp/diff_new_pack.ddEMel/_new 2022-07-09 16:59:33.244482689 +0200 @@ -17,7 +17,7 @@ Name: gjs -Version: 1.72.0 +Version: 1.72.1 # FIXME # Disable tests for unstable 1.71.1 - Try tests again on next versionbump Release: 0 Summary: JavaScript bindings based on gobject-introspection and Mozilla ++++++ gjs-1.72.0.tar.xz -> gjs-1.72.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/.gitignore new/gjs-1.72.1/.gitignore --- old/gjs-1.72.0/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/gjs-1.72.1/.gitignore 2022-07-05 05:30:56.000000000 +0200 @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chime...@gmail.com> +/tools/node_modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/NEWS new/gjs-1.72.1/NEWS --- old/gjs-1.72.0/NEWS 2022-03-19 19:04:36.056217400 +0100 +++ new/gjs-1.72.1/NEWS 2022-07-05 05:30:56.000000000 +0200 @@ -1,3 +1,19 @@ +Version 1.72.1 +-------------- + +- Various fixes ported from the development branch. + +- Closed bugs and merge requests: + * Compilation error: call to deleted function 'js_value_to_c' [#473, !738, + Evan Miller] + * jsapi-util-strings: Ignore locale to compute the upper case of a char (i.e. + fix implicit properties on Turkish locale) [!742, Marco Trevisan] + * Fix memory leak when passing a "transfer none" GBytes parameter to a native + function [!746, msizanoen1] + * arg-cache: Do not leak an interface info structures on Callbacks [!751, + Marco Trevisan] + * test-ci: Ignore safe directory errors on CI [!755, Marco Trevisan] + Version 1.72.0 -------------- @@ -17,7 +33,7 @@ * GNOME Shell crashes at startup with the AppIndicator extension enabled [#466, !729, Marco Trevisan] * Instances of classes implementing interfaces can override functions for all - implentations of an interface [#467, !730, Evan Welsh] + implementations of an interface [#467, !730, Evan Welsh] * package: Reverse order of running-from-source checks [!734, Philip Chimento] * Various maintenance [!735, Philip Chimento] * Various maintenance [!736, Evan Welsh] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/gi/arg-cache.cpp new/gjs-1.72.1/gi/arg-cache.cpp --- old/gjs-1.72.0/gi/arg-cache.cpp 2022-03-19 19:04:36.062217500 +0100 +++ new/gjs-1.72.1/gi/arg-cache.cpp 2022-07-05 05:30:56.000000000 +0200 @@ -226,8 +226,10 @@ }; struct BaseInfo { - explicit BaseInfo(GIBaseInfo* info) - : m_info(info ? g_base_info_ref(info) : nullptr) {} + constexpr explicit BaseInfo(GIBaseInfo* info, + const GjsAutoTakeOwnership& add_ref) + : m_info(info, add_ref) {} + constexpr explicit BaseInfo(GIBaseInfo* info) : m_info(info) {} GjsAutoBaseInfo m_info; }; @@ -251,7 +253,8 @@ struct RegisteredInterface : BaseInfo { explicit RegisteredInterface(GIBaseInfo* info) - : BaseInfo(info), m_gtype(g_registered_type_info_get_g_type(m_info)) {} + : BaseInfo(info, GjsAutoTakeOwnership{}), + m_gtype(g_registered_type_info_get_g_type(m_info)) {} constexpr GType gtype() const { return m_gtype; } @@ -259,8 +262,8 @@ }; struct Callback : Nullable, BaseInfo { - explicit Callback(GITypeInfo* type_info) - : BaseInfo(g_type_info_get_interface(type_info)), + constexpr explicit Callback(GIInterfaceInfo* info) + : BaseInfo(info, GjsAutoTakeOwnership{}), m_scope(GI_SCOPE_TYPE_INVALID) {} inline void set_callback_destroy_pos(int pos) { @@ -555,7 +558,7 @@ explicit UnregisteredBoxedIn(GIInterfaceInfo* info) : BoxedIn(g_registered_type_info_get_g_type(info), g_base_info_get_type(info)), - BaseInfo(info) {} + BaseInfo(info, GjsAutoTakeOwnership{}) {} // This is a smart argument, no release needed GIBaseInfo* info() const override { return m_info; } }; @@ -596,7 +599,7 @@ using GBytesIn::GBytesIn; bool release(JSContext* cx, GjsFunctionCallState* state, GIArgument* in_arg, GIArgument* out_arg) override { - return BoxedIn::release(cx, state, in_arg, out_arg); + return BoxedInTransferNone::release(cx, state, in_arg, out_arg); } }; @@ -2171,8 +2174,8 @@ common_args, DESTROY_NOTIFY_NO_CALLBACK); *inc_counter_out = false; } else { - auto* gjs_arg = - set_argument_auto<Arg::CallbackIn>(common_args, &type_info); + auto* gjs_arg = set_argument_auto<Arg::CallbackIn>( + common_args, interface_info); int destroy_pos = g_arg_info_get_destroy(arg); int closure_pos = g_arg_info_get_closure(arg); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/gi/value.cpp new/gjs-1.72.1/gi/value.cpp --- old/gjs-1.72.0/gi/value.cpp 2022-03-19 19:04:36.068217300 +0100 +++ new/gjs-1.72.1/gi/value.cpp 2022-07-05 05:30:56.000000000 +0200 @@ -479,7 +479,7 @@ return throw_expect_type(context, value, "integer"); } } else if (gtype == G_TYPE_INT64) { - gint64 i; + int64_t i; if (Gjs::js_value_to_c_checked<int64_t>(context, value, &i, &out_of_range) && !out_of_range) { @@ -512,7 +512,7 @@ return throw_expect_type(context, value, "unsigned integer"); } } else if (gtype == G_TYPE_UINT64) { - guint64 i; + uint64_t i; if (Gjs::js_value_to_c_checked<uint64_t>(context, value, &i, &out_of_range) && !out_of_range) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/gjs/gjs_pch.hh new/gjs-1.72.1/gjs/gjs_pch.hh --- old/gjs-1.72.0/gjs/gjs_pch.hh 2022-03-19 19:04:36.070217400 +0100 +++ new/gjs-1.72.1/gjs/gjs_pch.hh 2022-07-05 05:30:56.000000000 +0200 @@ -28,7 +28,6 @@ #include <vector> #include <assert.h> -#include <ctype.h> #include <errno.h> #include <ffi.h> #include <gio/gio.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/gjs/jsapi-util-string.cpp new/gjs-1.72.1/gjs/jsapi-util-string.cpp --- old/gjs-1.72.0/gjs/jsapi-util-string.cpp 2022-03-19 19:04:36.071217300 +0100 +++ new/gjs-1.72.1/gjs/jsapi-util-string.cpp 2022-07-05 05:30:56.000000000 +0200 @@ -4,7 +4,6 @@ #include <config.h> -#include <ctype.h> // for toupper #include <stdint.h> #include <string.h> // for size_t, strlen #include <sys/types.h> // for ssize_t @@ -59,7 +58,7 @@ if (*input_iter == '-') { uppercase_next = true; } else if (uppercase_next) { - *output_iter++ = toupper(*input_iter); + *output_iter++ = g_ascii_toupper(*input_iter); uppercase_next = false; } else { *output_iter++ = *input_iter; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/gjs/profiler.cpp new/gjs-1.72.1/gjs/profiler.cpp --- old/gjs-1.72.0/gjs/profiler.cpp 2022-03-19 19:04:36.073217400 +0100 +++ new/gjs-1.72.1/gjs/profiler.cpp 2022-07-05 05:30:56.000000000 +0200 @@ -786,8 +786,8 @@ self->filename = g_strdup(filename); } -void _gjs_profiler_add_mark(GjsProfiler* self, gint64 time_nsec, - gint64 duration_nsec, const char* group, +void _gjs_profiler_add_mark(GjsProfiler* self, int64_t time_nsec, + int64_t duration_nsec, const char* group, const char* name, const char* message) { g_return_if_fail(self); g_return_if_fail(group); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/meson.build new/gjs-1.72.1/meson.build --- old/gjs-1.72.0/meson.build 2022-03-19 19:04:36.084217300 +0100 +++ new/gjs-1.72.1/meson.build 2022-07-05 05:30:56.000000000 +0200 @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chime...@gmail.com> # SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchun...@src.gnome.org> -project('gjs', 'cpp', 'c', version: '1.72.0', license: ['MIT', 'LGPL2+'], +project('gjs', 'cpp', 'c', version: '1.72.1', license: ['MIT', 'LGPL2+'], meson_version: '>= 0.52.0', default_options: ['cpp_std=c++17', 'cpp_rtti=false', 'c_std=c99', 'warning_level=2', 'b_pch=true' ]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gjs-1.72.0/test/test-ci.sh new/gjs-1.72.1/test/test-ci.sh --- old/gjs-1.72.0/test/test-ci.sh 2022-03-19 19:04:36.091217300 +0100 +++ new/gjs-1.72.1/test/test-ci.sh 2022-07-05 05:30:56.000000000 +0200 @@ -122,6 +122,9 @@ do_Create_Artifacts_Folder "$1" +# Ignore extra git security checks as we don't care in CI. +git config --global --add safe.directory "${PWD}" + if test "$1" = "SETUP"; then do_Show_Info do_Print_Labels 'Show GJS git information'