* [gentoo-portage-dev] Disabling "strip" in Emerge @ 2004-11-27 22:23 Sorav Bansal 2004-11-27 22:43 ` [gentoo-portage-dev] " Thomas Kirchner 0 siblings, 1 reply; 10+ messages in thread From: Sorav Bansal @ 2004-11-27 22:23 UTC (permalink / raw To: gentoo-portage-dev Hi all, I am using gentoo to debug software and it is turning out to be very useful for my project. I have a query regarding the "emerge" utility: it uses the strip command to strip all debugging and symbol table information from the executables. I want to disable this. I want to retain all debugging symbols. How can I do that? thanks, Sorav -- gentoo-portage-dev@gentoo.org mailing list ^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-portage-dev] Re: Disabling "strip" in Emerge 2004-11-27 22:23 [gentoo-portage-dev] Disabling "strip" in Emerge Sorav Bansal @ 2004-11-27 22:43 ` Thomas Kirchner 2004-11-27 23:10 ` Ciaran McCreesh 0 siblings, 1 reply; 10+ messages in thread From: Thomas Kirchner @ 2004-11-27 22:43 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 405 bytes --] On Nov 27 14:23, Sorav Bansal wrote: > I have a query regarding the "emerge" utility: it uses the strip command > to strip all debugging and symbol table information from the executables. > I want to disable this. I want to retain all debugging symbols. How can I > do that? Assuming you use portage for installation of your programs, set add "nostrip" to your FEATURES variable in /etc/make.conf . Tom [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Disabling "strip" in Emerge 2004-11-27 22:43 ` [gentoo-portage-dev] " Thomas Kirchner @ 2004-11-27 23:10 ` Ciaran McCreesh 2004-11-27 23:22 ` [gentoo-portage-dev] " Thomas Kirchner 0 siblings, 1 reply; 10+ messages in thread From: Ciaran McCreesh @ 2004-11-27 23:10 UTC (permalink / raw To: gentoo-portage-dev; +Cc: lists [-- Attachment #1: Type: text/plain, Size: 767 bytes --] On Sat, 27 Nov 2004 17:43:55 -0500 Thomas Kirchner <lists@halffull.org> wrote: | On Nov 27 14:23, Sorav Bansal wrote: | > I have a query regarding the "emerge" utility: it uses the strip | > command | > to strip all debugging and symbol table information from the | > executables. I want to disable this. I want to retain all debugging | > symbols. How can I do that? | | Assuming you use portage for installation of your programs, set add | "nostrip" to your FEATURES variable in /etc/make.conf . ...which, sadly, usually won't work since most autotools-based things call install -s rather than install. -- Ciaran McCreesh : Gentoo Developer (Vim, Fluxbox, Sparc, Mips) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-27 23:10 ` Ciaran McCreesh @ 2004-11-27 23:22 ` Thomas Kirchner 2004-11-28 0:24 ` Sorav Bansal 0 siblings, 1 reply; 10+ messages in thread From: Thomas Kirchner @ 2004-11-27 23:22 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 557 bytes --] On Nov 27 23:10, Ciaran McCreesh wrote: > | Assuming you use portage for installation of your programs, set add > | "nostrip" to your FEATURES variable in /etc/make.conf . > > ...which, sadly, usually won't work since most autotools-based things > call install -s rather than install. Since he mentioned that he was debugging "his project", I assumed he would know not to do such things if he wants unstripped, debuggable programs. If that's not the case, or if he has no control over that portion of the install, then no, it won't work. Tom [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-27 23:22 ` [gentoo-portage-dev] " Thomas Kirchner @ 2004-11-28 0:24 ` Sorav Bansal 2004-11-28 0:28 ` Ciaran McCreesh 2004-11-28 23:29 ` Drake Wyrm 0 siblings, 2 replies; 10+ messages in thread From: Sorav Bansal @ 2004-11-28 0:24 UTC (permalink / raw To: gentoo-portage-dev > On Nov 27 23:10, Ciaran McCreesh wrote: > > | Assuming you use portage for installation of your programs, set add > > | "nostrip" to your FEATURES variable in /etc/make.conf . > > > > ...which, sadly, usually won't work since most autotools-based things > > call install -s rather than install. > > Since he mentioned that he was debugging "his project", I assumed he > would know not to do such things if he wants unstripped, debuggable > programs. If that's not the case, or if he has no control over that > portion of the install, then no, it won't work. Thanks for your help. "My project" involves checking system rules on open source software (that means software distributed by gentoo). Hence, any project that calls install -s will be troublesome for me. Anyways, I really appreciate your help. In case you have any suggestions on how to get around the install -s problem, that would be great! Sorav -- gentoo-portage-dev@gentoo.org mailing list ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-28 0:24 ` Sorav Bansal @ 2004-11-28 0:28 ` Ciaran McCreesh 2004-11-28 11:48 ` Christian Parpart 2004-11-28 23:29 ` Drake Wyrm 1 sibling, 1 reply; 10+ messages in thread From: Ciaran McCreesh @ 2004-11-28 0:28 UTC (permalink / raw To: gentoo-portage-dev; +Cc: sbansal [-- Attachment #1: Type: text/plain, Size: 628 bytes --] On Sat, 27 Nov 2004 16:24:44 -0800 (PST) Sorav Bansal <sbansal@stanford.edu> wrote: | Hence, any project that calls install -s will be troublesome for me. | Anyways, I really appreciate your help. In case you have any | suggestions on how to get around the install -s problem, that would be | great! As I recall from when we first started messing around with cross compiling (we couldn't get strip to work...) the easiest way is to make strip a symlink to /bin/true... -- Ciaran McCreesh : Gentoo Developer (Vim, Fluxbox, Sparc, Mips) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-28 0:28 ` Ciaran McCreesh @ 2004-11-28 11:48 ` Christian Parpart 2004-11-28 15:57 ` Aaron Walker 2004-11-28 19:33 ` Paul de Vrieze 0 siblings, 2 replies; 10+ messages in thread From: Christian Parpart @ 2004-11-28 11:48 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 1012 bytes --] On Sunday 28 November 2004 1:28 am, Ciaran McCreesh wrote: > On Sat, 27 Nov 2004 16:24:44 -0800 (PST) Sorav Bansal > > <sbansal@stanford.edu> wrote: > | Hence, any project that calls install -s will be troublesome for me. > | Anyways, I really appreciate your help. In case you have any > | suggestions on how to get around the install -s problem, that would be > | great! > > As I recall from when we first started messing around with cross > compiling (we couldn't get strip to work...) the easiest way is to make > strip a symlink to /bin/true... OTOH, it shall be possible to provide a new eclass function (maybe executed by default) that modifies each existing Makefile that strips out all -s right behind "install" commands. Just like done with strip-flags for C[XX]FLAGS. That impossible? Christian Parpart. -- http://www.winterschur.de/?fey <-- sheep me! Netiquette: http://www.ietf.org/rfc/rfc1855.txt 12:46:25 up 30 days, 5:16, 2 users, load average: 1.10, 0.69, 0.58 [-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-28 11:48 ` Christian Parpart @ 2004-11-28 15:57 ` Aaron Walker 2004-11-28 19:33 ` Paul de Vrieze 1 sibling, 0 replies; 10+ messages in thread From: Aaron Walker @ 2004-11-28 15:57 UTC (permalink / raw To: gentoo-portage-dev -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christian Parpart wrote: | On Sunday 28 November 2004 1:28 am, Ciaran McCreesh wrote: | |>On Sat, 27 Nov 2004 16:24:44 -0800 (PST) Sorav Bansal |> |><sbansal@stanford.edu> wrote: |>| Hence, any project that calls install -s will be troublesome for me. |>| Anyways, I really appreciate your help. In case you have any |>| suggestions on how to get around the install -s problem, that would be |>| great! |> Another possibility is that -s is passed in LDFLAGS. vixie-cron is one example of an app that does this in the upstream Makefile. |>As I recall from when we first started messing around with cross |>compiling (we couldn't get strip to work...) the easiest way is to make |>strip a symlink to /bin/true... | | | OTOH, it shall be possible to provide a new eclass function (maybe executed by | default) that modifies each existing Makefile that strips out all -s right | behind "install" commands. Just like done with strip-flags for C[XX]FLAGS. Since when does anything in flag-o-matic go anywhere near a Makefile? - -- You're at the end of the road again. \x01 Aaron Walker < ka0ttic@gentoo.org > http://dev.gentoo.org/~ka0ttic/ Gentoo/BSD | cron | shell-tools http://butsugenjitemple.org/~ka0ttic/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFBqfVZC3poscuANHARArdrAJ9dZRN3LaEvhA0cMGVEw7fAXP673wCfZ3mh iI6kNKpWSUE2Ryd9dnqp4K8= =u9eo -----END PGP SIGNATURE----- -- gentoo-portage-dev@gentoo.org mailing list ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-28 11:48 ` Christian Parpart 2004-11-28 15:57 ` Aaron Walker @ 2004-11-28 19:33 ` Paul de Vrieze 1 sibling, 0 replies; 10+ messages in thread From: Paul de Vrieze @ 2004-11-28 19:33 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 1326 bytes --] On Sunday 28 November 2004 12:48, Christian Parpart wrote: > On Sunday 28 November 2004 1:28 am, Ciaran McCreesh wrote: > > On Sat, 27 Nov 2004 16:24:44 -0800 (PST) Sorav Bansal > > > > <sbansal@stanford.edu> wrote: > > | Hence, any project that calls install -s will be troublesome for me. > > | Anyways, I really appreciate your help. In case you have any > > | suggestions on how to get around the install -s problem, that would be > > | great! > > > > As I recall from when we first started messing around with cross > > compiling (we couldn't get strip to work...) the easiest way is to make > > strip a symlink to /bin/true... > > OTOH, it shall be possible to provide a new eclass function (maybe executed > by default) that modifies each existing Makefile that strips out all -s > right behind "install" commands. Just like done with strip-flags for > C[XX]FLAGS. > > That impossible? Well, allmost. Maybe a good option would be to write an install wrapper, and add it to a portage private directory that gets prepended to the path. This install wrapper would strip the -s part from the install command if nostrip is in FEATURES. You can even do this with /etc/portage/bashrc ;-) Paul -- Paul de Vrieze Gentoo Developer Mail: pauldv@gentoo.org Homepage: http://www.devrieze.net [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-portage-dev] Re: Re: Disabling "strip" in Emerge 2004-11-28 0:24 ` Sorav Bansal 2004-11-28 0:28 ` Ciaran McCreesh @ 2004-11-28 23:29 ` Drake Wyrm 1 sibling, 0 replies; 10+ messages in thread From: Drake Wyrm @ 2004-11-28 23:29 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 1595 bytes --] At 2004-11-27T16:24:44-0800, Sorav Bansal <sbansal@stanford.edu> wrote: > > > On Nov 27 23:10, Ciaran McCreesh wrote: > > > | Assuming you use portage for installation of your programs, set add > > > | "nostrip" to your FEATURES variable in /etc/make.conf . > > > > > > ...which, sadly, usually won't work since most autotools-based things > > > call install -s rather than install. > > > > Since he mentioned that he was debugging "his project", I assumed he > > would know not to do such things if he wants unstripped, debuggable > > programs. If that's not the case, or if he has no control over that > > portion of the install, then no, it won't work. > > > Thanks for your help. "My project" involves checking system rules on open > source software (that means software distributed by gentoo). > > Hence, any project that calls install -s will be troublesome for me. > Anyways, I really appreciate your help. In case you have any suggestions > on how to get around the install -s problem, that would be great! Looking around /usr/share/{aclocal,auto}* it looks to me that automake tries to honor the ${STRIP} variable set by the user as the program used to strip binaries. Somebody else suggested replacing /usr/bin/strip with a link to `true`. You could export STRIP=/usr/bin/true into the build environment for the same effect. Actually, we may want to do this in Portage when "nostrip" is set. -- Batou: Hey, Major... You ever hear of "human rights"? Kusanagi: I understand the concept, but I've never seen it in action. --Ghost in the Shell [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-11-28 23:30 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-11-27 22:23 [gentoo-portage-dev] Disabling "strip" in Emerge Sorav Bansal 2004-11-27 22:43 ` [gentoo-portage-dev] " Thomas Kirchner 2004-11-27 23:10 ` Ciaran McCreesh 2004-11-27 23:22 ` [gentoo-portage-dev] " Thomas Kirchner 2004-11-28 0:24 ` Sorav Bansal 2004-11-28 0:28 ` Ciaran McCreesh 2004-11-28 11:48 ` Christian Parpart 2004-11-28 15:57 ` Aaron Walker 2004-11-28 19:33 ` Paul de Vrieze 2004-11-28 23:29 ` Drake Wyrm
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox