OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003063 [postfix] packaging minor always 2009-02-11 23:40 2010-09-03 12:48
Reporter skayser View Status public  
Assigned To skayser
Priority normal Resolution fixed  
Status closed  
Summary 0003063: /opt/csw/libexec/postfix not stripped, takes ~30MB
Description I just wondered why the CSWpostfix package is so huge (10MB). No wonder, files in /opt/csw/libexec/postfix are compiled with debugging symbols and are not stripped ;)

/opt/csw/libexec/postfix# du -ks .
30533 .

Notice the -g flag

/opt/csw/libexec/postfix# /opt/SUNWspro/bin/dwarfdump -i lmtp | grep DW_AT_SUN_command | head -1
                DW_AT_SUN_command_line /opt/SUNWspro/prod/bin/cc -DUSE_TLS -DUSE_SASL_AUTH -DHAS_LDAP -DHAS_PCRE -DHAS_MYSQL -DHAS_PGSQL -DHAS_DB -DDEF_MANPAGE_DIR='"/opt/csw/man"' -DDEF_COMMAND_DIR='"/opt/csw/sbin"' -DDEF_CONFIG_DIR='"/etc/opt/csw/postfix"' -DDEF_DAEMON_DIR='"/opt/csw/libexec/postfix"' -DDEF_MAILQ_PATH='"/opt/csw/bin/mailq"' -DDEF_HTML_DIR='"yes"' -DDEF_NEWALIAS_PATH='"/opt/csw/bin/newaliases"' -DDEF_QUEUE_DIR='"/opt/csw/var/spool/postfix"' -DDEF_README_DIR='"yes"' -I/opt/csw/include -I/opt/csw/include/openssl -I/opt/csw/include/sasl -I/opt/csw/mysql4/include/mysql -I/opt/csw/postgresql/include -I/opt/csw/bdb4/include -DNO_CLOSEFROM -DNO_DEV_URANDOM -DNO_FUTIMESAT -Dstrcasecmp='fix_strcasecmp' -Dstrncasecmp='fix_strncasecmp' -g -O -I. -I../../include -DSUNOS5 -c smtp.c -W0,-xp.XAAj6I\$vgRPIV9P.

After a strip, it looks better

/opt/csw/libexec/postfix# strip *
/opt/csw/libexec/postfix# du -ks .
12091 .

Just add STRIP_DIRS = $(DESTDIR)$(libexecdir)/postfix to your GAR Makefile and you should be fine.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0005523)
skayser (administrator)
2009-02-11 23:41

Bugger, reported against the wrong package, sorry. Was intended to go against CSWpostfix.
(0008204)
skayser (administrator)
2010-08-17 17:47

Fixed with postfix-2.7.1,REV=2010.08.17 which is sitting in experimental/.

    http://mirror.opencsw.org/experimental.html#skayser [^]
(0008254)
skayser (administrator)
2010-09-03 12:48

Fixed with 2.7.1,REV=2010.09.01 which is now available from current/.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker