From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C36971382C5 for ; Sun, 20 Jun 2021 21:16:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC783E087E; Sun, 20 Jun 2021 21:16:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF595E0878 for ; Sun, 20 Jun 2021 21:16:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDD1434090F for ; Sun, 20 Jun 2021 21:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F01A67C2 for ; Sun, 20 Jun 2021 21:16:14 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1624223737.9c26eb4a1cc5bbb7bd1164b757c2a6fcdf37d85c.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/user-info.eclass X-VCS-Directories: eclass/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 9c26eb4a1cc5bbb7bd1164b757c2a6fcdf37d85c X-VCS-Branch: master Date: Sun, 20 Jun 2021 21:16:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4871ce52-752c-4d01-84f7-11e09c64df1b X-Archives-Hash: fb3ba04b58c9717ab06fdfdfa8806fda commit: 9c26eb4a1cc5bbb7bd1164b757c2a6fcdf37d85c Author: Sam James gentoo org> AuthorDate: Sun Jun 20 21:15:37 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Jun 20 21:15:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c26eb4a user-info.eclass: [QA] add EAPI guard * Declare suppported EAPIs. * Add EAPI guard to prevent newer/older unsupported EAPIs from using this eclass when they've not been tested/eclass isn't adapted for it. Signed-off-by: Sam James gentoo.org> Signed-off-by: David Seifert gentoo.org> eclass/user-info.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/user-info.eclass b/eclass/user-info.eclass index 15e9238ab44..d349fc17476 100644 --- a/eclass/user-info.eclass +++ b/eclass/user-info.eclass @@ -1,12 +1,18 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: user-info.eclass # @MAINTAINER: # base-system@gentoo.org (Linux) # Michał Górny (NetBSD) +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: Read-only access to user and group information +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_USER_INFO_ECLASS} ]]; then _USER_INFO_ECLASS=1