in reply to Re^6: CPAN modules for inspecting a Perl distribution?
in thread CPAN modules for inspecting a Perl distribution?
To get things rolling on a Linux Mint 18., I had to:
cpanm Data::Peek cpanm SourceCode::LineCounter::Perl cpanm String::CommonPrefix
OS details (cat /etc/linuxmint/info):
RELEASE=18.3 CODENAME=sylvia EDITION="Cinnamon 64-bit" DESCRIPTION="Linux Mint 18.3 Sylvia" DESKTOP=Gnome TOOLKIT=GTK NEW_FEATURES_URL=http://www.linuxmint.com/rel_sylvia_cinnamon_whatsnew +.php RELEASE_NOTES_URL=http://www.linuxmint.com/rel_sylvia_cinnamon.php USER_GUIDE_URL=help:linuxmint GRUB_TITLE=Linux Mint 18.3 Cinnamon 64-bit
I ran the script, and within two seconds (literally), returned:
spek@scelia ~/scratch $ perl des_problem.pl File Eval.pm has no objects File a.pl has no objects File arr.pl has no objects File bit.pl has no objects File coerce.pl has no objects File col.pl has no objects File complex_structure_c_to_perl/script.pl has no objects File eval.pl has no objects File fc.pl has no objects File fork.pl has no objects File inline.pl has no objects File ip.pl has no objects File json.pl has no objects File last.pl has no objects File line.pl has no objects File mcpan.pl has no objects File mcpan_default.pl has no objects File oct.pl has no objects File open.pl has no objects File ppi.pl has no objects File rad.pl has no objects File rcopy.pl has no objects File re.pl has no objects File step/step.pl has no objects File sub.pl has no objects File tern.pl has no objects File test.pl has no objects File y.pl has no objects subs lines LOC doc blank File ----- ------- ------- ------ ------ --------------------------------- +----- 9 143 94 0 27 step/Step.pm 4 57 23 2 13 tk.pl 3 29 12 1 9 point.pl 2 25 13 0 5 store.pl 2 26 8 0 5 blah.pl 2 15 6 0 4 Test.pm 1 23 8 0 3 x.pl 1 16 6 0 5 choose.pl 1 122 6 7 18 des_problem.pl 1 23 4 2 7 mock.pl 1 12 3 0 4 foo.pl 0 20 0 0 6 fork.pl 0 14 0 0 5 json.pl 0 29 0 0 6 rad.pl 0 17 0 0 5 mcpan_default.pl 0 13 0 0 3 ppi.pl 0 8 0 0 3 test.pl 0 10 0 0 5 rcopy.pl 0 25 0 0 5 a.pl 0 9 0 0 3 tern.pl 0 12 0 0 3 open.pl 0 38 0 0 21 inline.pl 0 10 0 0 2 line.pl 0 38 0 0 7 sub.pl 0 33 0 3 9 y.pl 0 15 0 0 5 complex_structure_c_to_perl/scrip +t.pl 0 15 0 0 2 coerce.pl 0 17 0 6 6 fc.pl 0 9 0 0 2 oct.pl 0 40 0 1 6 col.pl 0 13 0 0 5 eval.pl 0 11 0 0 3 step/step.pl 0 24 0 0 4 arr.pl 0 8 0 0 2 Eval.pm 0 20 0 0 6 mcpan.pl 0 18 0 2 5 re.pl 0 16 0 0 3 last.pl 0 18 0 0 5 ip.pl 0 16 0 0 6 bit.pl ----- ------- ------- ------ ------ --------------------------------- +----- 27 1007 183 24 243
I then proceeded to install everything all the same on one of my development ARM-based Raspberry Pi devices, a base one, only with perlbrew (not even Devel::Examine::Subs was installed), and notice a fault in another one of my dists File::Edit::Portable happen when running the script:
File perl5/perlbrew/build/perl-5.24.4/perl-5.24.4/cpan/Module-Load-Con +ditional/t/to_load/LoadIt.pm has no objects Use of uninitialized value $sep in unpack at /home/pi/perl5/perlbrew/p +erls/perl-5.24.4/lib/site_perl/5.24.4/File/Edit/Portable.pm line 414. at /home/pi/perl5/perlbrew/perls/perl-5.24.4/lib/site_perl/5.24.4/Fil +e/Edit/Portable.pm line 6. File::Edit::Portable::__ANON__("Use of uninitialized value \$sep i +n unpack at /home/pi/perl5/p"...) called at /home/pi/perl5/perlbrew/p +erls/perl-5.24.4/lib/site_perl/5.24.4/File/Edit/Portable.pm line 414 File::Edit::Portable::_convert_recsep(File::Edit::Portable=HASH(0x +e89758), undef, "hex") called at /home/pi/perl5/perlbrew/perls/perl-5 +.24.4/lib/site_perl/5.24.4/File/Edit/Portable.pm line 288 File::Edit::Portable::recsep(File::Edit::Portable=HASH(0xe89758), +"/home/pi/perl5/perlbrew/build/perl-5.24.4/perl-5.24.4/cpan/Mo"..., " +hex") called at /home/pi/perl5/perlbrew/perls/perl-5.24.4/lib/site_pe +rl/5.24.4/Devel/Examine/Subs.pm line 748 Devel::Examine::Subs::_read_file(Devel::Examine::Subs=HASH(0x1bfdb +b0), HASH(0x17f5768)) called at /home/pi/perl5/perlbrew/perls/perl-5. +24.4/lib/site_perl/5.24.4/Devel/Examine/Subs.pm line 886 Devel::Examine::Subs::_core(Devel::Examine::Subs=HASH(0x1bfdbb0)) +called at /home/pi/perl5/perlbrew/perls/perl-5.24.4/lib/site_perl/5.2 +4.4/Devel/Examine/Subs.pm line 437 Devel::Examine::Subs::run(Devel::Examine::Subs=HASH(0x1bfdbb0), HA +SH(0x1159368)) called at /home/pi/perl5/perlbrew/perls/perl-5.24.4/li +b/site_perl/5.24.4/Devel/Examine/Subs.pm line 155 Devel::Examine::Subs::objects(Devel::Examine::Subs=HASH(0x1bfdbb0) +) called at des_error.pl line 79
I'll investigate further. There are a couple of recent issues brought up to me that may be affecting things, but I've had a difficult time solidifying the cause. I believe some may be related to problems in File::Edit::Portable, but am not 100% sure. Not all breakage happens at the same place.
I'll keep testing, and throwing things at my internal test platforms until I understand the issue(s).
I'm currently running commands to automate against a couple of Windows machines and Unix computers I've got set up for such an arrangement. I apologize if my software doesn't work as advertised.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: CPAN modules for inspecting a Perl distribution?
by Tux (Canon) on Oct 16, 2018 at 06:44 UTC | |
|
Re^8: CPAN modules for inspecting a Perl distribution?
by stevieb (Canon) on Oct 15, 2018 at 22:51 UTC | |
by stevieb (Canon) on Oct 15, 2018 at 22:54 UTC |