Skip Menu |

This queue is for tickets about the Module-ScanDeps CPAN distribution.

Report information
The Basics
Id: 72211
Status: resolved
Priority: 0/
Queue: Module-ScanDeps

People
Owner: RSCHUPP [...] cpan.org
Requestors: frank [...] undermydesk.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.05
Fixed in: 1.06



Subject: pp includes way too much modules (when using 'use strict;')?
Date: Sun, 06 Nov 2011 17:15:00 +0100
To: bug-PAR [...] rt.cpan.org
From: Frank Reppin <frank [...] undermydesk.org>
Hi list, I just wondered why my exe binaries are so much bigger than they used to be with older releases of PAR::Packer and Module::ScanDeps. A very simple test: <test.pl> #!perl -w use strict; print "hello world...\n"; </test.pl> pp -vvv -o test.exe test.pl (its output attached as 'pp-vvv-result.txt') Perl is 5.12.3 (strawberry) (see attached perl-version.txt) PAR::Packer is 1.010 Module::ScanDeps is 1.05 (see attached perldoc-perllocal.txt) ends up in an approx. 12MB exe file including virtually all modules that come with my perl distribution (strawberry perl 5.12.3) ;). Omitting the 'use strict' pragma produces a binary of reasonable size (couldn't yet test this on a machine without perl installed). The expected size should be around 2-2.5MB and I've verified, that older releases of PAR [1.008] and ScanDeps [0.98] do indeed produce quite smaller (working) binaries. I conclude that this seems to be a 'weirdness' - or did I miss something that may have changed (with regard to options to pp) in between? Scanning the FAQ/maillist/bugreports doesn't give me any hints so far... Thankyou! cheers, frank\ -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

On 2011-11-06 11:18:36, frank@undermydesk.org wrote: Show quoted text
> ends up in an approx. 12MB exe file including virtually > all modules that come with my perl distribution (strawberry perl > 5.12.3) ;).
Definitely too much. I did a quick "scandeps.pl -B -V test.pl" here and the culprit seems to be unicore/mktables (which you don't need in an installed perl anyway) - it seems to draw in CPAN.pm and what not. I'll dig further... As a quick workaround, you may safely delete .../unicore/mktables{,.lst} Cheers, Roderich
On 2011-11-06 13:39:53, RSCHUPP wrote: Show quoted text
> here and the culprit seems to be unicore/mktables
Can you please try if the attached to patch to Module::ScanDeps fixes it? Cheers, Roderich
Subject: mktables.patch
--- Module-ScanDeps-1.05/lib/Module/ScanDeps.pm 2011-11-02 19:01:24.000000000 +0100 +++ Module-ScanDeps-next/lib/Module/ScanDeps.pm 2011-11-07 10:54:01.000000000 +0100 @@ -506,7 +506,8 @@ 'utf8.pm' => sub { # Perl 5.6.x: "unicode", Perl 5.8.x and up: "unicore" my $unicore = _find_in_inc('unicore/Name.pl') ? 'unicore' : 'unicode'; - return ('utf8_heavy.pl', map "$unicore/$_->{name}", _glob_in_inc($unicore)); + return ('utf8_heavy.pl', + grep !/^$unicore\/mktables/, map "$unicore/$_->{name}", _glob_in_inc($unicore, 0)); }, 'charnames.pm' => sub { _find_in_inc('unicore/Name.pl') ? 'unicore/Name.pl' : 'unicode/Name.pl'
On 2011-11-07 05:09:48, RSCHUPP wrote: Show quoted text
> Can you please try if the attached to patch to Module::ScanDeps fixes it?
Don't bother, I fixed it in a more general way: the following line from unicore/mktables my $unihan = 'Unihan properties are by default not enabled in the Perl core. Instead use CPAN: Unicode::Unihan'; would erroneously detect a dependency on CPAN.pm (because it contains "... use CPAN: ..."). Fix will be in the next release of Module::ScanDeps. Cheers, Roderich
Subject: Re: [rt.cpan.org #72211] pp includes way too much modules (when using 'use strict;')?
Date: Tue, 08 Nov 2011 00:57:27 +0100
To: bug-Module-ScanDeps [...] rt.cpan.org
From: Frank Reppin <frank [...] undermydesk.org>
Hi Roderich, On 07.11.2011 18:44, Roderich Schupp via RT wrote: [...] Show quoted text
> Fix will be in the next release of Module::ScanDeps.
great - thankyou! cheers, frank\ -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped
Fixed in 1.06