[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#415194: libextlib-ocaml-dev: No debugging information

On Mon, Apr 09, 2007 at 03:12:48PM +0200, Sven Luther wrote:
> This would strongly hint at a behaviour of always including the debug symbols
> in libraries, and since the .cmo/.cma are in the -dev file anyway, this would
> not impose a size penalty on the normal user at all.
> Do we have an idea of how much the size increase is ? 

I tested that on extlib, and I'm quite scared by the result:

  zack@aquarium:$ ls -l *deb
  -rw-r--r-- 1 zack zack 297300 2007-04-09 15:27 libextlib-ocaml-dev_1.5-6_i386.deb
  -rw-r--r-- 1 zack zack 529000 2007-04-09 15:34 libextlib-ocaml-dev_1.5-7_i386.deb

As expected the changelog entry for -7 is:

  zack@aquarium:$ dpkg-parsechangelog | tail -2
     * compile objects with debugging information, patch from Ivan Jager
       (Closes: #415194)

Some more details:

  zack@aquarium:$ dpkg --info *-6*.deb | grep -i size
   size 297300 bytes: control archive= 4908 bytes.
   Installed-Size: 1808
  zack@aquarium:$ dpkg --info *-7*.deb | grep -i size
   size 529000 bytes: control archive= 4907 bytes.
   Installed-Size: 2280
  zack@aquarium:$ dpkg-deb -x *-6*.deb no_debug/
  zack@aquarium:$ dpkg-deb -x *-7*.deb debug/
  zack@aquarium:$ du -sh no_debug/usr/lib/ocaml/3.09.2/extlib/
  840K    no_debug/usr/lib/ocaml/3.09.2/extlib/
  zack@aquarium:$ du -sh debug/usr/lib/ocaml/3.09.2/extlib/
  1,3M    debug/usr/lib/ocaml/3.09.2/extlib/

About 50% more in the size of OCaml objects, that's *a lot*. IMO this is
enough of an argument to give up the idea, and also to strip the
standard library, but maybe we should ask for the opinions of the
release managers / the cd team.


Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48)  Zack: e la demo dema ?    /\    All one has to do is hit the
(15:57:15)  Bac: no, la demo scema    \/    right keys at the right time

Attachment: signature.asc
Description: Digital signature

Reply to: