From f758abfb7c2669ed42c6d27e22a1b3349000000c Mon Sep 17 00:00:00 2001 From: eroen Date: Thu, 21 Jan 2016 20:48:10 +0100 Subject: dwarffortress-0.42.04 - Tune ebuild for dfhack pax-mark -m ./libs/Dwarf_Fortress: error while loading shared libraries: /usr/share/games/hack/libdfhack.so: cannot make segment writable for relocation: Permission denied filter -O* ./libs/Dwarf_Fortress: symbol lookup error: /usr/share/games/hack/libdfhack.so: undefined symbol: _ZN8rendererD1Ev --- games-simulation/dwarffortress/dwarffortress-0.42.04.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'games-simulation') diff --git a/games-simulation/dwarffortress/dwarffortress-0.42.04.ebuild b/games-simulation/dwarffortress/dwarffortress-0.42.04.ebuild index 78aaad9e..2ebee252 100644 --- a/games-simulation/dwarffortress/dwarffortress-0.42.04.ebuild +++ b/games-simulation/dwarffortress/dwarffortress-0.42.04.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit eutils games multilib versionator +inherit eutils flag-o-matic pax-utils games multilib versionator MY_PV=$(replace_all_version_separators _ "$(get_version_component_range 2-)") MY_PN=df @@ -46,6 +46,9 @@ pkg_setup() { games_pkg_setup multilib_toolchain_setup x86 + + # dfhack needs symbols that are removed from libgraphics with optimization + filter-flags '-O*' } src_prepare() { @@ -76,6 +79,10 @@ src_install() { prepgamesdirs fperms 750 "${gamesdir}"/libs/Dwarf_Fortress + + # PAX marking for dfhack. PTPAX markings change the md5 hash of the + # executable, and breaks version detection in dfhack + PAX_MARKINGS=XT pax-mark -m "${ED%/}${gamesdir}"/libs/Dwarf_Fortress } pkg_postinst() { -- cgit v1.2.1