Bug#293421: Installed size of development package has quadrupled since GTK+ 2.4.14

Loïc Minier Loïc Minier , 293421@bugs.debian.org
Fri, 11 Feb 2005 09:46:57 +0100


        Hi,

Torbjorn.E.Andersson@personec.com - Thu, Feb 03, 2005:

> I'm guessing that -g was not switched on in the previous version. Perha=
ps now
> that the -dbg packages are available, the -dev packages should be strip=
ped?

 dh_strip is correctly called, and for .a files, strip --strip-debug is
 called.

 I've tried running "strip" and "strip --strip-debug" on the .a myself,
 and looked whether the .a was still usable.  I've built a Gtk binary
 with:

bee% gcc test.o ./libgtk-x11-2.0.a /usr/lib/libgdk-x11-2.0.a \
/usr/lib/libatk-1.0.a /usr/lib/libgdk_pixbuf-2.0.a /usr/lib/libm.a \
/usr/lib/libpangoxft-1.0.a /usr/lib/libpangox-1.0.a \
/usr/lib/libpango-1.0.a /usr/lib/libgobject-2.0.a \
/usr/lib/libgmodule-2.0.a /usr/lib/libdl.a /usr/lib/libglib-2.0.a \
/usr/X11R6/lib/libX11.a /usr/lib/libfontconfig.a /usr/lib/libXcursor.a \
/usr/X11R6/lib/libXext.a /usr/lib/libXrender.a /usr/lib/libXft.a \
/usr/X11R6/lib/libXinerama.a /usr/X11R6/lib/libXrandr.a \
/usr/X11R6/lib/libXi.a /usr/lib/libpng12.a /usr/lib/libjpeg.a \
/usr/lib/libtiff.a /usr/lib/libpangoft2-1.0.a /usr/lib/libfreetype.a \
/usr/lib/libexpat.a /usr/X11R6/lib/libX11.a /usr/lib/libfontconfig.a \
/usr/lib/libXrender.a /usr/lib/libz.a /usr/lib/libm.a -o test

 I could build it with the current version in Debian (which is 'strip
 --strip-debug'ed), but not with a stripped version.

 There might be a lot of reasons for this problem, the ones I think of
 are:
 - gtk wasn't built in the same way as it was before upstream (I'm
   talking of the autoconf/automake/libtool/etc. changes upstream might
   have made),
 - gtk simply added many symbols and cross-references and the size
   increase is normal,
 - previous .a were unusable,
 - strip is wrongly called in dh_strip and might remove a lot more than
   what we think,
 - strip has a bug and should remove more or have more configuration
   parameters to remove things from the .a.

 Questions we need to solve:
 - is the .a correctly built (might include too much from the ground
   up)?
 - could we strip more from the .a and still use it?

   Regards,

-- 
Loïc Minier <lool@dooz.org>
"Neutral President: I have no strong feelings one way or the other."