Bug#1005016: libobject-pad-slotattr-final-perl: Object::Pad::SlotAttr::Final is replaced by Object::Pad::FieldAttr::Final

gregor herrmann gregoa at debian.org
Sat Feb 5 14:27:46 GMT 2022


Source: libobject-pad-slotattr-final-perl
Version: 0.04-2
Severity: normal
X-Debbugs-Cc: Jonas Smedegaard <js at debian.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I noticed that libobject-pad-slotattr-final-perl fails its
autopkgtests because of a deprecation warning:

autopkgtest [15:14:29]: test autodep8-perl: /usr/share/pkg-perl-autopkgtest/runner runtime-deps
autopkgtest [15:14:29]: test autodep8-perl: [-----------------------

#   Failed test ' /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 produced no (non-whitelisted) output'
#   at /usr/share/pkg-perl-autopkgtest/runtime-deps.d/use.t line 107.

#   Failed test 'env PERL_DL_NONLAZY=1  /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 produced no (non-whitelisted) output'
#   at /usr/share/pkg-perl-autopkgtest/runtime-deps.d/use.t line 107.
# Looks like you failed 2 tests of 4.
/usr/share/pkg-perl-autopkgtest/runtime-deps.d/use.t .. 
1..4
# register_slot_attribute() is now deprecated; use register_field_attribute() instead at /usr/lib/x86_64-linux-gnu/perl-base/XSLoader.pm line 111.
ok 1 -  /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 exited successfully
not ok 2 -  /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 produced no (non-whitelisted) output
# register_slot_attribute() is now deprecated; use register_field_attribute() instead at /usr/lib/x86_64-linux-gnu/perl-base/XSLoader.pm line 111.
ok 3 - env PERL_DL_NONLAZY=1  /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 exited successfully
not ok 4 - env PERL_DL_NONLAZY=1  /usr/bin/perl -w -M"Object::Pad::SlotAttr::Final" -e 1 2>&1 produced no (non-whitelisted) output
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/4 subtests 

Test Summary Report
- -------------------
/usr/share/pkg-perl-autopkgtest/runtime-deps.d/use.t (Wstat: 512 Tests: 4 Failed: 2)
  Failed tests:  2, 4
  Non-zero exit status: 2
Files=1, Tests=4,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.09 cusr  0.02 csys =  0.13 CPU)
Result: FAIL
autopkgtest [15:14:29]: test autodep8-perl: -----------------------]
autopkgtest [15:14:30]: test autodep8-perl:  - - - - - - - - - - results - - - - - - - - - -


This warning comes from Object::Pad 0.60 which renamed 'slots' to
'fields'.

Now in libobject-pad-slotattr-final-perl we could silence the
autopkgtest warnings or we could patch the code but still the module
and the package would be called *slot* …

So I looked at the MetaCPAN, and indeed, there is a renamed
distribution available: https://metacpan.org/dist/Object-Pad-FieldAttr-Final

I guess we should replace libobject-pad-slotattr-final-perl with
libobject-pad-fieldattr-final-perl …


Well, and this is not the only package with 'slot':

% apt-cache --names-only search libobject-pad-slot | grep -v dbgsym
libobject-pad-slotattr-final-perl - declare Object::Pad slots readonly after construction
libobject-pad-slotattr-isa-perl - apply class type constraints to Object::Pad slots
libobject-pad-slotattr-lazyinit-perl - lazily initialise Object::Pad slots at first read
libobject-pad-slotattr-trigger-perl - invoke an instance method after a :writer accessor

 
Cheers,
gregor

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmH+iWJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgbCnA/8C/FumDm2bljlUNhzbbrj00nUSB1BMjE254opiGGF+jqHVvoPjbcRoIbg
APPkugDOgyDOa+3MeEnwPN1jpxROiJHDrKgrtY0mLmP14BDk+SbMO6S9MDzq8QV3
xNuQs0Gvmy+ZF7rJLkt3jkE31SDKl16UytHG/1KmNMieaKJj44zhaptv1mACHr4E
Bvy/avAS/vzrnqY+2g7KGno0pdxNj8tFMFdqf0FviXuUFcEqM5fgbJN/wBMDgKr5
qpmZnlXXVcgOPMRH/QF85byrll5FPcGf67Uy6t44cU9DLVM6JSsRtlctU8mzE6Ry
I3iloE2ly2Mb8dUYPRPs1dvAUlfs6N814kQrHEZ3f0AQLw1vPMRXYXFRS6Qzg6iD
CMtQt/7ql5wKfnJ5Cl2Ja5v6LOSmC+3GyPCIVkuRknXdZw0xFuF39f+nsjuRCvLp
ZBjp2/ANFI5iCYCqlS3xkOEH/f2hHA+UCnKoIAmQLQthOqByOaWFiMibT8t+8G/5
uLi1CTdRTqO+v5zyGlrWsnx8CtNlxuLkt0aZbi3glpWSbdpUYgVtumAqYtVMRUDe
aN4l0GI1qIvG6n4BnXk+caczR7jkxqP78+DwiT9utMOxsd1jJKqedQSwh9mISoPy
ttyVJuXZrvtS4gom5rZOMfmL4yEqtkAmEIE8CIk9p4vT+QU9Q2g=
=eSHN
-----END PGP SIGNATURE-----


More information about the pkg-perl-maintainers mailing list