Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518734 - dev-lang/ghc: build fails with pax enabled (in PAX_MARKINGS=XT mode)
Summary: dev-lang/ghc: build fails with pax enabled (in PAX_MARKINGS=XT mode)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
Depends on:
Reported: 2014-08-01 10:59 UTC by Jay Yang
Modified: 2014-08-01 20:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info (info.txt,5.68 KB, text/plain)
2014-08-01 10:59 UTC, Jay Yang
build.log (build.log.bz2,103.42 KB, application/x-bzip2)
2014-08-01 11:03 UTC, Jay Yang

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Yang 2014-08-01 10:59:20 UTC
Created attachment 381998 [details]
emerge --info

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.
Comment 1 Jay Yang 2014-08-01 11:03:28 UTC
Created attachment 382000 [details]

Note: I've built it from the gentoo-haskell overlay, but the version in the portage tree is identical.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2014-08-01 15:05:26 UTC
Pushed to overlay only:

Please, try if that patch helps you. #gentoo-hardened folks say
portage's install should preserve that marking.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2014-08-01 15:14:54 UTC
Wrong link. This one is better:
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2014-08-01 20:45:10 UTC
Pushed fix to the main tree as:

> 01 Aug 2014; Sergei Trofimovich <>
> +files/ghc-7.6.3-preserve-inplace-xattr.patch, ghc-7.6.3-r1.ebuild,
> ghc-7.8.3.ebuild:
> Fix hardened installation in PAX_MARKINGS=XT mode (bug #518734).

Proposed patch upstream as: