From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 16:14:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 592101065672 for ; Thu, 27 Nov 2008 16:14:58 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.189]) by mx1.freebsd.org (Postfix) with ESMTP id 03DDF8FC12 for ; Thu, 27 Nov 2008 16:14:57 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so881872rne.12 for ; Thu, 27 Nov 2008 08:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; bh=EfQG6gP2Y5qMl0Z/5FcWFjKafZVjHh3qH2eRzIst2NM=; b=W1oCUCPklGJKfnr1JOTZ4cMkFPTEA3t8ErXwb8JMwr6fvhPm7A0XqsnEMJ1jzD5xDY HFQdc6du9a0PdTUrHBO8hI7T9Zqh73otbO8rKkhYbyDmyis3ezue3CEAjTj8fjcFtPlx 0W6Jjdgqq71VGCEjplQjeWEWSs9aIcSpplLPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; b=FJNfpRetuTruBBAucKJjIkm5sUdnf/6/EaeOazlHoN90o398ceUFlW2WGBzGxQm4fI 1a2x4cJCfvmjdRQgogKx67l8/yJ3z5f1n+qi8z+YPVat8JfExUW01afknNxKc9ou0IjE H0Kip8vN2RPLSRjG57/7z/O/OrLLtoA6cOgXA= Received: by 10.90.71.16 with SMTP id t16mr4058136aga.26.1227802496906; Thu, 27 Nov 2008 08:14:56 -0800 (PST) Received: from ?192.168.1.101? (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id 9sm5770agc.31.2008.11.27.08.14.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Nov 2008 08:14:56 -0800 (PST) Message-ID: <492EC77A.5050403@gmail.com> Date: Thu, 27 Nov 2008 11:14:50 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Kris Kennaway References: <20081116125622.E24752@wojtek.tensor.gdynia.pl> <20081117172100.GB43367@hub.freebsd.org> <20081117210649.GE63818@hub.freebsd.org> In-Reply-To: <20081117210649.GE63818@hub.freebsd.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Cc: Wojciech Puchar , Masoom Shaikh , freebsd-questions@freebsd.org Subject: Re: large binary, why not strip ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 16:14:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kris Kennaway wrote: > On Mon, Nov 17, 2008 at 06:40:34PM +0000, Masoom Shaikh wrote: >> On Mon, Nov 17, 2008 at 5:21 PM, Kris Kennaway wrote: >> >>> On Sun, Nov 16, 2008 at 12:56:31PM +0100, Wojciech Puchar wrote: >>>>> most of the programs installed from ports have large binary size on disk >>>>> >>>>> stripping em all reduces their size dramatically >>>>> >>>>> I cannot see the reason for not stripping them by default ? >>>> me too >>>>> do I miss anything ? >>>> no. >>> I am confused why both of you are seeing "most" of the programs >>> installed this way. Can you confirm that this is true and not just an >>> exaggeration? >>> >>> As Matthew says, there are some ports that fail to strip their >>> binaries because of how they install files (using cp etc). These are >>> bugs that should be reported to their maintainers on a case by case >>> basis. >>> >>> Kris >>> >>> -- >>> In God we Trust -- all others must submit an X.509 certificate. >>> -- Charles Forsythe >>> >> Before sending mail I manually stripped * in /usr/local/bin >> >> else I cud send u the o/p of `ls -lhS` >> >> yes, "most" is bit exaggerated...I perhaps was talking about first five >> >> binaries listed in increasing order of size... > > Yeah the largest binaries are likely to be unstripped. You can use > pkg_which (part of portupgrade) to work out which ports they came > from, then send the mainainer a polite email and/or PR request that > they be installed stripped. > > Bonus points if you come up with a patch to do this: in most cases it > will be a simple matter of changing the port's do-install: target to > use INSTALL_* macros instead of cp/bsdtar etc. This would be a good > project to get some familiarity with the ports tree. > I was going to do some work on this except $file *|grep "not stripped" $ - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkux3oACgkQtl8kq+nCzNEWwgCglRkz0Il3/bLJazVszuRf69f1 pegAoI/paoyYAz4hqRZhdWuUb6WJk+tK =fGB3 -----END PGP SIGNATURE-----