[packages/perl-Gnome2] fix compilation with gcc 14
atler
atler at pld-linux.org
Sun Jul 27 16:14:16 CEST 2025
commit 7d13e5befa51bfbb277a27a7ce82c113f3efdcd2
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jul 27 16:12:03 2025 +0200
fix compilation with gcc 14
the original code doesn't make sense so does the fix but make it compile
just like it did before. no point in figuring out what author had in
mind in this long obsolete package.
perl-Gnome2.spec | 2 ++
types.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/perl-Gnome2.spec b/perl-Gnome2.spec
index cbb00fb..641a3ad 100644
--- a/perl-Gnome2.spec
+++ b/perl-Gnome2.spec
@@ -12,6 +12,7 @@ License: LGPL v2.1+
Group: Development/Languages/Perl
Source0: https://download.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz
# Source0-md5: 38408e8195e86b1dda0704a0054ae5a8
+Patch0: types.patch
URL: http://gtk2-perl.sourceforge.net/
BuildRequires: libbonoboui-devel >= 2.0.0
BuildRequires: libgnomeui-devel >= 2.14.1
@@ -67,6 +68,7 @@ Pliki programistyczne wiązań Gnome2 dla Perla.
%prep
%setup -q -n %{pdir}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..7e8ec40
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- Gnome2-1.048/xs/GnomeAppHelper.xs.orig 2013-09-30 07:22:55.000000000 +0200
++++ Gnome2-1.048/xs/GnomeAppHelper.xs 2025-07-27 16:09:50.746124149 +0200
+@@ -29,7 +29,7 @@
+ if (callback) {
+ dGPERL_CALLBACK_MARSHAL_SP;
+ #ifdef PERL_IMPLICIT_CONTEXT
+- PERL_SET_CONTEXT (callback);
++ PERL_SET_CONTEXT ((PerlInterpreter*)callback);
+ SPAGAIN;
+ #endif
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Gnome2.git/commitdiff/7d13e5befa51bfbb277a27a7ce82c113f3efdcd2
More information about the pld-cvs-commit
mailing list