From: Sam James <sam@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: Sam James <sam@gentoo.org>
Subject: [gentoo-dev] [PATCH 42/44] wrapper.eclass: add global-scope ewarn for deprecated < EAPI 7
Date: Sun, 8 Sep 2024 19:16:51 +0100 [thread overview]
Message-ID: <8cb7b0a4464735316dfc7fe7bfbe2d195940a696.1725819413.git.sam@gentoo.org> (raw)
In-Reply-To: <cover.1725819408.git.sam@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/wrapper.eclass | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/eclass/wrapper.eclass b/eclass/wrapper.eclass
index 8d3d273d81c65..a62bb51d0fe71 100644
--- a/eclass/wrapper.eclass
+++ b/eclass/wrapper.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: wrapper.eclass
@@ -7,15 +7,19 @@
# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: create a shell wrapper script
+if [[ -z ${_WRAPPER_ECLASS} ]]; then
+_WRAPPER_ECLASS=1
+
case ${EAPI} in
- 5|6|7|8) ;;
+ 5|6)
+ ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!"
+ ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI."
+ ;;
+ 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-if [[ -z ${_WRAPPER_ECLASS} ]]; then
-_WRAPPER_ECLASS=1
-
-# @FUNCTION: make_wrapper
+# FUNCTION: make_wrapper
# @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath]
# @DESCRIPTION:
# Create a shell wrapper script named wrapper in installpath
--
2.46.0
next prev parent reply other threads:[~2024-09-08 18:29 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-08 18:16 [gentoo-dev] [PATCH 00/44] eclass: add global-scope ewarn for deprecated < EAPI 7 Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 01/44] apache-module.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 02/44] autotools.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 03/44] bash-completion-r1.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 04/44] cdrom.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 05/44] check-reqs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 06/44] depend.apache.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 07/44] desktop.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 08/44] flag-o-matic.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 09/44] fortran-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 10/44] gnuconfig.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 11/44] java-pkg-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 12/44] java-utils-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 13/44] libtool.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 14/44] mono-env.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 15/44] multibuild.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 16/44] multilib-build.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 17/44] multilib.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 18/44] multilib-minimal.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 19/44] multiprocessing.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 20/44] out-of-source-utils.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 21/44] pax-utils.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 22/44] perl-functions.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 23/44] php-pear-r2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 24/44] portability.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 25/44] prefix.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 26/44] preserve-libs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 27/44] readme.gentoo-r1.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 28/44] ruby-fakegem.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 29/44] ruby-ng.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 30/44] ruby-utils.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 31/44] strip-linguas.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 32/44] systemd.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 33/44] tmpfiles.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 34/44] toolchain-funcs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 35/44] udev.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 36/44] vcs-clean.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 37/44] vim-doc.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 38/44] vim-plugin.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 39/44] vim-spell.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 40/44] virtualx.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 41/44] webapp.eclass: " Sam James
2024-09-08 18:16 ` Sam James [this message]
2024-09-08 18:16 ` [gentoo-dev] [PATCH 43/44] xdg.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 44/44] xdg-utils.eclass: " Sam James
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=8cb7b0a4464735316dfc7fe7bfbe2d195940a696.1725819413.git.sam@gentoo.org \
--to=sam@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