ports/158508: Port www/firefox (5.0) results in ~500MB libxul.so
doppelfish
doppelfish+firefox at gmail.com
Wed Jun 29 20:30:10 UTC 2011
>Number: 158508
>Category: ports
>Synopsis: Port www/firefox (5.0) results in ~500MB libxul.so
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 29 20:30:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: doppelfish
>Release: 8.2-RELEASE
>Organization:
n/a
>Environment:
FreeBSD sputnix.magic.de 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I've compiled port www/firefox (5.0, using the tarball from http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/firefox/). I noticed that the port requires 540993KB (as reported by "pkg_info -s firefox-5.0,1"). I also noticed that /usr/local/lib/libxul/sdk/lib/libxul.so has a size of 470816K (as reported by "ls -s /usr/local/lib/libxul/sdk/lib/libxul.so").
I found that running "strip" on libxul.so brings it to 23328K.
I compiled the port (again) inside /usr/bin/script and found:
sputnix# grep " -g" compile_firefox | grep " -O2" | wc -l
2783
sputnix#
I suspect that compiling with both "-O2" and "-g" causes libxul.so to grow that large (as evidenced by the result of using strip on the lib). I'm also not sure how much sense it makes to use "-g" to build the port. By any means, the file /var/db/ports/firefox/options contains the line "WITHOUT_DEBUG=true", reflecting my choice when I compiled firefox for the first time.
The result of the compile session is availlable (5456k). The contents of the file /var/db/ports/firefox/options are:
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for firefox-5.0,1
_OPTIONS_READ=firefox-5.0,1
WITH_DBUS=true
WITHOUT_PGO=true
WITHOUT_SMB=true
WITHOUT_DEBUG=true
WITHOUT_LOGGING=true
WITH_OPTIMIZED_CFLAGS=true
>How-To-Repeat:
Get the tarball from http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/firefox/,
untar it as /usr/ports/www/firefox/; go there and say "make install". Accept the suggested configuration (DBUS=true, PGO=true, SMB=true, DEBUG=false, LOGGING=true, OPTIMZE=true).
Observe a 470816K /usr/local/lib/libxul/sdk/lib/libxul.so
Observe that pkg_info -s firefox-5.0,1 reports a size of 540993KB for the port.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list