From 601b1d1b9305e2e272421e30644d7c5120a1bbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Wed, 17 Dec 2025 16:29:57 +0100 Subject: [PATCH 1/2] optfeature.eclass: Support EAPI 9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- eclass/optfeature.eclass | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eclass/optfeature.eclass b/eclass/optfeature.eclass index b82ac893adddf..b415aee02c6d3 100644 --- a/eclass/optfeature.eclass +++ b/eclass/optfeature.eclass @@ -4,17 +4,17 @@ # @ECLASS: optfeature.eclass # @MAINTAINER: # base-system@gentoo.org -# @SUPPORTED_EAPIS: 7 8 +# @SUPPORTED_EAPIS: 7 8 9 # @BLURB: Advertise optional functionality that might be useful to users -case ${EAPI} in - 7|8) ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; -esac - if [[ -z ${_OPTFEATURE_ECLASS} ]]; then _OPTFEATURE_ECLASS=1 +case ${EAPI} in + 7|8|9) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + # @ECLASS_VARIABLE: _OPTFEATURE_DEFAULT_HEADER # @INTERNAL # @DESCRIPTION: From 2cf5ebcf2515570230f7d2c2c6be5e2ccffe4b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Thu, 2 Jul 2026 19:49:11 +0200 Subject: [PATCH 2/2] skel.ebuild: Update EAPI 8 -> 9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a comment that packages in the upgrade path should not use an EAPI newer than that of Portage. Signed-off-by: Ulrich Müller --- skel.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skel.ebuild b/skel.ebuild index 03b5608d67363..9cf35bd1c23c0 100644 --- a/skel.ebuild +++ b/skel.ebuild @@ -11,7 +11,9 @@ # The PMS contains specifications for all EAPIs. Eclasses will test for this # variable if they need to use features that are not universal in all EAPIs. # If an eclass doesn't support latest EAPI, use the previous EAPI instead. -EAPI=8 +# If your package is a (direct or indirect) dependency of Portage, use the +# same EAPI as the latest Portage version. +EAPI=9 # inherit lists eclasses to inherit functions from. For example, an ebuild