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

Bug 518734

Summary: dev-lang/ghc: build fails with pax enabled (in PAX_MARKINGS=XT mode)
Product: Gentoo Linux Reporter: Jay Yang <jkelleyy>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Severity: normal CC: jkelleyy, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info

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: