From owner-svn-ports-all@FreeBSD.ORG Fri Apr 4 11:06:33 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EE9DB3A for ; Fri, 4 Apr 2014 11:06:33 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 43F25DE3 for ; Fri, 4 Apr 2014 11:06:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s34B6X9q069777 for ; Fri, 4 Apr 2014 11:06:33 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s34B6Ws0069768 for svn-ports-all@freebsd.org; Fri, 4 Apr 2014 11:06:32 GMT (envelope-from bdrewery) Received: (qmail 80916 invoked from network); 4 Apr 2014 06:06:31 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 4 Apr 2014 06:06:31 -0500 Message-ID: <533E9231.9080607@FreeBSD.org> Date: Fri, 04 Apr 2014 06:06:25 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Alexey Dokuchaev , Baptiste Daroussin Subject: Re: Stripping of binaries (Was: Re: svn commit: r350052 - head/Mk) References: <201404032211.s33MBqWj021361@svn.freebsd.org> <20140404085811.GA19897@FreeBSD.org> <20140404094546.GC78280@ivaldir.etoilebsd.net> <20140404103852.GA67976@FreeBSD.org> In-Reply-To: <20140404103852.GA67976@FreeBSD.org> X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K3u7xS4Bmw9ORx9a25TdOnAjGKVkTtGrt" Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 11:06:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --K3u7xS4Bmw9ORx9a25TdOnAjGKVkTtGrt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 4/4/2014 5:38 AM, Alexey Dokuchaev wrote: > On Fri, Apr 04, 2014 at 11:45:47AM +0200, Baptiste Daroussin wrote: >> While I do agree with the problem you are spotting the solution is imh= o >> not the one you propose at all. >=20 > pkg(8) just came on my mind first due to staging; I agree with you that= > universal, extendable `post-install" target/framework would probably be= > better for these things. >=20 >> To have a clean solution we have to get a long term view about the pac= kage >> building. >> >> Here are the list of problems we have with stripping. >> - .a are often installed in the stage in 444 mode, meaning you cannot >> strip them as a simple user after staging >> - cross building involves a different strip binary >> - in very long term we want to be able to extract the debug flags in t= he >> stage dir to be able to create some debug packages. >> - some badly written program/libraries only works when not stripped so= we >> need a way to declares (don't strip this) >=20 > Yes, the last bullet suggests that it's out of pkg(8) scope, and should= be > perhaps done in b.p.m. (it would need to look into Makefile, since putt= ing > some DONT_STRIP_THIS type of data into package manifest looks bogus). >=20 >> That said, if someone want to step up and write a "post-stage" framewo= rk to >> easily plug new automated operation could then properly handle properl= y. >=20 > Do we have a wiki page on this? If not, shall we create one? I'd like= to > include excerpts of this discussion there. >=20 > ./danfe >=20 Ideally the implementation ends up in Mk/Scripts/*.sh too :) I'm working on some new features and trying to stick to that. It's making the code much cleaner and maintainable. --=20 Regards, Bryan Drewery --K3u7xS4Bmw9ORx9a25TdOnAjGKVkTtGrt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTPpIxAAoJEDXXcbtuRpfPzH4H/RRLwYDyHaf8zcrrwXpqsFab w0EVDyF9cZzOzSHulJXYPfj1yhGhCvsQ9jB2hUC93ZV+lPjEN0XmTQhx5WtciZPn AXkOdpoSYVxA5EtNYzBlSFQyRixebMxW47ZvwK3o+mvxVttN647JH5IIOIRiDOek phqcDfB1IhzJdYTAFCTG58pTuX098uwlZ1rmdZS44yEtxh9CrKuwsRtwJ26ap3fy AqufCJ+l4urEZCo8TejuChBwavbwISgKZVzzBEYkELz05F+ka8qq+FpPnGPokCWT 3dSLFl6rmCxsIL9+A6pihaUR57ZFKihc5Mo9a5K5Yrtx0QcxMeB+cDXmPsrRKJo= =sIN6 -----END PGP SIGNATURE----- --K3u7xS4Bmw9ORx9a25TdOnAjGKVkTtGrt--