[Bug 5105] New: Switch Module Depreciated in perl 12
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Summary: Switch Module Depreciated in perl 12 Change sponsored?: --- Product: Koha Version: rel_3_2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Architecture, internals, and plumbing AssignedTo: gmcharlt@gmail.com ReportedBy: colin.campbell@ptfs-europe.com QAContact: koha-bugs@lists.koha-community.org Estimated Hours: 0.0 Use of the Switch module is depreciated in perl 12 and above and generates warnings to that effect. Occurrences in the source should be replaced. As 3.2 is compatible with perl 5.8.8 Switch would have to be replaced by an if/else construct. In future version of Koha (i.e. supporting 5.10 and greater only) the given/when syntax is available. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Zeno Tajoli <tajoli@cilea.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tajoli@cilea.it --- Comment #1 from Zeno Tajoli <tajoli@cilea.it> --- But where can I see those warnings ? Only in logs, I think. So the work path that I suggest is: 3.0.x -> no changes 3.2 -> delete Switch, use ifs 3.4 -> start to use 'given' and 'when', insert perl 5.10 as a requirement. Where I find use Switch: $ grep -r 'use Switch' * basket/downloadcart.pl:use Switch; C4/Reports/Guided.pm:use Switch; opac/opac-downloadcart.pl:use Switch; opac/opac-detail.pl:use Switch; opac/opac-downloadshelf.pl:use Switch; tools/batchMod.pl:use Switch; virtualshelves/downloadshelf.pl:use Switch; -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|gmcharlt@gmail.com |colin.campbell@ptfs-europe. | |com --- Comment #2 from Colin Campbell <colin.campbell@ptfs-europe.com> 2010-09-08 13:09:05 UTC --- Created attachment 2604 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=2604 Proposed Patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz --- Comment #3 from Chris Cormack <chris@bigballofwax.co.nz> 2010-11-10 22:34:24 UTC --- Pushed to new/bug_5105 And merged to master, please test and close -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic@tamil.fr --- Comment #4 from Frédéric Demians <frederic@tamil.fr> 2010-11-11 08:16:38 UTC --- Added a regression test: http://lists.koha-community.org/pipermail/koha-patches/2010-November/012895.... -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 --- Comment #5 from Chris Cormack <chris@bigballofwax.co.nz> 2010-11-12 02:46:17 UTC --- Regression test pushed also -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5105 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org