| Summary: | =dev-java/matrix-toolkits-java-0.9.12: java-utils-2.eclass: line 294: USE: readonly variable | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
| Component: | Eclasses | Assignee: | Java team <java> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Martin Mokrejš
2015-05-22 08:37:27 UTC
Confirmed.
Bash ain't lyin'. The offending line of code from the eclass is here:
depend-java-query() {
# Used to have a which call here but it caused endless loops for some people
# that had some weird bashrc voodoo for which.
USE="${USE}" /usr/bin/depend-java-query "${@}"
}
Well, that's embarrassing.
If I change the above to:
depend-java-query() {
# Used to have a which call here but it caused endless loops for some people
# that had some weird bashrc voodoo for which.
(
export USE
/usr/bin/depend-java-query "${@}"
)
}
I believe the eclass author's intentions are more-or-less realized without any error message from bash. Offhand, I can't think of any non-ridiculous way to achieve this without a sub-shell.
I already fixed this before it was brought to my attention. The wrapper function isn't needed any more. |