[haiku-development] Re: Do optional packages need to include everything they do?

  • From: scott mc <scottmc2@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 31 Aug 2009 04:48:27 -0700

On Mon, Aug 31, 2009 at 2:30 AM, Stephan Assmus<superstippi@xxxxxx> wrote:
> Hi,
>
> some of the current alpha image's optional packages seem to include much
> too much stuff. I have not yet updated the OptionalPackages file with all
> the latest packages, but I assume nothing has changed in this regard.
> Particularily, the Perl and Python packages seem to include all sorts of
> stuff, and I have not yet looked whether all of that is actually important
> or also includes tests. At lest we copy a whole bunch of "test_xxx.py[c|o]"
> files.
>
> Shall tests and other less important stuff be stripped from the alpha
> packages? The installation from an actual CD takes way too much time for my
> taste. Booting is also very slow still, though I am currently investigating
> some ideas to speed that up (avoiding parallel disk access in the boot
> scripts).
>
> Best regards,
> -Stephan
>
>

While Python does weigh in at a heavy 60meg when uncompressed, 20 meg
of that in the test folder, it'd like to keep it for now (at least
until all of the tests are working on Haiku).  But since most won't
need to use the files in the test folder we can zip those up, saving
15 meg of space and speeding up installs a little bit.  The resulting
zip file in the test folder is about 5 meg, and contains about 1,000
files.
I've uploaded this alternate zip as:

http://www.haiku-ports.de/packages/dev-lang/python/python-2.6.2-r1a1-x86-gcc2-2009-08-31.zip

You'll note the file size of this one vs. the 2009-08-30 version are
roughly the same since they have the same stuff in them, just one has
a folder that is prezipped.  Using DiskUsage before and after zipping
up that test folder and you'll see the savings, 45meg vs. 60meg.

Judging by DiskUsage trimming down Perl and Python look like they'd be
the main ones to go after in terms of file sizes, I haven't
investigated stripping python down yet (other than the test folder).
I did strip git down, it was over 60meg zipped, and stripped down the
zip is under 7meg now.
-scottmc

Other related posts: