* [gentoo-dev] [PATCH] autotools.eclass: simplify WANT_AUTOCONF logic
@ 2025-01-17 21:32 Mike Gilbert
2025-01-18 18:00 ` Sam James
0 siblings, 1 reply; 2+ messages in thread
From: Mike Gilbert @ 2025-01-17 21:32 UTC (permalink / raw
To: gentoo-dev; +Cc: base-system, Mike Gilbert
Update WANT_AUTOMAKE atoms to match.
Drop 2.71 from _LATEST_AUTOCONF since 2.72 is stable.
Closes: https://bugs.gentoo.org/948125
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
PR: https://github.com/gentoo/gentoo/pull/40187
eclass/autotools.eclass | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 518f6addcc50..a36b6ba859be 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: autotools.eclass
@@ -71,7 +71,7 @@ inherit gnuconfig libtool
# Do NOT change this variable in your ebuilds!
# If you want to force a newer minor version, you can specify the correct
# WANT value by using a colon: <PV>:<WANT_AUTOCONF>
-_LATEST_AUTOCONF=( 2.72-r1:2.72 2.71-r6:2.71 )
+_LATEST_AUTOCONF=( 2.72-r1:2.72 )
# @ECLASS_VARIABLE: _LATEST_AUTOMAKE
# @INTERNAL
@@ -109,14 +109,13 @@ if [[ -n ${WANT_AUTOMAKE} ]] ; then
unset _automake_atom_tmp
;;
*)
- _automake_atom="=dev-build/automake-${WANT_AUTOMAKE}*"
+ _automake_atom="dev-build/automake:${WANT_AUTOMAKE}"
;;
esac
export WANT_AUTOMAKE
fi
if [[ -n ${WANT_AUTOCONF} ]] ; then
- # TODO: Fix the slot mess here and just have proper PV-as-SLOT?
# TODO: Make _LATEST_AUTOCONF an assoc. array and instead iterate over
# its keys.
case ${WANT_AUTOCONF} in
@@ -124,25 +123,13 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then
# some packages don't require autoconf at all
_autoconf_atom=""
;;
- 2.1)
- _autoconf_atom=">=dev-build/autoconf-2.13-r7:2.1"
- ;;
- 2.5)
- _autoconf_atom=">=dev-build/autoconf-2.71-r6:2.71"
- ;;
- 2.69)
- _autoconf_atom=">=dev-build/autoconf-2.69-r9:2.69"
- ;;
- 2.71)
- _autoconf_atom=">=dev-build/autoconf-2.71-r6:2.71"
- ;;
latest)
printf -v _autoconf_atom_tmp '>=dev-build/autoconf-%s:%s ' ${_LATEST_AUTOCONF[@]/:/ }
_autoconf_atom="|| ( ${_autoconf_atom_tmp} )"
unset _autoconf_atom_tmp
;;
*)
- die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'"
+ _autoconf_atom="dev-build/autoconf:${WANT_AUTOCONF}"
;;
esac
export WANT_AUTOCONF
--
2.48.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH] autotools.eclass: simplify WANT_AUTOCONF logic
2025-01-17 21:32 [gentoo-dev] [PATCH] autotools.eclass: simplify WANT_AUTOCONF logic Mike Gilbert
@ 2025-01-18 18:00 ` Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-01-18 18:00 UTC (permalink / raw
To: Mike Gilbert; +Cc: gentoo-dev, base-system
Mike Gilbert <floppym@gentoo.org> writes:
> Update WANT_AUTOMAKE atoms to match.
> Drop 2.71 from _LATEST_AUTOCONF since 2.72 is stable.
>
> Closes: https://bugs.gentoo.org/948125
> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
> ---
LGTM. Thanks.
> PR: https://github.com/gentoo/gentoo/pull/40187
>
> eclass/autotools.eclass | 21 ++++-----------------
> 1 file changed, 4 insertions(+), 17 deletions(-)
>
> diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
> index 518f6addcc50..a36b6ba859be 100644
> --- a/eclass/autotools.eclass
> +++ b/eclass/autotools.eclass
> @@ -1,4 +1,4 @@
> -# Copyright 1999-2024 Gentoo Authors
> +# Copyright 1999-2025 Gentoo Authors
> # Distributed under the terms of the GNU General Public License v2
>
> # @ECLASS: autotools.eclass
> @@ -71,7 +71,7 @@ inherit gnuconfig libtool
> # Do NOT change this variable in your ebuilds!
> # If you want to force a newer minor version, you can specify the correct
> # WANT value by using a colon: <PV>:<WANT_AUTOCONF>
> -_LATEST_AUTOCONF=( 2.72-r1:2.72 2.71-r6:2.71 )
> +_LATEST_AUTOCONF=( 2.72-r1:2.72 )
>
> # @ECLASS_VARIABLE: _LATEST_AUTOMAKE
> # @INTERNAL
> @@ -109,14 +109,13 @@ if [[ -n ${WANT_AUTOMAKE} ]] ; then
> unset _automake_atom_tmp
> ;;
> *)
> - _automake_atom="=dev-build/automake-${WANT_AUTOMAKE}*"
> + _automake_atom="dev-build/automake:${WANT_AUTOMAKE}"
> ;;
> esac
> export WANT_AUTOMAKE
> fi
>
> if [[ -n ${WANT_AUTOCONF} ]] ; then
> - # TODO: Fix the slot mess here and just have proper PV-as-SLOT?
> # TODO: Make _LATEST_AUTOCONF an assoc. array and instead iterate over
> # its keys.
> case ${WANT_AUTOCONF} in
> @@ -124,25 +123,13 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then
> # some packages don't require autoconf at all
> _autoconf_atom=""
> ;;
> - 2.1)
> - _autoconf_atom=">=dev-build/autoconf-2.13-r7:2.1"
> - ;;
> - 2.5)
> - _autoconf_atom=">=dev-build/autoconf-2.71-r6:2.71"
> - ;;
> - 2.69)
> - _autoconf_atom=">=dev-build/autoconf-2.69-r9:2.69"
> - ;;
> - 2.71)
> - _autoconf_atom=">=dev-build/autoconf-2.71-r6:2.71"
> - ;;
> latest)
> printf -v _autoconf_atom_tmp '>=dev-build/autoconf-%s:%s ' ${_LATEST_AUTOCONF[@]/:/ }
> _autoconf_atom="|| ( ${_autoconf_atom_tmp} )"
> unset _autoconf_atom_tmp
> ;;
> *)
> - die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'"
> + _autoconf_atom="dev-build/autoconf:${WANT_AUTOCONF}"
> ;;
> esac
> export WANT_AUTOCONF
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-18 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-17 21:32 [gentoo-dev] [PATCH] autotools.eclass: simplify WANT_AUTOCONF logic Mike Gilbert
2025-01-18 18:00 ` Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox