Debian Patches

Status for libimage-sane-perl/5-2

Patch Description Author Forwarded Bugs Origin Last update
manifest Disable MANIFEST test, as this is only interesting for the author, and is confused by the debian-perl team git repo. Jeffrey Ratcliffe <> no 2017-07-15
Image-Sane-5-Replace-deprecated-given-and-when-operators.patch [PATCH] Replace deprecated given and when operators
Perl 5.37.11 depracated "given" and "when" keywords and scheduled
them, together with a smart match operator, for removal in Perl 5.42.

This lead to t/81_scanimage-perl.t failures:

# Failed test '--device=test --test 2>&1'
# at t/81_scanimage-perl.t line 42.
# got: 'scanimage: scanning image of size 157x196 pixels at 8 bits/pixel
# scanimage: acquiring gray frame, 8 bits/sample
# scanimage: reading one scanline, 157 bytes... PASS
# scanimage: reading one byte... PASS
# '
# expected: 'given is deprecated at examples/scanimage line 125.
# when is deprecated at examples/scanimage line 126.
# when is deprecated at examples/scanimage line 129.

This patch rewrites the code not to use "given" and "when".

CPAN RT#148487
=?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <> yes debian upstream 2023-06-21

All known versions for source package 'libimage-sane-perl'