Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240108 - app-text/7plus: pre-stripped files found
Summary: app-text/7plus: pre-stripped files found
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: prestripped
  Show dependency tree
Reported: 2008-10-05 20:02 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-01-03 21:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Patch to strip hardcoded -s in LDFLAGS (7plus-2.25.pre-strip.patch,374 bytes, text/plain)
2008-10-06 04:53 UTC, Thomas Beierlein

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-05 20:02:11 UTC
Portage warns about pre-stripped files being installed into the image directory; this is a bad thing since it makes Portage's splitdebug feature useless, and it stops the users and the developers from looking into backtraces with full debug information available.

For the developers going to look into it, what you have to look out for, to
find what is stripping the files, is one of these conditions:

- explicit "strip" command run on the produced files;
- "install -s" command to install the binary files;
- "-Wl,-s" flag passed during linking

Remove the "strip" commands, remove the "-s" option at install, and remove
"-Wl,-s" and the problem should be gone.

Comment 1 Thomas Beierlein gentoo-dev 2008-10-06 04:53:48 UTC
Created attachment 167403 [details]
Patch to strip hardcoded -s in LDFLAGS

The reason is a hardcoded "LDFLAGS = -s" in Makefile template. The above patch strips it. Compiles without problem afterwards here on x86.
Comment 2 Thomas Beierlein gentoo-dev 2008-10-08 18:44:54 UTC
See also the patch at 240125 for ignored CFLAGS. The attached patch there is cumulative in that it fixes also the pre-strip problem from these bug.
Comment 3 Mike Pagano gentoo-dev 2009-01-03 21:09:13 UTC
03 Jan 2009; Mike Pagano <> 7plus-2.25.ebuild:
  Fix for respecting CFLAGS bug #240125 and prestriping binaries bug #240108.
  Patch submitted by Thomas Beierlein. Thank-you, Thomas.