Sam James 00a85ac292 autotools.eclass: rework WANT_AUTOCONF handling
For automake, we enumerate each of the automake slots in _WANT_AUTOMAKE and
use this to handle setting WANT_AUTOMAKE accordingly if the ebuild (or user,
I suppose) haven't set WANT_AUTOMAKE themselves. This means that we can easily
rollover to the latest installed on a system (and we also pull it in via _WANT_AUTOMAKE
which is used for dependencies) because WANT_AUTOMAKE is based on the slots in
_WANT_AUTOMAKE intersected with whatever is installed on the system.

For autoconf, we weren't doing any of that, and were just hardcoding whatever
the latest slot is! That's error prone on bumps but it also wasn't really possible
to get right as-is without marking a new slot stable because of the entanglement
between the dependencies, WANT_AUTOCONF, and no intersection being done
(WANT_AUTOCONF wasn't dynamic at all).

We now implement a similar scheme for autoconf as we already had for automake. This
fixes the case where WANT_AUTOCONF="latest" in an ebuild (the default), autoconf:2.71
isn't installed, but autoconf:2.72 is.

This sometimes worked before if the latest dep was slotted rather than unslotted
like it is now (see below for why that's not easy to just fix) because the new slot
would never get pulled in and hence the older slot which aligned with WANT_AUTOCONF's
hardcoded value would be available.

(I still think we should consider slotmoving older autoconfs but that's something
to discuss and possibly do another time. See TODO.)

Bug: https://bugs.gentoo.org/827852
Bug: https://bugs.gentoo.org/893434
Closes: https://bugs.gentoo.org/920822
Signed-off-by: Sam James <sam@gentoo.org>
2023-12-27 20:57:06 +00:00
2023-12-25 13:25:48 -08:00
2023-12-23 20:33:59 +00:00
2023-12-27 02:20:42 +01:00
2023-12-27 16:58:46 +01:00
2023-12-27 20:22:29 +01:00
2023-12-26 21:24:48 +00:00
2023-12-27 16:54:09 +01:00
2023-12-23 22:51:20 +01:00
2023-12-27 02:20:41 +01:00
2023-12-22 19:38:11 +02:00
2023-12-15 23:03:29 +02:00
2023-12-27 16:24:54 +01:00
2023-12-16 09:59:04 +02:00
2023-12-22 17:42:53 +01:00
2023-12-23 19:29:31 +01:00
2023-12-22 09:16:26 +00:00
2023-12-22 09:38:17 +01:00
2023-12-23 17:43:26 +00:00
2023-12-26 23:13:55 +01:00
2023-12-27 16:28:42 +01:00
2023-12-26 21:38:06 +00:00
2023-12-27 01:06:15 +01:00
2023-12-27 14:42:27 +08:00
2023-12-25 21:02:59 +01:00
2023-12-27 15:43:32 +02:00
2023-12-23 18:51:57 +00:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%