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

Bug 462718

Summary: FEATURES="splitdebug" broken for 32bit libs/bins on amd64?
Product: Portage Development Reporter: Julian Ospald <hasufell>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Julian Ospald 2013-03-22 19:51:17 UTC
Installing binary blob games on amd64 which are 32bit only, I will get something like this:
>>> /usr/lib/debug/opt/dynamitejack/bin/main.debug
>>> /usr/lib/debug/.build-id/73/bd4ebb4ef3e51e0faae2edb87d1ef90c40642e.debug -> ../../opt/dynamitejack/bin/main.debug
>>> /usr/lib/debug/.build-id/73/bd4ebb4ef3e51e0faae2edb87d1ef90c40642e -> /opt/dynamitejack/bin/main

affected packages which I force to error out on FEATURES="splitdebug" in pkg_pretend for now:
games-action/beathazardultra
games-action/solar2
games-action/swordandsworcery
games-action/trine2
games-arcade/dynamitejack
games-rpg/bastion
games-rpg/grimrock

Those are all games that install bundled 32bit libraries and binaries on amd64. Not all files are prestripped, so I see no reason to set RESTRICT="strip".
Regular strip works fine.
Comment 1 Zac Medico gentoo-dev 2013-03-22 21:09:30 UTC
Can you clarify what is "broken" about the current behavior?

FEATURES=splitdebug is supposed to trigger creation *.debug files in /usr/lib/debug, and build-id symlinks in /usr/lib/debug/.build-id, and at first glance it seems to be working as designed. So, what's "broken" about it?
Comment 2 Zac Medico gentoo-dev 2013-03-22 21:25:31 UTC
I guess you're confused since you don't have LDFLAGS="-Wl,--build-id" locally, so you're not accustomed to those build-id symlinks.