public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jonathan Callen <jcallen@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: [PATCH] profiles: update pie use-flag masks for sys-devel/gcc
Date: Thu, 11 May 2017 23:25:24 -0400	[thread overview]
Message-ID: <754928e1-5d23-c015-7f5e-6c685b2153fc@gentoo.org> (raw)
In-Reply-To: <pan$1a6a$58276e2a$f2b51caa$92713e15@cox.net>


[-- Attachment #1.1: Type: text/plain, Size: 1857 bytes --]

On 05/11/2017 10:45 PM, Duncan wrote:
> Matthias Maier posted on Thu, 11 May 2017 19:17:51 -0500 as excerpted:
> 
>> In light of the recent discussion, I will restore the status quo for the
>> pie use-flag: masked on non-hardened profiles, unmasked and forced on
>> hardened profiles.
>>
>> The next step will be to switch the pie use-flag on default profiles
>> from masked to unmasked/forced with a profile update.
> 
> For those of us who already have a default-pie system and now that we do, 
> don't want to go back, what's the prescribed override?  I've never felt 
> the need to override a masked flag like that, before.
> 
> (I'm sure I could find the general documentation and handle it myself, 
> but I'm equally sure that there's likely to be others in my situation by 
> now, and we shouldn't /all/ need to figure it out on our own.)
> 
> (As some may remember, yes, I do have USE="-* ..." set, so didn't get pie 
> with the initial gcc6 emerge and @world rebuild, but I was persuaded by 
> the discussion here to try it, second global rebuild, and so far it 
> works.  So both because it's supposed to be safer and because I don't 
> want to do now a /third/ global rebuild, I strongly prefer to keep it, 
> now that I have it, and no issues so far.)
> 

In general, to override a package.use{,.stable}.{mask,force} entry in
your profile, you add an entry to the same file in /etc/portage/profile/
that turns off the mask/force value in the profile. In this case, you
would add a line like:

    >=sys-devel/gcc-6.3.0 -pie

to the /etc/portage/profile/package.use.mask file (creating the
file/parent directory as needed).  If a flag is masked/forced for all
packages in use.{mask,force}, then you would add a line like "-foo" to
the use.{mask,force} file in /etc/portage/profile/.

-- 
Jonathan Callen


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-05-12  3:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  0:17 [gentoo-dev] [PATCH] profiles: update pie use-flag masks for sys-devel/gcc Matthias Maier
2017-05-12  0:17 ` Matthias Maier
2017-05-12  2:45 ` [gentoo-dev] " Duncan
2017-05-12  3:25   ` Jonathan Callen [this message]
2017-05-12  4:56     ` Duncan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=754928e1-5d23-c015-7f5e-6c685b2153fc@gentoo.org \
    --to=jcallen@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox