From: David Seifert <soap@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: David Seifert <soap@gentoo.org>
Subject: [gentoo-dev] [PATCH 02/50] autotools.eclass: drop support for EAPI 6
Date: Tue, 27 Aug 2024 17:14:47 +0200 [thread overview]
Message-ID: <20240827151553.210835-2-soap@gentoo.org> (raw)
In-Reply-To: <20240827151553.210835-1-soap@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
---
eclass/autotools.eclass | 69 +++++++++--------------------------------
1 file changed, 15 insertions(+), 54 deletions(-)
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 3c9e89bda90e..74f259276960 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -4,7 +4,7 @@
# @ECLASS: autotools.eclass
# @MAINTAINER:
# base-system@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
# @BLURB: Regenerates auto* build scripts
# @DESCRIPTION:
# This eclass is for safely handling autotooled software packages that need to
@@ -14,7 +14,7 @@
# from the GNU version of m4 without worrying about other variants (i.e. BSD).
case ${EAPI} in
- 6|7|8) ;;
+ 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -31,8 +31,6 @@ fi
if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then
_AUTOTOOLS_ECLASS=1
-[[ ${EAPI} == 6 ]] && inherit eqawarn
-
GNUCONFIG_AUTO_DEPEND=no
inherit gnuconfig libtool
@@ -180,12 +178,7 @@ RDEPEND=""
# ebuilds form conditional depends by using ${AUTOTOOLS_DEPEND} in
# their own DEPEND string.
: "${AUTOTOOLS_AUTO_DEPEND:=yes}"
-if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
- case ${EAPI} in
- 6) DEPEND=${AUTOTOOLS_DEPEND} ;;
- *) BDEPEND=${AUTOTOOLS_DEPEND} ;;
- esac
-fi
+[[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] && BDEPEND=${AUTOTOOLS_DEPEND}
_AUTOTOOLS_AUTO_DEPEND=${AUTOTOOLS_AUTO_DEPEND} # See top of eclass
unset _automake_atom _autoconf_atom
@@ -388,22 +381,16 @@ eaclocal() {
# - ${BROOT}/usr/share/aclocal
# - ${ESYSROOT}/usr/share/aclocal
# See bug #677002
- if [[ ${EAPI} != 6 ]] ; then
- if [[ ! -f "${T}"/aclocal/dirlist ]] ; then
- mkdir "${T}"/aclocal || die
- cat <<- EOF > "${T}"/aclocal/dirlist || die
- ${BROOT}/usr/share/aclocal
- ${ESYSROOT}/usr/share/aclocal
- EOF
- fi
-
- local system_acdir=" --system-acdir=${T}/aclocal"
- else
- local system_acdir=""
+ if [[ ! -f "${T}"/aclocal/dirlist ]] ; then
+ mkdir "${T}"/aclocal || die
+ cat <<- EOF > "${T}"/aclocal/dirlist || die
+ ${BROOT}/usr/share/aclocal
+ ${ESYSROOT}/usr/share/aclocal
+ EOF
fi
[[ ! -f aclocal.m4 || -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \
- autotools_run_tool --at-m4flags aclocal "$@" $(eaclocal_amflags) ${system_acdir}
+ autotools_run_tool --at-m4flags aclocal "$@" $(eaclocal_amflags) --system-acdir="${T}"/aclocal
}
# @FUNCTION: _elibtoolize
@@ -445,7 +432,7 @@ eautoconf() {
if [[ ${WANT_AUTOCONF} != "2.1" && -e configure.in ]] ; then
case ${EAPI} in
- 6|7)
+ 7)
eqawarn "This package has a configure.in file which has long been deprecated. Please"
eqawarn "update it to use configure.ac instead as newer versions of autotools will die"
eqawarn "when it finds this file. See https://bugs.gentoo.org/426262 for details."
@@ -533,21 +520,13 @@ eautopoint() {
# use gettext directly. So we have to copy it in manually since
# we can't let `autopoint` do it for us.
config_rpath_update() {
- local dst src
-
- case ${EAPI} in
- 6)
- src="${EPREFIX}/usr/share/gettext/config.rpath"
- ;;
- *)
- src="${BROOT}/usr/share/gettext/config.rpath"
- ;;
- esac
+ local src="${BROOT}/usr/share/gettext/config.rpath"
[[ $# -eq 0 ]] && set -- $(find -name config.rpath)
[[ $# -eq 0 ]] && return 0
einfo "Updating all config.rpath files"
+ local dst
for dst in "$@" ; do
einfo " ${dst}"
cp "${src}" "${dst}" || die
@@ -565,16 +544,7 @@ autotools_env_setup() {
local pv
for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do
# Break on first hit to respect _LATEST_AUTOMAKE order.
- local hv_args=""
- case ${EAPI} in
- 6)
- hv_args="--host-root"
- ;;
- *)
- hv_args="-b"
- ;;
- esac
- has_version ${hv_args} "=dev-build/automake-${pv}*" && export WANT_AUTOMAKE="${pv}" && break
+ has_version -b "=dev-build/automake-${pv}*" && export WANT_AUTOMAKE="${pv}" && break
done
# During bootstrap in prefix there might be no automake merged yet
@@ -594,16 +564,7 @@ autotools_env_setup() {
local pv
for pv in ${_LATEST_AUTOCONF[@]/#*:} ; do
# Break on first hit to respect _LATEST_AUTOCONF order.
- local hv_args=""
- case ${EAPI} in
- 6)
- hv_args="--host-root"
- ;;
- *)
- hv_args="-b"
- ;;
- esac
- has_version ${hv_args} "=dev-build/autoconf-${pv}*" && export WANT_AUTOCONF="${pv}" && break
+ has_version -b "=dev-build/autoconf-${pv}*" && export WANT_AUTOCONF="${pv}" && break
done
# During bootstrap in prefix there might be no autoconf merged yet
--
2.46.0
next prev parent reply other threads:[~2024-08-27 15:16 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 15:14 [gentoo-dev] [PATCH 01/50] apache-module.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:14 ` David Seifert [this message]
2024-08-27 15:14 ` [gentoo-dev] [PATCH 03/50] bash-completion-r1.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 04/50] cdrom.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 05/50] check-reqs.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 06/50] depend.apache.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 07/50] desktop.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 08/50] distutils-r1.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 09/50] flag-o-matic.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 10/50] fortran-2.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 11/50] gap-pkg.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 12/50] gnuconfig.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 13/50] java-pkg-2.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 14/50] java-utils-2.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 15/50] libtool.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 16/50] mono-env.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 17/50] multibuild.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 18/50] multilib-build.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 19/50] multilib-minimal.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 20/50] multilib.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 21/50] multiprocessing.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 22/50] out-of-source-utils.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 23/50] pax-utils.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 24/50] perl-functions.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 25/50] php-pear-r2.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 26/50] portability.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 27/50] prefix.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 28/50] preserve-libs.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 29/50] python-r1.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 30/50] python-utils-r1.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 31/50] readme.gentoo-r1.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 32/50] ruby-fakegem.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 33/50] ruby-ng.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 34/50] ruby-utils.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 35/50] strip-linguas.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 36/50] systemd.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 37/50] tmpfiles.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 38/50] toolchain-funcs.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 39/50] toolchain.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 40/50] udev.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 41/50] vcs-clean.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 42/50] vdr-plugin-2.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 43/50] vim-doc.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 44/50] vim-plugin.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 45/50] vim-spell.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 46/50] virtualx.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 47/50] webapp.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 48/50] wrapper.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 49/50] xdg-utils.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 50/50] xdg.eclass: drop support for EAPI 6 David Seifert
2024-08-27 21:03 ` [gentoo-dev] [PATCH 00/50] XXXXXX.eclass: drop support for EAPI6 Robin H. Johnson
2024-08-27 21:16 ` Eli Schwartz
2024-08-27 21:36 ` Sam James
2024-08-28 9:45 ` Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240827151553.210835-2-soap@gentoo.org \
--to=soap@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox