Re: [Koha-devel] DateUtils / Zebra
At 10:41 PM 12/13/2015 -0300, Tomas Cohen Arazi wrote:
You are running an antique version of Koha. And it used to use experimental features from Perl (that were removed later). It doesn't hurt to have those warnings anyway.
Tomas -- tnx for the reply. Do you remember if this was a change to <http://rebuild_zebra.pl>rebuild_zebra.pl or to DateUtils.pm? As I said below, I couldn't find any documentation on the subject -- and I'd like to look into getting rid of the warnings. Thanks -- Paul
2015-12-13 20:09 GMT-03:00 Paul A <<mailto:paul.a@navalmarinearchive.com>paul.a@navalmarinearchive.com>: (I found one email, no response, from 21 May 2014 on this subject; can't find anything 'DateUtils' with either 'Zebra' or 'catalog' in <http://bugs.koha-community.org>bugs.koha-community.org.) It's extremely rare nowadays that we do a complete re-index on the production servers, but I did one today after a direct (naughty me) tweak to MySQL (frameworks/itemtypes) to avoid a lengthy sandbox<==>production to and fro. I got the following: koha_account@my_production:/usr/share/koha$ ./bin/migration_tools/<http://rebuild_zebra.pl>rebuild_zebra.pl -b -r -v -x given is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 114. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 115. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 118. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 121. Smartmatch is experimental at /usr/share/koha/lib/C4/Search.pm line 492. Useless use of '\'; doesn't escape metacharacter '(' at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 917. Just thought I'd ask if anyone has any thoughts on this as I'm fairly sure I've never seen it before -- note, it doesn't *appear* to hurt anything. Tnx and regards -- Paul _______________________________________________ Koha-devel mailing list <mailto:Koha-devel@lists.koha-community.org>Koha-devel@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : <http://www.koha-community.org/>http://www.koha-community.org/ git : <http://git.koha-community.org/>http://git.koha-community.org/ bugs : <http://bugs.koha-community.org/>http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (<http://theke.io/>http://theke.io) â +54 9351 3513384 GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
--- Maritime heritage and history, preservation and conservation, research and education through the written word and the arts. <http://NavalMarineArchive.com> and <http://UltraMarine.ca>
Paul, The warning are really coming from DateUtils' usages of 'when', 'given' and the smartmatch '~~'. Newer Koha code got rid of them. If you want an easy way out, just put |no if ($] >= 5.018), 'warnings' => 'experimental';| At the top of DateUtils.pm, C4/Search.pm and any other file you want to go through with your old code. Or downgrade Perl to an older version, if you deem that easier :) Cheers, Philippe Blouin, Responsable du développement informatique Tél. : (888) 604-2627 philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com> inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com> On 12/14/2015 03:10 PM, Paul A wrote:
At 10:41 PM 12/13/2015 -0300, Tomas Cohen Arazi wrote:
You are running an antique version of Koha. And it used to use experimental features from Perl (that were removed later). It doesn't hurt to have those warnings anyway.
Tomas -- tnx for the reply.
Do you remember if this was a change to rebuild_zebra.pl <http://rebuild_zebra.pl> or to DateUtils.pm? As I said below, I couldn't find any documentation on the subject -- and I'd like to look into getting rid of the warnings.
Thanks -- Paul
2015-12-13 20:09 GMT-03:00 Paul A <paul.a@navalmarinearchive.com <mailto:paul.a@navalmarinearchive.com>>:
(I found one email, no response, from 21 May 2014 on this subject; can't find anything 'DateUtils' with either 'Zebra' or 'catalog' in bugs.koha-community.org <http://bugs.koha-community.org>.) It's extremely rare nowadays that we do a complete re-index on the production servers, but I did one today after a direct (naughty me) tweak to MySQL (frameworks/itemtypes) to avoid a lengthy sandbox<==>production to and fro. I got the following: koha_account@my_production:/usr/share/koha$ ./bin/migration_tools/rebuild_zebra.pl <http://rebuild_zebra.pl> -b -r -v -x given is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 114. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 115. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 118. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 121. Smartmatch is experimental at /usr/share/koha/lib/C4/Search.pm line 492. Useless use of '\'; doesn't escape metacharacter '(' at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 917. Just thought I'd ask if anyone has any thoughts on this as I'm fairly sure I've never seen it before -- note, it doesn't *appear* to hurt anything. Tnx and regards -- Paul _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org <mailto:Koha-devel@lists.koha-community.org> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (http://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
--- Maritime heritage and history, preservation and conservation, research and education through the written word and the arts. <http://NavalMarineArchive.com <http://navalmarinearchive.com/>> and <http://UltraMarine.ca <http://ultramarine.ca/>>
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
Take a look at commit b529ca00e0cac093fc32a1d123cdbcc84582c155 for Koha/DateUtils.pm and commit 091a74de4c0fb6b0ff948eb716808dfc009a1207 for C4/Search.pm Regards Tomas 2015-12-14 17:10 GMT-03:00 Paul A <paul.a@navalmarinearchive.com>:
At 10:41 PM 12/13/2015 -0300, Tomas Cohen Arazi wrote:
You are running an antique version of Koha. And it used to use experimental features from Perl (that were removed later). It doesn't hurt to have those warnings anyway.
Tomas -- tnx for the reply.
Do you remember if this was a change to rebuild_zebra.pl or to DateUtils.pm? As I said below, I couldn't find any documentation on the subject -- and I'd like to look into getting rid of the warnings.
Thanks -- Paul
2015-12-13 20:09 GMT-03:00 Paul A <paul.a@navalmarinearchive.com>: (I found one email, no response, from 21 May 2014 on this subject; can't find anything 'DateUtils' with either 'Zebra' or 'catalog' in bugs.koha-community.org.) It's extremely rare nowadays that we do a complete re-index on the production servers, but I did one today after a direct (naughty me) tweak to MySQL (frameworks/itemtypes) to avoid a lengthy sandbox<==>production to and fro. I got the following: koha_account@my_production:/usr/share/koha$ ./bin/migration_tools/ rebuild_zebra.pl -b -r -v -x given is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 114. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 115. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 118. when is experimental at /usr/share/koha/lib/Koha/DateUtils.pm line 121. Smartmatch is experimental at /usr/share/koha/lib/C4/Search.pm line 492. Useless use of '\'; doesn't escape metacharacter '(' at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 917. Just thought I'd ask if anyone has any thoughts on this as I'm fairly sure I've never seen it before -- note, it doesn't *appear* to hurt anything. Tnx and regards -- Paul _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
--- Maritime heritage and history, preservation and conservation, research and education through the written word and the arts. <http://NavalMarineArchive.com <http://navalmarinearchive.com/>> and < http://UltraMarine.ca <http://ultramarine.ca/>>
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
participants (3)
-
Paul A -
Philippe Blouin -
Tomas Cohen Arazi