First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 146807
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Peter Volkov <pva@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
java-utils-2.eclass-subshells.patch proposed patch patch Vlastimil Babka (Caster) 2006-09-08 04:50 0000 3.97 KB Details | Diff
java-utils-2.eclass-subshells.patch updated patch patch Vlastimil Babka (Caster) 2006-09-12 06:59 0000 4.06 KB Details | Diff
java-utils-2.eclass-subshells.patch even more updated patch patch Vlastimil Babka (Caster) 2006-09-12 15:29 0000 4.23 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 146807 depends on: Show dependency tree
Bug 146807 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-08 01:07 0000
Hello.

Opening new bug, as requested.

I have not checked other java eclasses but at least inside java-utils-2 eclass 
die is calling in subshell, and the result is that the process actually does
not die but stay alive. See bug 145679 for example output. See (about die and
subshell):
http://devmanual.gentoo.org/ebuild-writing/error-handling/index.html

TIA

------- Comment #1 From Vlastimil Babka (Caster) 2006-09-08 04:50:53 0000 -------
Created an attachment (id=96383) [details]
proposed patch

* failure on depend-java-query for getting the GENTOO_VM is detected and dies
earlier, because depend-java-query sux, it has to test result to be empty or ==
"None"
* java-pkg_javac-args doesn't die, it echoes error as output and returns 1,
stuff using it checks return value
* the same with java-pkg_get-javac

and a bonus:
* ejavac() doesn't default to javac anymore, but calls java-pkg_get-javac, call
to java-pkg_init-compiler_ is moved from get-javac to ejavac so the einfo isn't
echoing in subshell

------- Comment #2 From Josh Nichols (RETIRED) 2006-09-10 21:53:01 0000 -------
Patch looks reasonable. Only thing I would change is:

-[[ ${?} ]] || die "java-pkg_javac-args failed"
+[[ ${?} != 0 ]] && die "java-pkg_javac-args failed"

Nothing wrong with it, as in, it works, but IMO, this is a bit clearer.

------- Comment #3 From Vlastimil Babka (Caster) 2006-09-12 06:59:05 0000 -------
Created an attachment (id=96790) [details]
updated patch

Updated to apply to current eclass. The tests nichoj didn't like changed to
full if construct to give better error output.

------- Comment #4 From Vlastimil Babka (Caster) 2006-09-12 15:29:39 0000 -------
Created an attachment (id=96838) [details]
even more updated patch

eerrors extended to tell what failed

I'm now using the patch extensively.

------- Comment #5 From Vlastimil Babka (Caster) 2006-09-27 06:09:45 0000 -------
How bout teh commit?

------- Comment #6 From Vlastimil Babka (Caster) 2006-09-27 14:36:23 0000 -------
After nichoj's permission, it's in CVS :)

First Last Prev Next    No search results available      Search page      Enter new bug