diff -Nru libwx-perl-0.9932/debian/changelog libwx-perl-0.9932/debian/changelog --- libwx-perl-0.9932/debian/changelog 2022-02-06 12:47:58.000000000 +0000 +++ libwx-perl-0.9932/debian/changelog 2022-07-15 19:19:56.000000000 +0000 @@ -1,8 +1,11 @@ -libwx-perl (1:0.9932-6build1) jammy; urgency=medium +libwx-perl (1:0.9932-7) unstable; urgency=medium - * No-change rebuild for the perl update. + * Add patch to fix regression with perl >= 5.35.9. + Thanks to Niko Tyni for the patch! (Closes: #1014295) + * Declare compliance with Debian Policy 4.6.1. + * Refresh lintian overrides. - -- Matthias Klose Sun, 06 Feb 2022 13:47:58 +0100 + -- gregor herrmann Fri, 15 Jul 2022 21:19:56 +0200 libwx-perl (1:0.9932-6) unstable; urgency=medium diff -Nru libwx-perl-0.9932/debian/control libwx-perl-0.9932/debian/control --- libwx-perl-0.9932/debian/control 2021-11-06 00:47:36.000000000 +0000 +++ libwx-perl-0.9932/debian/control 2022-07-15 19:19:56.000000000 +0000 @@ -19,7 +19,7 @@ xauth , xfonts-base , xvfb -Standards-Version: 4.6.0 +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libwx-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libwx-perl.git Homepage: http://wxperl.sourceforge.net/ diff -Nru libwx-perl-0.9932/debian/libwx-perl.lintian-overrides libwx-perl-0.9932/debian/libwx-perl.lintian-overrides --- libwx-perl-0.9932/debian/libwx-perl.lintian-overrides 2021-11-06 00:47:36.000000000 +0000 +++ libwx-perl-0.9932/debian/libwx-perl.lintian-overrides 2022-07-15 19:19:56.000000000 +0000 @@ -1,6 +1,7 @@ # true but since this is a variable we'd better leave it alone -libwx-perl: spelling-error-in-binary usr/lib/*/perl5/*/auto/Wx/Wx.so resizeable resizable -libwx-perl: spelling-error-in-binary usr/lib/*/perl5/*/auto/Wx/DataView/DataView.so resizeable resizable +libwx-perl: spelling-error-in-binary resizeable resizable [usr/lib/*/perl5/*/auto/Wx/Wx.so] +libwx-perl: spelling-error-in-binary resizeable resizable [usr/lib/*/perl5/*/auto/Wx/DataView/DataView.so] + # Indeed primarily a library -libwx-perl: library-package-name-for-application usr/bin/wxperl_overload -libwx-perl: application-in-library-section perl usr/bin/wxperl_overload +libwx-perl: library-package-name-for-application [usr/bin/wxperl_overload] +libwx-perl: application-in-library-section perl [usr/bin/wxperl_overload] diff -Nru libwx-perl-0.9932/debian/patches/0001-Explicitly-return-a-string-SV-from-Wx-InputStream-RE.patch libwx-perl-0.9932/debian/patches/0001-Explicitly-return-a-string-SV-from-Wx-InputStream-RE.patch --- libwx-perl-0.9932/debian/patches/0001-Explicitly-return-a-string-SV-from-Wx-InputStream-RE.patch 1970-01-01 00:00:00.000000000 +0000 +++ libwx-perl-0.9932/debian/patches/0001-Explicitly-return-a-string-SV-from-Wx-InputStream-RE.patch 2022-07-15 19:19:56.000000000 +0000 @@ -0,0 +1,37 @@ +From 41bcb4f309b5a8f13dfa9c6d417369938cbe6060 Mon Sep 17 00:00:00 2001 +From: Niko Tyni +Date: Sun, 10 Jul 2022 16:53:10 +0100 +Subject: [PATCH] Explicitly return a string SV from Wx::InputStream::READLINE + +Perl 5.35.9 changed SV integer / string handling slightly, resulting in +the return value from READLINE() to evaluate as false regardless of its +string contents, because it is initially created as the integer 0 and no +longer gets marked as a valid string. This broke the Wx-Perl-ProcessStream +distribution test suite. + +Fix the regression by explicitly setting SvPOK on the return value, +mirroring the sibling READ() method. + +Bug-Debian: https://bugs.debian.org/1014295 +Bug: https://rt.cpan.org/Ticket/Display.html?id=143774 +Forwarded: https://rt.cpan.org/Ticket/Display.html?id=143774 + +--- + XS/Stream.xs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/XS/Stream.xs b/XS/Stream.xs +index b6ef184..f680394 100644 +--- a/XS/Stream.xs ++++ b/XS/Stream.xs +@@ -97,6 +97,7 @@ Wx_InputStream::READLINE() + if( THIS->Eof() ) { XSRETURN_UNDEF; } + RETVAL = newSViv( 0 ); + buff = SvPV_nolen( RETVAL ); ++ SvPOK_on( RETVAL ); + + while( THIS->CanRead() && THIS->Read( &c, 1 ).LastRead() != 0 ) + { +-- +2.35.2 + diff -Nru libwx-perl-0.9932/debian/patches/series libwx-perl-0.9932/debian/patches/series --- libwx-perl-0.9932/debian/patches/series 2021-11-06 00:47:36.000000000 +0000 +++ libwx-perl-0.9932/debian/patches/series 2022-07-15 19:19:56.000000000 +0000 @@ -10,3 +10,4 @@ 0004-Define-enum-values-in-sorted-order.patch 0001-fix-incomplete-Wx_Exp.pm-due-to-missing-dependecy-in.patch gtk3.patch +0001-Explicitly-return-a-string-SV-from-Wx-InputStream-RE.patch