Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: RFC: news item for the 17.0 profiles
Date: Thu, 12 Oct 2017 07:12:46
Message-Id: pan$c1413$5cc8f882$b768addd$9f7c1437@cox.net
In Reply to: [gentoo-dev] Re: RFC: news item for the 17.0 profiles by Duncan <1i5t5.duncan@cox.net>
1 Duncan posted on Wed, 11 Oct 2017 03:31:55 +0000 as excerpted:
2
3 > Andreas K. Huettel posted on Tue, 10 Oct 2017 21:02:32 +0200 as
4 > excerpted:
5 >
6 >> Switching the profile changes the settings for building gcc (it
7 >> switches a use-flag from forced-off to forced-on). A gcc-6 built with
8 >> the 17.0 profiles will produce PIE executables by default, a gcc-6
9 >> built with the 13.0 profiles will not.
10 >>
11 >> I've added this paragraph:
12 >> # Switching the profile modifies the settings of GCC 6 to generate
13 >> # PIE executables by default; thus, you need to do the rebuilds
14 >> # even if you already used GCC 6 beforehand.
15 >
16 > Thanks. Much clearer now. =:^)
17 >
18 > (And I'll have some rebuilding to do.)
19
20 Actually it seems not. I had forgotten this from my
21 /etc/portage/profile/package.use.mask (along with the appropriate system-
22 wide USE flag):
23
24 # 2017.0513 Now that I have gcc-pie enabled, don't want
25 # the new profile package.use.mask. See the
26 # "[PATCH] profiles: update pie use-flag masks for sys-devel/gcc"
27 # thread, OP on Thursday, 11 May 2017
28 # by Mathias Maier <tamiko@g.o on gentoo-devel
29 sys-devel/gcc -pie
30
31 I had turned it on already by the time of the mask, and unmasked to avoid
32 turning it off and rebuilding again, once it was on system-wide and the
33 mask was trying to turn it off again, which would have forced another
34 system-wide rebuild then, and yet /another/ one now.
35
36 Of course that's a big part of why I as a responsible gentoo-based-system
37 sysadmin follow this list, to see such changes coming down the pike and
38 take appropriate measures before they hit me and the systems I administer
39 (only my own, but that's no reason not to take the job seriously)
40 head-on. =:^)
41
42 So AFAICS my profile upgrade should be just a matter of flipping the
43 symlink. I guess I'll find out in the next few days. =:^)
44
45 --
46 Duncan - List replies preferred. No HTML msgs.
47 "Every nonfree program has a lord, a master --
48 and if you use the program, he is your master." Richard Stallman