Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12102 - main/branches/2.1.6/pym/portage
Date: Wed, 26 Nov 2008 18:33:30
Message-Id: E1L5PCb-0003K4-75@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-11-26 18:33:28 +0000 (Wed, 26 Nov 2008)
3 New Revision: 12102
4
5 Modified:
6 main/branches/2.1.6/pym/portage/__init__.py
7 Log:
8 Add some more clarification to the 'ebuild phase exited unexpectedly' message.
9 (trunk r12101)
10
11
12 Modified: main/branches/2.1.6/pym/portage/__init__.py
13 ===================================================================
14 --- main/branches/2.1.6/pym/portage/__init__.py 2008-11-26 18:29:20 UTC (rev 12101)
15 +++ main/branches/2.1.6/pym/portage/__init__.py 2008-11-26 18:33:28 UTC (rev 12102)
16 @@ -5132,9 +5132,20 @@
17 "is known to be triggered " + \
18 "by things such as failed variable " + \
19 "assignments (bug #190128) or bad substitution " + \
20 - "errors (bug #200313). This behavior may also be " + \
21 - "triggered by a corrupt bash binary or a hardware " + \
22 - "problem such as memory or cpu malfunction."
23 + "errors (bug #200313). Normally, before exiting, bash should " + \
24 + "have displayed an error message above. If bash did not " + \
25 + "produce an error message above, it's possible " + \
26 + "that the ebuild has called `exit` when it " + \
27 + "should have called `die` instead. This behavior may also " + \
28 + "be triggered by a corrupt bash binary or a hardware " + \
29 + "problem such as memory or cpu malfunction. If the problem is not " + \
30 + "reproducible or it appears to occur randomly, then it is likely " + \
31 + "to be triggered by a hardware problem. " + \
32 + "If you suspect a hardware problem then you should " + \
33 + "try some basic hardware diagnostics such as memtest. " + \
34 + "Please do not report this as a bug unless it is consistently " + \
35 + "reproducible and you are sure that your bash binary and hardware " + \
36 + "are functioning properly."
37 return msg
38
39 def _doebuild_exit_status_check_and_log(settings, mydo, retval):