1 |
Hi, everyone. |
2 |
|
3 |
Here's the result of a side project I'm running. It's a set of patches |
4 |
to profiles that attempt to simplify and clean the structure a bit. |
5 |
I've checked it using profile-dumper [1] and it's mostly NFC, except |
6 |
that some stuff irrelevant to the arch in question being removed. |
7 |
|
8 |
The main goal was to reduce the role of features/* subtree that served |
9 |
as some kind of weird all-in-one middleware for multiple profiles. These |
10 |
patches: |
11 |
|
12 |
a. kill features/*bit-* completely -- all stuff is moved to appropriate |
13 |
arch profiles, |
14 |
|
15 |
b. kill LIBDIR declarations out of features/multilib -- also moved to |
16 |
appropriate arch profiles. |
17 |
|
18 |
The main goal is simplicity. I think it's really better when you don't |
19 |
have to guess which of 10 implicitly inherited profiles set the final |
20 |
value, and it's really bad when minor parent order changes in some |
21 |
profile can randomly effect the results of a derived one. |
22 |
|
23 |
Right now this is terrible. For example, the arch/amd64/x32 profile |
24 |
inherited features/multilib a second time just to reset libdir which has |
25 |
been indirectly set by parent profile. |
26 |
|
27 |
I can't stay this is enough to make things perfect but I think it's |
28 |
a step in the right direction. Cleaner profiles make it easier to |
29 |
improve them more in the future. |
30 |
|
31 |
Productive comments welcome. |
32 |
|
33 |
[1]:https://github.com/mgorny/profile-cleanup |