Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 251918

Summary: dev-lang/fpc-ide: pre-stripped files found
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Maintainers for Miscelleneous Language Packages [OBSOLETE] <lang-misc+disabled>
Status: RESOLVED FIXED    
Severity: QA    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 239866    

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-21 19:28:51 UTC
dev-lang/fpc-ide-2.2.2:20081213-084315.log:  * QA Notice: Pre-stripped files found:
dev-lang/fpc-ide-2.2.2:20081213-084315.log:  * /var/tmp/portage/dev-lang/fpc-ide-2.2.2/image/usr/bin/fp


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.

Thanks,
Diego
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2008-12-21 21:08:38 UTC
The default behaviour of fpc is to strip executables. There's a warning in the fpc pkg_postinst that you may want to remove -Xs from /etc/fpc.cfg because of this, but since this affects the behaviour of fpc outside of ebuilds as well, this is not done automatically. I don't think there's anything to fix here, but if you have any suggestions, please share.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2009-03-08 19:45:22 UTC
No comment, so closing.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-08 23:08:35 UTC
Should at least set QA_PRESTRIPPED, although a stripped default is not something I sincerely like enormously...
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2009-06-09 21:10:25 UTC
Having taken another look, it turns out to be easy enough to use a different config file for the build of fpc-ide (and lazarus), so now fpc continues to strip executables by default outside of portage, but not here. No need for QA_* additions and all those warnings anymore :)