From: | "Sergei Trofimovich (slyfox)" <slyfox@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lang/ghc/files: ghc-7.6.3-preserve-inplace-xattr.patch |
Date: | Fri, 01 Aug 2014 20:34:02 |
Message-Id: | 20140801203357.21ABB20035@flycatcher.gentoo.org |
1 | slyfox 14/08/01 20:33:55 |
2 | |
3 | Added: ghc-7.6.3-preserve-inplace-xattr.patch |
4 | Log: |
5 | Fix hardened installation in PAX_MARKINGS=XT mode (bug #518734). |
6 | |
7 | (Portage version: 2.2.10_p40/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-lang/ghc/files/ghc-7.6.3-preserve-inplace-xattr.patch |
11 | |
12 | 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 |
13 | 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 |
14 | |
15 | Index: ghc-7.6.3-preserve-inplace-xattr.patch |
16 | =================================================================== |
17 | On hardened 'cp' drops out XT-pax parking. |
18 | perfinion suggested using 'install', where portage |
19 | might have a chance to save our marking. |
20 | |
21 | Reported-by: Jay Yang |
22 | Gentoo-bug: https://bugs.gentoo.org/518734 |
23 | diff --git a/rules/build-prog.mk b/rules/build-prog.mk |
24 | index 399369e..2ee9cd5 100644 |
25 | --- a/rules/build-prog.mk |
26 | +++ b/rules/build-prog.mk |
27 | @@ -288,3 +288,3 @@ endif |
28 | $$($1_$2_INPLACE) : $1/$2/build/tmp/$$($1_$2_PROG_INPLACE) | $$$$(dir $$$$@)/. |
29 | - "$$(CP)" -p $$< $$@ |
30 | + $$(INSTALL) -m 755 $$< $$@ |