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>
Status: RESOLVED FIXED    
Severity: normal CC: jkelleyy, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

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]
build.log

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:

https://github.com/gentoo-haskell/gentoo-haskell/commit/9988cd5085c3de84aa06098f5dba65df75d39e11

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:

https://github.com/gentoo-haskell/gentoo-haskell/commit/02e2f0f2e17dd965e1aeb2a998061ece2fc896c4
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 <slyfox@gentoo.org>
> +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: https://phabricator.haskell.org/D108

Thanks!