[packages/perl-Gnome2-Print] perl 5.36 compatibility fix
atler
atler at pld-linux.org
Tue Aug 23 11:41:32 CEST 2022
commit b96ebb6e19767ac106c64bc36576dee7b88774f9
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Aug 23 11:40:51 2022 +0200
perl 5.36 compatibility fix
perl-5.36.patch | 11 +++++++++++
perl-Gnome2-Print.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/perl-Gnome2-Print.spec b/perl-Gnome2-Print.spec
index 52ddc27..10584cb 100644
--- a/perl-Gnome2-Print.spec
+++ b/perl-Gnome2-Print.spec
@@ -12,6 +12,7 @@ License: LGPL v2+
Group: Development/Languages/Perl
Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
# Source0-md5: 67ae821c4b7cb9046513a3944cd37e9b
+Patch0: perl-5.36.patch
URL: http://gtk2-perl.sourceforge.net/
BuildRequires: libgnomeprintui-devel >= 2.2.0
BuildRequires: perl-ExtUtils-Depends >= 0.1
@@ -57,6 +58,7 @@ Pliki programistyczne wiązań Gnome2-Print dla Perla.
%prep
%setup -q -n %{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-5.36.patch b/perl-5.36.patch
new file mode 100644
index 0000000..9397c72
--- /dev/null
+++ b/perl-5.36.patch
@@ -0,0 +1,11 @@
+--- Gnome2-Print-1.001/xs/GnomePrintConfig.xs.orig 2011-11-27 08:57:10.000000000 +0100
++++ Gnome2-Print-1.001/xs/GnomePrintConfig.xs 2022-08-23 11:38:41.636611870 +0200
+@@ -153,7 +153,7 @@
+ gdouble value;
+ if (! gnome_print_config_get_double (config, key, &value))
+ XSRETURN_UNDEF;
+- EXTEND (SP, 1),
++ EXTEND (SP, 1);
+ PUSHs (sv_2mortal (newSVnv (value)));
+ break;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Gnome2-Print.git/commitdiff/b96ebb6e19767ac106c64bc36576dee7b88774f9
More information about the pld-cvs-commit
mailing list