Created attachment 381998 [details]
Specifically, I am working with dev-lang/ghc-7.6.3-r1, but it is unlikely that it is specific to this version. I've been talking to slyfox on #gentoo-haskell about this, and it appears the issue has to do with cp -p not copying xattrs.
Created attachment 382000 [details]
Note: I've built it from the gentoo-haskell overlay, but the version in the portage tree is identical.
Pushed to overlay only:
Please, try if that patch helps you. #gentoo-hardened folks say
portage's install should preserve that marking.
Wrong link. This one is better:
Pushed fix to the main tree as:
> 01 Aug 2014; Sergei Trofimovich <firstname.lastname@example.org>
> +files/ghc-7.6.3-preserve-inplace-xattr.patch, ghc-7.6.3-r1.ebuild,
> Fix hardened installation in PAX_MARKINGS=XT mode (bug #518734).
Proposed patch upstream as: https://phabricator.haskell.org/D108