On Mon, 1 Apr 2024, at 10:49 PM, Дилян Палаузов wrote:
> t/all_tests.t ..... Can't use 'defined(@array)' (Maybe you should just 
> omit the defined()?) at /root/.cpan/build/Test-Unit-0.25-2/blib/l
> ib/Test/Unit/TestCase.pm line 106.                                      
>                                                                 
> Compilation failed in require at 
> /root/.cpan/build/Test-Unit-0.25-2/blib/lib/Test/Unit/TestSuite.pm line 
> 15.                            
> BEGIN failed--compilation aborted at 
> /root/.cpan/build/Test-Unit-0.25-2/blib/lib/Test/Unit/TestSuite.pm line 
> 15.                        
> 
> [...]
> 
> Test-Unit-0.25 was released in 2005. Is the problem that I am using too 
> new version of Perl, and for this reason I cannot install 
> Test-Unit-0.25, or I do not need Test::Unit::TestRunner (to solve the 
> base empty package), or is it something different?

That looks to me like Test::Unit's own test suite is using an old experimental 
perl feature that I guess 5.38.2 no longer supports ("defined(@array)"), and 
since its tests can't be run, cpan won't install it.

I think cpan has an argument to bypass the testing, so you might be able to use 
that to get it installed.  Though if the tests use that feature, the library 
itself probably does too, in which case it won't work even if it does install 
okay.

Interesting problem...  we might need to package up our own version of 
Test::Unit that fixes it to not use language features that don't exist anymore. 
 I don't see us being able to remove it from Cassandane easily.

Did you upgrade to perl 5.38.2 yourself, or is it being shipped by one of the 
distros these days?

Cheers,

ellie

------------------------------------------
Cyrus: Devel
Permalink: 
https://cyrus.topicbox.com/groups/devel/T5ac61e0683eda69a-M12be870eb3a71db821b764d5
Delivery options: https://cyrus.topicbox.com/groups/devel/subscription

Reply via email to