Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241428 - sys-power/cpudyn: pre-stripped files found
Summary: sys-power/cpudyn: pre-stripped files found
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Mobile Herd (OBSOLETE)
: 252072 (view as bug list)
Depends on:
Blocks: prestripped
  Show dependency tree
Reported: 2008-10-11 18:45 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-06-12 14:05 UTC (History)
0 users

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

Patch to remove Makefile override of LDFLAGS (cpudyn-fix-ldflags-and-strip.patch,602 bytes, patch)
2009-01-14 04:22 UTC, Kevin Pyle
Details | Diff

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-11 18:45:21 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-23 19:54:39 UTC
*** Bug 252072 has been marked as a duplicate of this bug. ***
Comment 2 Kevin Pyle 2009-01-14 04:22:46 UTC
Created attachment 178457 [details, diff]
Patch to remove Makefile override of LDFLAGS

This package also does not respect user LDFLAGS, since the Makefile explicitly sets LDFLAGS = -s.  Both problems can be fixed by removing the assignment, so that user chosen LDFLAGS are used when linking cpudynd, rather than always passing a -s to strip cpudynd.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-12 14:05:51 UTC
Even simpler: just override LDFLAGS on emake call. Fixed now.