Subject: automatically strip(1)ing?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/26/2004 13:01:52
Should pkgsrc automatically strip(1) libraries and executables?
Should we have an option to enable auto strip(1)ing of installed object
files?
I know some individual packages do strip in their own build system, but
not all do.
Here is an example of a big file:
Native pkgsrc system (installed using pkgsrc):
-rwxr-xr-x 1 root root 2598868 Mar 20 21:32
/usr/lib/libbonobo-2.so.0.0
Same file now stripped:
-rwxr-xr-x 1 root root 350088 Mar 26 12:49
/usr/lib/libbonobo-2.so.0.0
Similar file on a Red Hat box:
-rwxr-xr-x 1 root root 357172 Feb 4 2003
/mnt/usr/lib/libbonobo-2.so.0.0.0
These are to huge files as installed from pkgsrc:
13M /usr/lib/libGL.so.1.5
12M /usr/lib/libgtk-x11-2.0.so.200.4
reed@puget:/usr/pkgsrc$ sudo strip /usr/lib/libGL.so.1.5
/usr/lib/libgtk-x11-2.0.so.200.4
reed@puget:/usr/pkgsrc$ du -h /usr/lib/libGL.so.1.5
/usr/lib/libgtk-x11-2.0.so.200.4
2.4M /usr/lib/libGL.so.1.5
2.6M /usr/lib/libgtk-x11-2.0.so.200.4
Now here are similar on a Red Hat box (from Red Hat rpms):
reed@puget:/usr/pkgsrc$ du -h /mnt/usr/X11R6/lib/libGL.so.1.2
/mnt/usr/lib/libgtk-x11-2.0.so.0.200.1
452K /mnt/usr/X11R6/lib/libGL.so.1.2
2.4M /mnt/usr/lib/libgtk-x11-2.0.so.0.200.1
(As for that huge size difference I will discuss in another email.)
What do you think about pkgsrc option to strip?
Jeremy C. Reed
http://bsd.reedmedia.net/