Skip Menu |

This queue is for tickets about the Lingua-RUS-Number CPAN distribution.

Report information
The Basics
Id: 112951
Status: open
Priority: 0/
Queue: Lingua-RUS-Number

People
Owner: Nobody in particular
Requestors: NALOBIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.136
Fixed in: (no value)



Subject: Lingua::RUS::Number does not export: rur_in_words get_string
Found error on installation: sudo cpanm Lingua::RUS::Number # Testing Perl6::Export::Attrs 0.000005 t/00.load.t ....... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.t ........... ok All tests successful. Files=3, Tests=2, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.11 cusr 0.00 csys = 0.14 CPU) Result: PASS Building Perl6-Export-Attrs Installing /usr/local/share/perl/5.14.2/Perl6/Export/Attrs.pm Installing /usr/local/man/man3/Perl6::Export::Attrs.3pm -> OK Successfully installed Perl6-Export-Attrs-0.000005 Installing /usr/local/share/perl/5.14.2/x86_64-linux-gnu-thread-multi/.meta/Perl6-Export-Attrs-0.000005/install.json Installing /usr/local/share/perl/5.14.2/x86_64-linux-gnu-thread-multi/.meta/Perl6-Export-Attrs-0.000005/MYMETA.json Building and testing Lingua-RUS-Number-0.136 cp lib/Lingua/RUS/Number.pm blib/lib/Lingua/RUS/Number.pm Manifying 1 pod document PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Lingua::RUS::Number does not export: rur_in_words get_string use Lingua::RUS::Number failed at t/Number.t line 28. BEGIN failed--compilation aborted at t/Number.t line 28. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 1. t/Number.t .. Dubious, test returned 255 (wstat 65280, 0xff00) All 1 subtests passed
On 2016-03-12 09:59:53, NALOBIN wrote: Show quoted text
> Found error on installation: > > sudo cpanm Lingua::RUS::Number > > > # Testing Perl6::Export::Attrs 0.000005 > t/00.load.t ....... ok > t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for > testing POD coverage > t/pod.t ........... ok > All tests successful. > Files=3, Tests=2, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.11 cusr > 0.00 csys = 0.14 CPU) > Result: PASS > Building Perl6-Export-Attrs > Installing /usr/local/share/perl/5.14.2/Perl6/Export/Attrs.pm > Installing /usr/local/man/man3/Perl6::Export::Attrs.3pm > -> OK > Successfully installed Perl6-Export-Attrs-0.000005 > Installing /usr/local/share/perl/5.14.2/x86_64-linux-gnu-thread- > multi/.meta/Perl6-Export-Attrs-0.000005/install.json > Installing /usr/local/share/perl/5.14.2/x86_64-linux-gnu-thread- > multi/.meta/Perl6-Export-Attrs-0.000005/MYMETA.json > Building and testing Lingua-RUS-Number-0.136 > cp lib/Lingua/RUS/Number.pm blib/lib/Lingua/RUS/Number.pm > Manifying 1 pod document > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > Lingua::RUS::Number does not export: rur_in_words get_string > use Lingua::RUS::Number failed at t/Number.t line 28. > BEGIN failed--compilation aborted at t/Number.t line 28. > # Tests were run but no plan was declared and done_testing() was not > seen. > # Looks like your test exited with 255 just after 1. > t/Number.t .. > Dubious, test returned 255 (wstat 65280, 0xff00) > All 1 subtests passed
This is a problem with recent Perl6-Export-Attrs version. See https://rt.cpan.org/Ticket/Display.html?id=107627 for the whole story. Possible workaround: downgrade to DCONWAY/Perl6-Export-Attrs-0.0.3.tar.gz
On Sun Mar 13 07:05:09 2016, SREZIC wrote: Show quoted text
> This is a problem with recent Perl6-Export-Attrs version. See > https://rt.cpan.org/Ticket/Display.html?id=107627 for the whole story. > > Possible workaround: downgrade to DCONWAY/Perl6-Export-Attrs- > 0.0.3.tar.gz
Thanks. We will look into this matter for a more sustainable solution. Maybe using Export::Attrs instead of Perl6::Export::Attrs? Any suggestions here - because quite some of our Lingua:: modules are affected, so we could upgrade them all at once, but we'd like to choose the "right" way.
I suggest dropping Perl6::Export::Attrs completely. Why use pretty esoteric and heavy dependencies (it also requires PadWalker, for example) when all you want to do is to export two function? Just use plain old Exporter! Patch attached.
Subject: Number.pm.patch
--- omfg-deps/Number.pm 2014-07-14 13:31:04.000000000 +0400 +++ Number.pm 2017-03-27 16:29:43.637680074 +0300 @@ -14,7 +14,8 @@ use warnings; use utf8; -use Perl6::Export::Attrs; +use Exporter qw(import); +our @EXPORT_OK = qw(rur_in_words get_string); # }}} # {{{ variables declaration @@ -85,7 +86,7 @@ # {{{ rur_in_words -sub rur_in_words :Export { +sub rur_in_words { my ($sum) = shift // 0; my ($retval, $i, $sum_rub, $sum_kop); @@ -114,7 +115,7 @@ # }}} # {{{ get_string -sub get_string :Export{ +sub get_string { my $sum = shift // return; my $nominal = shift; my ($retval, $nom) = ('', -1);