Fedora Account System
Red Hat Associate
Red Hat Customer
perl-Sub-HandlesVia-0.050000-6.fc42 fails to build in Fedora 42 because a test fails: t/50objectpad.t ........................ 'has' is no longer supported; use 'field' instead at t/50objectpad.t line 11, near " has " t/50objectpad.t ........................ Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run This is triggered by upgrading perl-Object-Pad from 0.812-1.fc42 to 0.813-1.fc42. Object-Pad intentionally removed support for "has" keyword: 0.813 2024-09-03 [CHANGES] * Removed the `has` keyword; it now immediately throws a compiletime error
I think, this patch to the spec should fix this issue: @@ -58,6 +58,10 @@ you should have a fairly good idea what this does. %prep %setup -q -n Sub-HandlesVia-%{version} +# Work-around RHBZ#2310796 +# 'has' is no longer supported; use 'field' instead +# API change in Object::Pad >= 0.813 +sed -i -e 's,has,field,' t/50objectpad.t %build %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 However, I am more worried about further issues this change to Object::Pad may have elsewhere.
FEDORA-2024-b3bbe4c929 (perl-Sub-HandlesVia-0.050000-7.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-b3bbe4c929
FEDORA-2024-b3bbe4c929 (perl-Sub-HandlesVia-0.050000-7.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.