Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gjs for openSUSE:Factory checked in 
at 2026-03-01 22:14:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gjs (Old)
 and      /work/SRC/openSUSE:Factory/.gjs.new.29461 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gjs"

Sun Mar  1 22:14:12 2026 rev:122 rq:1335554 version:1.86.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gjs/gjs.changes  2025-09-24 15:23:02.961236105 
+0200
+++ /work/SRC/openSUSE:Factory/.gjs.new.29461/gjs.changes       2026-03-01 
22:14:43.089700322 +0100
@@ -1,0 +2,7 @@
+Sat Feb 28 01:39:59 UTC 2026 - Xiaoguang Wang <[email protected]>
+
+- Add gjs-gi-Allow-optional-inout-arguments-to-be-null.patch:
+  Allow optional inout arguments to be null
+  (glgo#GNOME/gjs!1047 bsc#1258964).
+
+-------------------------------------------------------------------

New:
----
  gjs-gi-Allow-optional-inout-arguments-to-be-null.patch

----------(New B)----------
  New:
- Add gjs-gi-Allow-optional-inout-arguments-to-be-null.patch:
  Allow optional inout arguments to be null
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gjs.spec ++++++
--- /var/tmp/diff_new_pack.GJYIQw/_old  2026-03-01 22:14:45.453797483 +0100
+++ /var/tmp/diff_new_pack.GJYIQw/_new  2026-03-01 22:14:45.453797483 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gjs
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,9 @@
 URL:            https://wiki.gnome.org/Projects/Gjs
 Source0:        %{name}-%{version}.tar.zst
 
+# PATCH-FIX-UPSTREAM gjs-gi-Allow-optional-inout-arguments-to-be-null.patch 
glgo#GNOME/gjs!1047 bsc#1258964 [email protected] -- Allow optional inout 
arguments to be null
+Patch1:         gjs-gi-Allow-optional-inout-arguments-to-be-null.patch
+
 BuildRequires:  /usr/bin/dbus-run-session
 BuildRequires:  c++_compiler
 BuildRequires:  meson >= 0.54.0

++++++ gjs-gi-Allow-optional-inout-arguments-to-be-null.patch ++++++
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index d11e8ed..1bc325c 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -3642,6 +3642,9 @@ void ArgsCache::build_arg(uint8_t gi_index, GIDirection 
direction,
     GjsArgumentFlags flags = GjsArgumentFlags::NONE;
     if (arg.may_be_null())
         flags |= GjsArgumentFlags::MAY_BE_NULL;
+    if ((direction == GI_DIRECTION_OUT || direction == GI_DIRECTION_INOUT) &&
+        arg.is_optional())
+        flags |= GjsArgumentFlags::MAY_BE_NULL;
     if (arg.caller_allocates())
         flags |= GjsArgumentFlags::CALLER_ALLOCATES;
 

Reply via email to