Johan Sydseter
2012-Mar-22 09:34 UTC
[Xapian-discuss] Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2
Hello. Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2 We noticed that we could not get our perl tests to pass since UNIVERSAL->import is deprecated in perl-5.14.2. The message given was: UNIVERSAL->import is deprecated and will be removed in a future perl at /usr/local/share/perl/5.14.2/Search/Xapian.pm line 3158 Johan Sydseter ABCStartsiden
Olly Betts
2012-Mar-22 14:08 UTC
[Xapian-discuss] Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2
On Thu, Mar 22, 2012 at 10:34:33AM +0100, Johan Sydseter wrote:> Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2 > > We noticed that we could not get our perl tests to pass since > UNIVERSAL->import is deprecated in perl-5.14.2.That's a new change in 1.2.9 - I found a bad bit of one of the tests which had gone unnoticed as the warning was ignored. Making them fatal seemed a good idea, but this is some fallout (good in a way, as it's good to get this fixed too).> The message given was: > > UNIVERSAL->import is deprecated and will be removed in a future perl at > /usr/local/share/perl/5.14.2/Search/Xapian.pm line 3158OK, this seems to be in the SWIG-based Search::Xapian in xapian-bindings (the hand-coded Xapian.pm doesn't have a line 3158). It looks like we just drop: use UNIVERSAL qw( isa ); And use UNIVERSAL::isa instead of isa. If anyone knows of a better way to update this code, please let me know. Cheers, Olly
Johan Sydseter
2012-Mar-22 14:31 UTC
[Xapian-discuss] Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2
Nice. Sounds good to me. Thank you for the quick response. Johan Sydseter -------------------------------------- It looks like we just drop: use UNIVERSAL qw( isa ); And use UNIVERSAL::isa instead of isa. If anyone knows of a better way to update this code, please let me know. Cheers, Olly