Debian Patches

Status for libmodule-reader-perl/0.003003-4

Patch Description Author Forwarded Bugs Origin Last update
0001-Adjust-require-exception-to-perl-5.37.8-wording.patch [PATCH] Adjust require exception to perl 5.37.8 wording
With perl 5.38.0 t/memmory test fails on Regexp objects:

not ok 9 - regex fails the same as require
# Failed test 'regex fails the same as require'
# at t/memory.t line 99.
# got: 'Can't locate object method "INC" via package "Regexp"'
# expected: 'Can't locate object method "INC", nor "INCDIR" nor string overload via package "Regexp" in object hook in @INC'
not ok 10 - class without INC fails the same as require
# Failed test 'class without INC fails the same as require'
# at t/memory.t line 99.
# got: 'Can't locate object method "INC" via package "NonHook"'
# expected: 'Can't locate object method "INC", nor "INCDIR" nor string overload via package "NonHook" in object hook in @INC'

This is probably caused by this perl commit which also changed the exception
text:

commit 0d370d41c6e8fe1e36eb93a5561e6716ee3a7e3e
Author: Yves Orton <demerphq@gmail.com>
Date: Sun Dec 18 18:48:51 2022 +0100

pp_ctl.c - Check if refs have overloads in @INC

If an object in @INC doesnt have a hook method, and it isnt a CODE ref
then check if it has string overloading, if it does not then die with a
helpful message, otherwise call the overload

This uses the nice new amagic_find() function.

This patch adjustes Module::Reader::_open_ref() to emit a similar
exception text. Though it does implement the missing features like
handling INCDIR method or string overloading.

With the new perl it's impossible to get the same exception text in
a different way than by calling "require" function. Therefore
in the long term, I recommend stop insisting on error-to-error parity
and relaxing the tests instead.

CPAN RT#148979
=?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> yes debian upstream https://rt.cpan.org/Ticket/Display.html?id=148979 2023-08-04

All known versions for source package 'libmodule-reader-perl'

Links