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

Bug 566462

Summary: games-roguelike/dwarf-fortress libgraphics.so stripped of symbols causes dfhack to fail
Product: Gentoo Linux Reporter: Nigel George <nigelcgeorge>
Component: [OLD] GamesAssignee: Alex Xu (Hello71) <alex_y_xu>
Status: RESOLVED FIXED    
Severity: normal CC: creffett, nigelcgeorge, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nigel George 2015-11-22 14:04:06 UTC
Bug:
  Due to symbols, specifically _ZN8rendererD1Ev, being stripped from libgraphics.so breaks compatibility with the extremely popular dfhack mod.

Request:
  Also, is it possible to have the script /usr/games/bin/dwarf-fortress check for ./dfhack if present and call that in preference to ./libs/Dwarf_Fortress

Use who want dfhack could install to their ~/dwarf-fortress copy, and users who don't would still have standard. And all executed from the script.

if [[ -f "$install/dfhack" ]]; then
  exec ./dfhack "$@"
else
  exec ./libs/Dwarf_Fortress "$@"
fi

Something like that maybe?
Comment 1 Chris Reffett (RETIRED) gentoo-dev Security 2015-12-13 20:16:32 UTC
I'd rather not add the check for dfhack -- after that, everyone will want an extra check for something or other. I'm okay with adding RESTRICT=strip though, done in 42.0.02.