[Fusioninventory-devel] Window Perl install size

Tomás Abad tabadgp at gmail.com
Tue Nov 13 13:32:03 UTC 2012


   Hello Góneri,

> On Thu, Nov 8, 2012 at 10:30 AM, Gonéri Le Bouder wrote:
>> Hello all,
>>
>> Will testing Tomás Abad new Windows installer, I wondered if it was not
>> possible to use PAR::Packer to reduce the size and the number of installed
>> files.
>>
>> What I did:
>>
>> [...]

   Based on your example I have done another test with Strawberry Perl
5.16.2.1 Portable Edition for x64 architectures and PAR::Packer (with
a little help (1)).

   These are my files:

   --- strawberry-perl-5.16.2.1-x64-pepfia-2.2.x-1.pl---
use File::Which;
use LWP;
use Net::IP;
use UNIVERSAL::require;
use Text::Template;
use XML::TreePP;
use Socket::GetAddrInfo;
use Win32::TieRegistry;
use Win32::Job;
use Win32::OLE;
use Win32::OLE::Const;
use Win32::TieRegistry;
use Win32::Job;
use Parse::EDID;
use Compress::Zlib;
use HTTP::Daemon;
use IO::Socket::SSL;
use LWP::Protocol::https;
use English;
use Getopt::Long;
use Memoize;
use Pod::Usage;

use lib '.';
use lib 'lib';
my $file = shift;
require $file;
   --- strawberry-perl-5.16.2.1-x64-pepfia-2.2.x-1.pl---

   --------------------- include2par -------------------
c/bin/libcharset-1__.dll
c/bin/libeay32__.dll
c/bin/libexpat-1__.dll
c/bin/libexslt-0__.dll
c/bin/libfreetype-6__.dll
c/bin/libgcc_s_sjlj-1.dll
c/bin/libgd-2__.dll
c/bin/libgfortran-3.dll
c/bin/libgif-6__.dll
c/bin/libglut-0__.dll
c/bin/libgomp-1.dll
c/bin/libiconv-2__.dll
c/bin/libjpeg-8__.dll
c/bin/liblzma-5__.dll
c/bin/libmysql__.dll
c/bin/libpng15-15__.dll
c/bin/libpq__.dll
c/bin/libquadmath-0.dll
c/bin/libssh2-1__.dll
c/bin/libssp-0.dll
c/bin/libstdc++-6.dll
c/bin/libt1-5__.dll
c/bin/libtiff-5__.dll
c/bin/libtiffxx-5__.dll
c/bin/libxml2-2__.dll
c/bin/libXpm__.dll
c/bin/libxslt-1__.dll
c/bin/pthreadGC2-w64.dll
c/bin/ssleay32__.dll
c/bin/zlib1__.dll

perl/bin/perl.exe
perl/bin/perl5.16.2.exe
perl/bin/libgcc_s_sjlj-1.dll
perl/bin/libstdc++-6.dll
perl/bin/perl516.dll
   --------------------- include2par -------------------

   And this is the command to get the Par file (ZIP).

   Strawberry\5.16.2.1\x64>pp -p -o
strawberry-perl-5.16.2.1-x64-pepfia-2.2.x-1.zip -A include2par
strawberry-perl-5.16.2.1-x64-pepfia-2.2.x-1.pl

   The new package has a size of 10,4MB. It needs more Perl packages
but could be a good start to build the new package
strawberry-perl-5.16.2.1-all-pepfia-2.2.x-1.tar.xz (2) with the half
of the size of its predecessor.

   The installers will be more small too.

   What's your opinion Gonéri?

   Best regards.


Notes:
======

1) Building PAR::Packer for Strawberry Perl 5.16 on Win 7 64-bit
http://www.asciiville.com/musings/par-packer-for-strawberry-perl-516

2) Strawberry Perl Nov 2012 Portable Edition (5.16.2.1-32/64bits)
Package for FusionInventory-Agent
https://github.com/tabad/fusioninventory-agent-windows-installer/downloads



More information about the Fusioninventory-devel mailing list