Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/error-handling/
Date: Sat, 06 May 2017 22:49:26
Message-Id: 1494110800.e2d15f91cfb5fc3d7773ee70dc8675b78e6500ca.gokturk@gentoo
1 commit: e2d15f91cfb5fc3d7773ee70dc8675b78e6500ca
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 27 23:07:35 2017 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Sat May 6 22:46:40 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e2d15f91
7
8 ebuild-writing/error-handling: improve ebuild and eclass failure behavior
9
10 Instead of explaining the EAPI<=4 die behavior initially, explain the
11 default behavior for the later EAPIs first. Remove the
12 portage-specific bits from the paragraph.
13
14 Reported-By: Benda Xu <heroxbd <AT> gentoo.org>
15
16 ebuild-writing/error-handling/text.xml | 9 ++++-----
17 1 file changed, 4 insertions(+), 5 deletions(-)
18
19 diff --git a/ebuild-writing/error-handling/text.xml b/ebuild-writing/error-handling/text.xml
20 index 40b8b5b..da9e88d 100644
21 --- a/ebuild-writing/error-handling/text.xml
22 +++ b/ebuild-writing/error-handling/text.xml
23 @@ -47,11 +47,10 @@ function can die in multiple places.
24 </p>
25
26 <p>
27 -Some portage-provided functions will automatically die upon failure. Others will
28 -not. It is for example safe to omit the <c>|| die</c> after a call to <c>epatch</c>,
29 -but not <c>emake</c>. The reason is that external binaries are not able to call
30 -die that is a bash function. You can see what commands are external binaries
31 -with <c>ls /usr/lib*/portage/bin/ebuild-helpers</c>. In <uri link="::ebuild-writing/eapi/#eapi=4">EAPI>=4</uri> all ebuild-helpers automatically die upon failure.
32 +Ebuild helpers from EAPI 4 and onwards automatically die on
33 +failure. Some eclass-provided functions will automatically die upon
34 +failure, others will not. Developers should check the
35 +<uri link="::eclass-reference/">eclass reference</uri> when in doubt.
36 </p>
37
38 <p>