Gentoo Archives: gentoo-dev

From: Joonas Niilola <juippis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] [committed] edo.eclass: update eclassdoc to clarify purpose
Date: Mon, 18 Apr 2022 18:09:06
Message-Id: 4f058228-0d93-aaf0-9bfa-aa5f87e61ff5@gentoo.org
In Reply to: [gentoo-dev] [PATCH] [committed] edo.eclass: update eclassdoc to clarify purpose by Sam James
1 On 18.4.2022 20.59, Sam James wrote:
2 > Signed-off-by: Sam James <sam@g.o>
3 > ---
4 > eclass/edo.eclass | 7 +++++--
5 > 1 file changed, 5 insertions(+), 2 deletions(-)
6 >
7 > diff --git a/eclass/edo.eclass b/eclass/edo.eclass
8 > index 550d6770cb63..c2e7ed60083f 100644
9 > --- a/eclass/edo.eclass
10 > +++ b/eclass/edo.eclass
11 > @@ -10,9 +10,12 @@
12 > # @BLURB: Convenience function to run commands verbosely and die on failure
13 > # @DESCRIPTION:
14 > # This eclass provides the 'edo' command, and an 'edob' variant for ebegin/eend,
15 > -# which dies (exits) on failure and logs the command used verbosely.
16 > +# which logs the command used verbosely and dies (exits) on failure.
17 > #
18 > -
19 > +# This eclass should be used only where needed to give a more verbose log, e.g.
20 > +# for invoking non-standard ./configure scripts, or building objects/binaries
21 > +# directly within ebuilds via compiler invocations. It is NOT to be used
22 > +# in place of generic 'command || die' where verbosity is unnecessary.
23 > case ${EAPI} in
24 > 7|8) ;;
25 > *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
26
27 Thanks for this clarification, had me wondering.
28
29 -- juippis

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature