1 |
On 05/11/2017 10:45 PM, Duncan wrote: |
2 |
> Matthias Maier posted on Thu, 11 May 2017 19:17:51 -0500 as excerpted: |
3 |
> |
4 |
>> In light of the recent discussion, I will restore the status quo for the |
5 |
>> pie use-flag: masked on non-hardened profiles, unmasked and forced on |
6 |
>> hardened profiles. |
7 |
>> |
8 |
>> The next step will be to switch the pie use-flag on default profiles |
9 |
>> from masked to unmasked/forced with a profile update. |
10 |
> |
11 |
> For those of us who already have a default-pie system and now that we do, |
12 |
> don't want to go back, what's the prescribed override? I've never felt |
13 |
> the need to override a masked flag like that, before. |
14 |
> |
15 |
> (I'm sure I could find the general documentation and handle it myself, |
16 |
> but I'm equally sure that there's likely to be others in my situation by |
17 |
> now, and we shouldn't /all/ need to figure it out on our own.) |
18 |
> |
19 |
> (As some may remember, yes, I do have USE="-* ..." set, so didn't get pie |
20 |
> with the initial gcc6 emerge and @world rebuild, but I was persuaded by |
21 |
> the discussion here to try it, second global rebuild, and so far it |
22 |
> works. So both because it's supposed to be safer and because I don't |
23 |
> want to do now a /third/ global rebuild, I strongly prefer to keep it, |
24 |
> now that I have it, and no issues so far.) |
25 |
> |
26 |
|
27 |
In general, to override a package.use{,.stable}.{mask,force} entry in |
28 |
your profile, you add an entry to the same file in /etc/portage/profile/ |
29 |
that turns off the mask/force value in the profile. In this case, you |
30 |
would add a line like: |
31 |
|
32 |
>=sys-devel/gcc-6.3.0 -pie |
33 |
|
34 |
to the /etc/portage/profile/package.use.mask file (creating the |
35 |
file/parent directory as needed). If a flag is masked/forced for all |
36 |
packages in use.{mask,force}, then you would add a line like "-foo" to |
37 |
the use.{mask,force} file in /etc/portage/profile/. |
38 |
|
39 |
-- |
40 |
Jonathan Callen |