macports error reporting, stack traces
Joshua Root
jmr at macports.org
Mon Nov 9 04:03:12 PST 2009
On 2009-11-9 14:13, Jordan K. Hubbard wrote:
> On Nov 8, 2009, at 10:03 AM, Jeremy Lavergne wrote:
>
>> Should we add the typical steps for producing debug error logs to the output of the standard trace during a failure?
>
> That certainly sounds like something that should be documented, though one would almost wish to then render that documentation obsolete by dumping debug output on error. In other words, ui_debug would always generate debug information, the Debug flag merely indicating what the output fd was. If not set, it's set to some temporary file which has already been unlinked (the open, unlink truck) but has a fd that can be rewound and copied to stderr on error, and if it's set then the fd points directly to stderr. Whatever routine catches errors for a port build would be responsible for dumping the error log. Sounds like an excellent Tcl / MacPorts base beginner's project. :)
That is exactly what the gsoc09-logging branch does.
- Josh
More information about the macports-dev
mailing list