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
Message-Id: 20170121225947.11433-1-mgorny@gentoo.org
Hi, everyone.

Here's the result of a side project I'm running. It's a set of patches
to profiles that attempt to simplify and clean the structure a bit.
I've checked it using profile-dumper [1] and it's mostly NFC, except
that some stuff irrelevant to the arch in question being removed.

The main goal was to reduce the role of features/* subtree that served
as some kind of weird all-in-one middleware for multiple profiles. These
patches:

a. kill features/*bit-* completely -- all stuff is moved to appropriate
arch profiles,

b. kill LIBDIR declarations out of features/multilib -- also moved to
appropriate arch profiles.

The main goal is simplicity. I think it's really better when you don't
have to guess which of 10 implicitly inherited profiles set the final
value, and it's really bad when minor parent order changes in some
profile can randomly effect the results of a derived one.

Right now this is terrible. For example, the arch/amd64/x32 profile
inherited features/multilib a second time just to reset libdir which has
been indirectly set by parent profile.

I can't stay this is enough to make things perfect but I think it's
a step in the right direction. Cleaner profiles make it easier to
improve them more in the future.

Productive comments welcome.

[1]:https://github.com/mgorny/profile-cleanup

Replies