[bug-notifications] [postfix 0003063]: /opt/csw/libexec/postfix not stripped, takes ~30MB
Mantis Bug Tracker
noreply at opencsw.org
Fri Sep 3 12:48:49 CEST 2010
The following issue has been CLOSED
======================================================================
https://www.opencsw.org/mantis/view.php?id=3063
======================================================================
Reported By: skayser
Assigned To: skayser
======================================================================
Project: postfix
Issue ID: 3063
Category: packaging
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-02-11 23:40 CET
Last Modified: 2010-09-03 12:48 CEST
======================================================================
Summary: /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.
======================================================================
----------------------------------------------------------------------
(0008254) skayser (administrator) - 2010-09-03 12:48
https://www.opencsw.org/mantis/view.php?id=3063#c8254
----------------------------------------------------------------------
Fixed with 2.7.1,REV=2010.09.01 which is now available from current/.
More information about the bug-notifications
mailing list