Date: Fri, 04 Apr 2014 06:06:25 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Alexey Dokuchaev <danfe@FreeBSD.org>, Baptiste Daroussin <bapt@FreeBSD.org> Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org Subject: Re: Stripping of binaries (Was: Re: svn commit: r350052 - head/Mk) Message-ID: <533E9231.9080607@FreeBSD.org> In-Reply-To: <20140404103852.GA67976@FreeBSD.org> References: <201404032211.s33MBqWj021361@svn.freebsd.org> <20140404085811.GA19897@FreeBSD.org> <20140404094546.GC78280@ivaldir.etoilebsd.net> <20140404103852.GA67976@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533E9231.9080607>