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 89ED71382C5 for ; Thu, 1 Apr 2021 10:02:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A541FE0B46; Thu, 1 Apr 2021 10:02:21 +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 6766DE0AFB for ; Thu, 1 Apr 2021 10:02:21 +0000 (UTC) From: Andreas Sturmlechner To: gentoo-dev@lists.gentoo.org, Sergei Trofimovich Subject: Re: [gentoo-dev] [PATCH v2 5/5] flag-o-matic.eclass: get rid of eutils in In-Reply-To: <6603455.9J7NaK4W3v@tuxbook> References: <5252907.rdbgypaU67@tuxbook> <3350735.dWV9SEqChM@tuxbook> <6603455.9J7NaK4W3v@tuxbook> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4128040.UPlyArG6xL"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Archives-Salt: ae58fbc5-a5a2-4190-ae47-c79b042cdf84 X-Archives-Hash: 2fca9ef03580619994a6099cdca5173c --nextPart4128040.UPlyArG6xL Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Andreas Sturmlechner To: gentoo-dev@lists.gentoo.org, Sergei Trofimovich Subject: Re: [gentoo-dev] [PATCH v2 5/5] flag-o-matic.eclass: get rid of eutils in In-Reply-To: <6603455.9J7NaK4W3v@tuxbook> References: <5252907.rdbgypaU67@tuxbook> <3350735.dWV9SEqChM@tuxbook> <6603455.9J7NaK4W3v@tuxbook> >From af002023d6b8f9a9e51fc31c8c25d48012e35ddf Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 28 Mar 2021 15:04:50 +0200 Subject: [PATCH 5/5] flag-o-matic.eclass: Fix eclassdoc Signed-off-by: Andreas Sturmlechner --- eclass/flag-o-matic.eclass | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index a35f0bef269..6e7582c4643 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -21,6 +21,8 @@ case ${EAPI} in *) die "EAPI ${EAPI} is not supported by flag-o-matic.eclass." ;; esac +# @FUNCTION: all-flag-vars +# @DESCRIPTION: # Return all the flag variables that our high level funcs operate on. all-flag-vars() { echo {ADA,C,CPP,CXX,CCAS,F,FC,LD}FLAGS @@ -108,7 +110,10 @@ _setup-allowed-flags() { ) } -# inverted filters for hardened compiler. This is trying to unpick +# @FUNCTION: _filter-hardened +# @INTERNAL +# @DESCRIPTION: +# Inverted filters for hardened compiler. This is trying to unpick # the hardened compiler defaults. _filter-hardened() { local f @@ -142,6 +147,9 @@ _filter-hardened() { done } +# @FUNCTION: _filter-var +# @INTERNAL +# @DESCRIPTION: # Remove occurrences of strings from variable given in $1 # Strings removed are matched as globs, so for example # '-O*' would remove -O1, -O2 etc. @@ -334,6 +342,11 @@ replace-cpu-flags() { return 0 } +# @FUNCTION: _is_flagq +# @USAGE: +# @INTERNAL +# @DESCRIPTION: +# Returns shell true if is in a given , else returns shell false. _is_flagq() { local x var="$1[*]" for x in ${!var} ; do -- 2.31.0 --nextPart4128040.UPlyArG6xL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEE/x0UfMgLbk/MiQ+AUIqgAODug+AFAmBlmidfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZG MUQxNDdDQzgwQjZFNEZDQzg5MEY4MDUwOEFBMDAwRTBFRTgzRTAACgkQUIqgAODu g+ARlgf/fZQ9lrEWHlsHkJ+GCawOSg025CJMkndZkke1l0iCF8khy52sc77FR0ta JMaGj3CZVJQRooAc7416+SGAdihjfnlM5SkiDPx6f8ReID+is9GYBC9RorkTxslE 4Gpnv6opvzUljdJLEk+pBRiCxCNdQImq+n+WYc5bRQsiy827OHJheU3xikxxNOmV cuGxFivghSMWyjkqM1ZX6md4pu81os7+AWqM5QYwmhrnj4jHi9P/rTCRZOyky8rc BQn1iI2h8idJFfXat97V/NT/BamE7W3Gtv70wqMTuQ6QGgCqNKqMmpPEfo3K3aY4 ZQ6Aem5O5a44YgIe9TDp/ySdgMXDDg== =jkbY -----END PGP SIGNATURE----- --nextPart4128040.UPlyArG6xL--