public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jitka Plesnikova <jplesnik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Gtk2] rawhide: Fix compatibility with ExtUtils::ParseXS 3.63 (rhbz#2463162)
Date: Mon, 01 Jun 2026 14:44:22 GMT [thread overview]
Message-ID: <178032506227.1.13440521468908787064.rpms-perl-Gtk2-a2bae223d2cc@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-01 14:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178032506227.1.13440521468908787064.rpms-perl-Gtk2-a2bae223d2cc@fedoraproject.org \
--to=jplesnik@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox