First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 217444
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Fabio Rossi <rossi.f@inwind.it>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ebuild.sh.patch ebuild.sh.patch patch Fabio Rossi 2008-04-12 18:50 0000 354 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217444 depends on: Show dependency tree
Bug 217444 blocks: 216231
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: 2008-04-12 18:50 0000
The user envvar ECLASS_DEBUG_OUTPUT=on is used to redirect the debug-print()
output also to the standard output thanks to the echo command.

What happens if a function calls debug-print() and then returns a string value?
Here is a code snippet:

<<< cut here >>>

function()
{
  debug-print-function ${FUNCNAME} $*

  ...

  echo $result
}

str="String construction thanks to $(function)"

<<< cut here >>>

In this case the debug output is mixed with the real result of the function.
I'm proposing a simple patch to solve the problem redirecting the offending
debug-print() output to the standard error.

------- Comment #1 From Fabio Rossi 2008-04-12 18:50:56 0000 -------
Created an attachment (id=149494) [details]
ebuild.sh.patch

------- Comment #2 From Zac Medico 2008-04-13 04:33:18 0000 -------
Thanks, this is fixed in 2.1.5_rc3.

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