[packages/perl-Gtk2] add type fixes

atler atler at pld-linux.org
Tue Aug 11 22:30:16 CEST 2026


commit 1fa8a04409033c0c0c62a013f5833a91ba134b0c
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Aug 11 22:29:43 2026 +0200

    add type fixes

 perl-Gtk2.spec |  2 ++
 types.patch    | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
---
diff --git a/perl-Gtk2.spec b/perl-Gtk2.spec
index d0a6015..abfcf49 100644
--- a/perl-Gtk2.spec
+++ b/perl-Gtk2.spec
@@ -14,6 +14,7 @@ Group:		Development/Languages/Perl
 Source0:	http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz
 # Source0-md5:	4bc5bee6ec7bfbd578ec51f502db2734
 Patch0:		Gtk2-1.24993-Adapt-to-EU-ParseXS-3.63.patch
+Patch1:		types.patch
 URL:		http://gtk2-perl.sourceforge.net/
 BuildRequires:	gtk+2-devel >= 2:2.12.0
 BuildRequires:	pango-devel >= 1:1.18
@@ -60,6 +61,7 @@ Pliki programistyczne wiązań Gtk2 dla Perla.
 %prep
 %setup -q -n %{pdir}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..94cb7ce
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,20 @@
+--- Gtk2-1.24993/xs/GtkItemFactory.xs.orig	2017-05-21 21:02:54.000000000 +0200
++++ Gtk2-1.24993/xs/GtkItemFactory.xs	2026-08-11 22:28:17.278050502 +0200
+@@ -134,7 +134,7 @@
+ 
+ 			if (callback && value && gperl_sv_is_defined (*value)) {
+ 				*callback = *value;
+-				entry->callback = gtk2perl_item_factory_item_activate;
++				entry->callback = (GtkItemFactoryCallback) gtk2perl_item_factory_item_activate;
+ 			}
+ 		}
+ 
+@@ -152,7 +152,7 @@
+ 
+ 		if (callback && value && gperl_sv_is_defined (*value)) {
+ 			*callback = *value;
+-			entry->callback = gtk2perl_item_factory_item_activate;
++			entry->callback = (GtkItemFactoryCallback) gtk2perl_item_factory_item_activate;
+ 		}
+ 
+ 		AV_FETCH_AND_CHECK (3, callback_action, SvIV (*value));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Gtk2.git/commitdiff/1fa8a04409033c0c0c62a013f5833a91ba134b0c



More information about the pld-cvs-commit mailing list