Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] Profile cleanup, pt. 2: multilib mess
Date: Sat, 21 Jan 2017 23:00:07
1 Hi, everyone.
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.
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:
12 a. kill features/*bit-* completely -- all stuff is moved to appropriate
13 arch profiles,
15 b. kill LIBDIR declarations out of features/multilib -- also moved to
16 appropriate arch profiles.
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.
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.
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.
31 Productive comments welcome.
33 [1]: