Compiling C4/SIP/Sip/MsgType.pm generates the warning UNIVERSAL->import is deprecated and will be removed in a future perl in perl 5.22 this is now a fatal error causing compilation to abort with the message 'UNIVERSAL does not export anything'. (And e.g. crashing Koha's test suite fairly early on) replace invalid call to UNIVERSAL with a use UNIVERSAL::can to avoid this
Created attachment 44992 [details] [review] Proposed patch Easy to test Without patch compiling MsgType.pm (perl -wc C4/SIP/Sip/MsgType.pm) will give a depreciation warning about calling UNIVERSAL's methods or with perl 5.22 will abort compilation with message that UNIVERSAL does not export any methods With patch applied module should compile without the warning/error
Created attachment 45037 [details] [review] [SIGNED-OFF] Bug 15215: Remove warning due to misuse of UNIVERSAL Calling UNIVERSAL's internal methods will cause a depreciation warning in perls less that 5.22 as of 5.22 the warning is a fatal error causing compilation to abort Replace the use UNIVERSAL with UNIVERSAL::can to work around the buggy construct perldoc UNIVERSAL::can for more info Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> No more worning/error No qa errors
Created attachment 45043 [details] [review] [PASSED QA] Bug 15215: Remove warning due to misuse of UNIVERSAL Calling UNIVERSAL's internal methods will cause a depreciation warning in perls less that 5.22 as of 5.22 the warning is a fatal error causing compilation to abort Replace the use UNIVERSAL with UNIVERSAL::can to work around the buggy construct perldoc UNIVERSAL::can for more info Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> No more worning/error No qa errors Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Patch pushed to master. Thanks Colin!
This patch has been pushed to 3.20.x, will be in 3.20.6.