diff --git a/Glib-Object-Introspection-0.050-Check-for-empty-closures.patch b/Glib-Object-Introspection-0.050-Check-for-empty-closures.patch deleted file mode 100644 index 13b4596..0000000 --- a/Glib-Object-Introspection-0.050-Check-for-empty-closures.patch +++ /dev/null @@ -1,36 +0,0 @@ -From eef3b1f8662bf76095987eeef41308094693cf3e Mon Sep 17 00:00:00 2001 -From: Emmanuele Bassi -Date: Wed, 29 Mar 2023 19:42:51 +0100 -Subject: [PATCH 1/2] Check for empty closures - -The closure field of the callback info structure can be NULL, which -means we need to check before calling functions on it. - -Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=147409 - -Closes: #4 ---- - gperl-i11n-marshal-callback.c | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/gperl-i11n-marshal-callback.c b/gperl-i11n-marshal-callback.c -index 14ad003..d422de6 100644 ---- a/gperl-i11n-marshal-callback.c -+++ b/gperl-i11n-marshal-callback.c -@@ -57,8 +57,11 @@ sv_to_callback (GIArgInfo * arg_info, - callback_info->closure, callback_info); - - #if GI_CHECK_VERSION (1, 72, 0) -- return g_callable_info_get_closure_native_address (callback_interface_info, -- callback_info->closure); -+ if (callback_info->closure) -+ return g_callable_info_get_closure_native_address (callback_interface_info, -+ callback_info->closure); -+ else -+ return NULL; - #else - return callback_info->closure; - #endif --- -2.40.0 - diff --git a/Glib-Object-Introspection-0.050-tests-Add-empty-callback.patch b/Glib-Object-Introspection-0.050-tests-Add-empty-callback.patch deleted file mode 100644 index f2e7728..0000000 --- a/Glib-Object-Introspection-0.050-tests-Add-empty-callback.patch +++ /dev/null @@ -1,34 +0,0 @@ -From f07294330f0dc03b9f851d898ef7ed02b3291b6d Mon Sep 17 00:00:00 2001 -From: Emmanuele Bassi -Date: Wed, 29 Mar 2023 20:14:31 +0100 -Subject: [PATCH 2/2] tests: Add empty callback - -Check that we're not trying to access an undefined callable. ---- - t/callbacks.t | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/t/callbacks.t b/t/callbacks.t -index af035fd..e8d3035 100644 ---- a/t/callbacks.t -+++ b/t/callbacks.t -@@ -5,11 +5,15 @@ BEGIN { require './t/inc/setup.pl' }; - use strict; - use warnings; - --plan tests => 25; -+plan tests => 27; - - my $data = 42; - my $result = 23; - my $callback = sub { is @_, 1; is $_[0], $data; return $result; }; -+my $empty_callback = sub { return $result }; -+ -+is (Regress::test_callback ($empty_callback), $result); -+is (Regress::test_callback (undef), 0); - - is (Regress::test_callback_user_data ($callback, $data), $result); - --- -2.40.0 - diff --git a/perl-Glib-Object-Introspection.spec b/perl-Glib-Object-Introspection.spec index c01a980..7ab70a3 100644 --- a/perl-Glib-Object-Introspection.spec +++ b/perl-Glib-Object-Introspection.spec @@ -1,17 +1,11 @@ Name: perl-Glib-Object-Introspection -Version: 0.050 -Release: 7%{?dist} +Version: 0.051 +Release: 1%{?dist} Summary: Dynamically create Perl language bindings License: LGPL-2.1-or-later URL: https://metacpan.org/release/Glib-Object-Introspection Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-Object-Introspection-%{version}.tar.gz Patch1: perl-Glib-Object-Introspection_lib_pattern.patch -# 1/2 Fix handling empty closure callbacks, bug #2181971, CPAN RT#147409, -# in upstream after 0.050. -Patch2: Glib-Object-Introspection-0.050-Check-for-empty-closures.patch -# 2/2 Fix handling empty closure callbacks, bug #2181971, CPAN RT#147409, -# in upstream after 0.050. -Patch3: Glib-Object-Introspection-0.050-tests-Add-empty-callback.patch # Use system-wide compiler flags when building test libraries. It's silents # annocheck gating tests, CPAN RT#147466, proposed to the upstream. Patch4: Glib-Object-Introspection-0.050-Use-CFLAGS-and-LDFLAGS-from-the-envirnoment-for-buil.patch @@ -137,6 +131,9 @@ LANG=C.UTF-8 make test %{_libexecdir}/%{name} %changelog +* Sun Feb 18 2024 Sérgio Basto - 0.051-1 +- Update perl-Glib-Object-Introspection to 0.051 (#2235533) + * Thu Jan 25 2024 Fedora Release Engineering - 0.050-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index b1ea790..b48304b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Glib-Object-Introspection-0.050.tar.gz) = 3939a7d96800416ca4e52bf263b5b84dde0a5dbe5ed636dc6668ee005c1f018e5988f8e0ba059165f966a05b5efc992391ae0de991e87b9118fab92ee39f97f4 +SHA512 (Glib-Object-Introspection-0.051.tar.gz) = 93ebe81b586270cbeca4296bfdd1d337d931b6349ca16a8e50bfc631c89a77d93f4d8076289e91bdcec0fdb732a2900b2a6c5e78e571c0c0fd4c7f5239cc0de5