Package Details: gtk2-perl 1.24993-9

Git Clone URL: https://aur.archlinux.org/gtk2-perl.git (read-only, click to copy)
Package Base: gtk2-perl
Description: Perl bindings for GTK+ 2.x
Upstream URL: http://gtk2-perl.sourceforge.net/
Licenses: LGPL
Submitter: City-busz
Maintainer: FabioLolix
Last Packager: City-busz
Votes: 4
Popularity: 0.011819
First Submitted: 2025-10-24 09:14 (UTC)
Last Updated: 2025-10-24 09:14 (UTC)

Latest Comments

Rhinoceros commented on 2026-10-22 02:51 (UTC)

I also have this issue. I checked the code, and it looks like this file from upstream is the problem: src/Gtk2-1.24993/xs/GtkEntryBuffer.xs on line 44. I just removed the default value as per the error message, which seemed to fix it. i.e. this was my change.

--- xs/GtkEntryBuffer.xs.orig   2026-10-22 13:38:11.199866807 +1100
+++ xs/GtkEntryBuffer.xs    2026-10-22 13:46:17.733841177 +1100
@@ -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);

@FabioLolix Can you please add a patch, because it's currently broken with the current perl.

0strodamus commented on 2026-10-20 03:22 (UTC) (edited on 2026-10-24 23:21 (UTC) by 0strodamus)

Build is failing for me with perl-5.44.0. "Error: default value for initial_chars not allowed when length(initial_chars) also present in GtkEntryBuffer.xs, line 44". I found this bug report, but it was just closed without a fix. Has anyone here figured out a fix for this? @Rhinoceros Thanks for posting a fix!