public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Gtk2] rawhide: Fix compatibility with ExtUtils::ParseXS 3.63 (rhbz#2463162)
@ 2026-06-01 14:44 Jitka Plesnikova
0 siblings, 0 replies; only message in thread
From: Jitka Plesnikova @ 2026-06-01 14:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Gtk2
Branch : rawhide
Commit : a2bae223d2cc94bd1a6b50abdbd78259d5dbb799
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date : 2026-06-01T16:44:02+02:00
Stats : +31/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Gtk2/c/a2bae223d2cc94bd1a6b50abdbd78259d5dbb799?branch=rawhide
Log:
Fix compatibility with ExtUtils::ParseXS 3.63 (rhbz#2463162)
---
diff --git a/Gtk2-1.24993-Adapt-to-EU-ParseXS-3.63.patch b/Gtk2-1.24993-Adapt-to-EU-ParseXS-3.63.patch
new file mode 100644
index 0000000..a27aef4
--- /dev/null
+++ b/Gtk2-1.24993-Adapt-to-EU-ParseXS-3.63.patch
@@ -0,0 +1,24 @@
+Fix compatibility with ExtUtils::ParseXS 3.63
+
+ExtUtils::ParseXS 3.63 introduced a validation rule that prohibits combining
+default parameter values with the length() syntax for the same parameter.
+
+The error was: "default value for initial_chars not allowed when length(initial_chars) also present"
+
+This patch removes the default value (=NULL) from the initial_chars parameter
+signature. The functionality remains unchanged because the CODE block already
+handles the NULL case explicitly with an if statement.
+
+Co-Authored-By: Claude Code <noreply@anthropic.com>
+
+--- Gtk2-1.24993/xs/GtkEntryBuffer.xs.orig 2024-01-01 00:00:00.000000000 +0000
++++ Gtk2-1.24993/xs/GtkEntryBuffer.xs 2026-05-18 00:00:00.000000000 +0000
+@@ -41,7 +41,7 @@
+ =for arg initial_chars (string)
+ =cut
+ GtkEntryBuffer_noinc *
+-gtk_entry_buffer_new (class, const gchar_utf8_length *initial_chars=NULL, gint length(initial_chars))
++gtk_entry_buffer_new (class, const gchar_utf8_length *initial_chars, gint length(initial_chars))
+ CODE:
+ if (initial_chars == NULL) {
+ RETVAL = gtk_entry_buffer_new (NULL, 0);
diff --git a/perl-Gtk2.spec b/perl-Gtk2.spec
index dd34643..bc04245 100644
--- a/perl-Gtk2.spec
+++ b/perl-Gtk2.spec
@@ -10,13 +10,14 @@
Name: perl-Gtk2
Version: 1.24993
-Release: 24%{?dist}
+Release: 25%{?dist}
Summary: Perl interface to the 2.x series of the Gimp Toolkit library
# Automatically converted from old format: LGPLv2+ - review is highly recommended.
License: LicenseRef-Callaway-LGPLv2+
URL: https://metacpan.org/release/Gtk2
Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/Gtk2-%{version}.tar.gz
-BuildRequires: make
+Patch0: Gtk2-1.24993-Adapt-to-EU-ParseXS-3.63.patch
+BuildRequires: make
BuildRequires: gcc
BuildRequires: perl-interpreter >= 2:5.8.0
BuildRequires: perl-devel
@@ -254,6 +255,7 @@ API. Find out more about Gtk+ at http://www.gtk.org.
%prep
%setup -q -n Gtk2-%{version}
+%patch -P0 -p1
# iconv -f iso-8859-1 -t utf-8 -o pm/Helper.pm{.utf8,}
# mv pm/Helper.pm{.utf8,}
@@ -282,6 +284,9 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%{_mandir}/man3/*.3pm*
%changelog
+* Mon Jun 01 2026 Jitka Plesnikova <jplesnik@redhat.com> - 1.24993-25
+- Fix compatibility with ExtUtils::ParseXS 3.63
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.24993-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-01 14:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-01 14:44 [rpms/perl-Gtk2] rawhide: Fix compatibility with ExtUtils::ParseXS 3.63 (rhbz#2463162) Jitka Plesnikova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox