kasei / atteanx-rdfquerytranslator

Translate RDF::Query objects to Attean
MIT License
0 stars 0 forks source link

Locale::Country will be removed from the Perl core distribution #1

Open eserte opened 5 years ago

eserte commented 5 years ago

The scheduled removal of Locale::* modules from the Perl core is causing warnings and therefore errors in the test suite:

Locale::Country will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /home/cpansand/.cpan/build/2018102618/HTML-HTML5-Sanity-0.105-2/blib/lib/HTML/HTML5/Sanity.pm, line 23.
Locale::Codes will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /opt/perl-5.28.0/lib/5.28.0/Locale/Country.pm, line 22.
t/00.load.t .... ok
Locale::Country will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /home/cpansand/.cpan/build/2018102618/HTML-HTML5-Sanity-0.105-2/blib/lib/HTML/HTML5/Sanity.pm, line 23.
Locale::Codes will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /opt/perl-5.28.0/lib/5.28.0/Locale/Country.pm, line 22.

#   Failed test 'no (unexpected) warnings (via done_testing)'
#   at t/translate.t line 31.
# Looks like you failed 1 test of 3.
t/translate.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

Probably this can be workarounded by requesting a minimum Locale::Country version, so it will be installed from CPAN.

kasei commented 5 years ago

This looks like an issue in an upstream dependency...(?). Is there a reason I should be adding a prerequisite for something that is an implementation detail of my dependency chain?

eserte commented 5 years ago

This is unfortunate, but I don't know of a better solution. The upstream module probably does not test for unexpected warnings, so it gets installed, and downstream modules may start to fail now.

Actually this kind of problem happens also for other modules. Maybe perl5-porters have an idea how to deal with this problem.