1 |
On 11/10/2010 05:44 PM, Anthony G. Basile wrote: |
2 |
> On 11/10/2010 04:42 PM, Matthew Summers wrote: |
3 |
>> On Wed, Nov 10, 2010 at 3:39 PM, Matthew Summers |
4 |
>> <quantumsummers@g.o>wrote: |
5 |
>> |
6 |
>>> On Wed, Nov 10, 2010 at 3:22 PM, Anthony G. Basile |
7 |
> <blueness@g.o>wrote: |
8 |
>>>> On 11/10/2010 10:29 AM, Petteri Räty wrote: |
9 |
>>>>> On 11/10/2010 02:42 PM, Peter Volkov wrote: |
10 |
>>>>>> В Втр, 09/11/2010 в 18:20 -0500, Anthony G. Basile пишет: |
11 |
>>>>>>> Title: Restructuring of Hardened profiles |
12 |
>>>>>> [...] |
13 |
>>>>>>> Display-If-Profile: hardened/linux |
14 |
>>>>>> Is it possible to restrict this news item to be shown on affected |
15 |
>>>>>> profiles only? |
16 |
>>>>>> |
17 |
>>>>> Yeah it shouldn't show up in new installs that are already using the |
18 |
>>>>> migrated profiles. |
19 |
>>>>> |
20 |
>>>>> Regards, |
21 |
>>>>> Petteri |
22 |
>>>>> |
23 |
>>>> I'm not sure how to address this concern. I reread GLEP-42 and all I |
24 |
>>>> see is |
25 |
>>>> |
26 |
>>>> Display-If-Installed: eg. net-www/apache |
27 |
>>>> Display-If-Keyword: eg. amd64 |
28 |
>>>> Display-If-Profile: eg linux/hardened |
29 |
>>>> |
30 |
>>>> If someone knows how, I'll be happy to address this concern. |
31 |
>>>> |
32 |
>>>> |
33 |
>>>> -- |
34 |
>>>> Anthony G. Basile, Ph.D. |
35 |
>>>> Gentoo Developer |
36 |
>>>> |
37 |
>>>> |
38 |
>>> I suspect it should be the following. |
39 |
>>> |
40 |
>>> Display-If-Profile: hardened/linux/amd64/10.0 |
41 |
>>> Display-If-Profile: hardened/linux/amd64/10.0/no-multilib |
42 |
>>> . |
43 |
>>> . |
44 |
>>> . |
45 |
>>> etc. |
46 |
>>> |
47 |
>>> Now, I have no clear indication that "Display-If-Profile" can be used more |
48 |
>>> than once or if it accepts an expression that would allow us to catch both |
49 |
>>> the multilib and no-multilib examples, as well as the x86 profile, etc. |
50 |
>>> |
51 |
>>> Cheers, |
52 |
>>> -- |
53 |
>>> Matthew W. Summers |
54 |
>>> |
55 |
>>> |
56 |
>> So, I re-read GLEP 42 and this snippet makes it clear that we will need one |
57 |
>> "Display-If-Profile" header element for each profile we are migrating. |
58 |
>> |
59 |
>> |
60 |
>> The algorithm used to determine whether a news item is 'relevant' is as |
61 |
>> follows: |
62 |
>> |
63 |
>> For each Display-If- header type which occurs at least once: |
64 |
>> |
65 |
>> The news item is not relevant if none of the headers of this type are |
66 |
>> successfully matched. |
67 |
>> |
68 |
>> Otherwise the news item is relevant. |
69 |
>> |
70 |
>> |
71 |
>> Regards |
72 |
> The list of effected profiles is fairly long -> |
73 |
> |
74 |
> cd /usr/portage/profiles/hardened/linux/ && find . -type d | grep 10.0 |
75 |
> |
76 |
> ./ia64/10.0 |
77 |
> ./ia64/10.0/server |
78 |
> ./ia64/10.0/desktop |
79 |
> ./ia64/10.0/developer |
80 |
> ./x86/10.0 |
81 |
> ./x86/10.0/server |
82 |
> ./x86/10.0/no-nptl |
83 |
> ./x86/10.0/desktop |
84 |
> ./x86/10.0/developer |
85 |
> ./amd64/10.0 |
86 |
> ./amd64/10.0/server |
87 |
> ./amd64/10.0/desktop |
88 |
> ./amd64/10.0/no-multilib |
89 |
> ./amd64/10.0/developer |
90 |
> ./powerpc/ppc32/10.0 |
91 |
> ./powerpc/ppc32/10.0/server |
92 |
> ./powerpc/ppc32/10.0/desktop |
93 |
> ./powerpc/ppc32/10.0/developer |
94 |
> ./powerpc/ppc64/10.0 |
95 |
> ./powerpc/ppc64/10.0/server |
96 |
> ./powerpc/ppc64/10.0/desktop |
97 |
> ./powerpc/ppc64/10.0/32bit-userland |
98 |
> ./powerpc/ppc64/10.0/32bit-userland/server |
99 |
> ./powerpc/ppc64/10.0/32bit-userland/desktop |
100 |
> ./powerpc/ppc64/10.0/32bit-userland/developer |
101 |
> ./powerpc/ppc64/10.0/64bit-userland |
102 |
> ./powerpc/ppc64/10.0/64bit-userland/server |
103 |
> ./powerpc/ppc64/10.0/64bit-userland/desktop |
104 |
> ./powerpc/ppc64/10.0/64bit-userland/developer |
105 |
> ./powerpc/ppc64/10.0/developer |
106 |
> |
107 |
> |
108 |
> If this can be reduced by removing the subprofiles then it reduces to |
109 |
> |
110 |
> ./ia64/10.0 |
111 |
> ./x86/10.0 |
112 |
> ./amd64/10.0 |
113 |
> ./powerpc/ppc32/10.0 |
114 |
> ./powerpc/ppc64/10.0 |
115 |
> |
116 |
> |
117 |
> If someone can assure me it will work, change my current |
118 |
> Display-If-Profile to |
119 |
> |
120 |
> Display-If-Profile: hardened/linux/ia64/10.0 |
121 |
> Display-If-Profile: hardened/linux/x86/10.0 |
122 |
> Display-If-Profile: hardened/linux/amd64/10.0 |
123 |
> Display-If-Profile: hardened/linux/powerpc/ppc32/10.0 |
124 |
> Display-If-Profile: hardened/linux/powerpc/ppc64/10.0 |
125 |
> |
126 |
> |
127 |
Okay, after speaking to ssuominen who had a similar situation, you have |
128 |
to spell out the entire profile. So here is the latest version of the |
129 |
news item. There are lots of Display-If-Profile lines, but it should |
130 |
do the trick. |
131 |
|
132 |
|
133 |
-- |
134 |
Anthony G. Basile, Ph.D. |
135 |
Gentoo Developer |