slyfox 14/08/01 20:33:55 Added: ghc-7.6.3-preserve-inplace-xattr.patch Log: Fix hardened installation in PAX_MARKINGS=XT mode (bug #518734). (Portage version: 2.2.10_p40/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
Revision Changes Path 1.1 dev-lang/ghc/files/ghc-7.6.3-preserve-inplace-xattr.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.6.3-preserve-inplace-xattr.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ghc/files/ghc-7.6.3-preserve-inplace-xattr.patch?rev=1.1&content-type=text/plain Index: ghc-7.6.3-preserve-inplace-xattr.patch =================================================================== On hardened 'cp' drops out XT-pax parking. perfinion suggested using 'install', where portage might have a chance to save our marking. Reported-by: Jay Yang Gentoo-bug: https://bugs.gentoo.org/518734 diff --git a/rules/build-prog.mk b/rules/build-prog.mk index 399369e..2ee9cd5 100644 --- a/rules/build-prog.mk +++ b/rules/build-prog.mk @@ -288,3 +288,3 @@ endif $$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG_INPLACE) | $$$$(dir $$$$@)/. - "$$(CP)" -p $$< $$@ + $$(INSTALL) -m 755 $$< $$@
