[MacPorts] #18719: port should keep debug output when an action ends in error
#18719: port should keep debug output when an action ends in error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: debug log | Port: ------------------------------+--------------------------------------------- Currently, if someone runs a command without debug/verbose (eg, {{{sudo port install python26}}}), and it runs into an error, port will only print a limited number of lines. Quite frequently the key line causing the issue is further back than what port keeps. Will attach some patches which attempt to keep all debug output in a temp file, which is deleted when port is successful, but when port fails, it tells the user to see that log file. One issue is that the exit status will be 0 even on error unless you use -x, which is ticket #13918. Note also that the macports.tcl patch simplifies the default ui_init some and actually fixes it for multiple channels (which appears to not be used as it doesn't work currently). -- Ticket URL: <http://trac.macports.org/ticket/18719> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18719: port should keep debug output when an action ends in error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: debug log | Port: ------------------------------+--------------------------------------------- Comment(by blb@…): (updated port.tcl.diff to not have issues if a command is run which never generates a debug log) -- Ticket URL: <http://trac.macports.org/ticket/18719#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18719: port should keep debug output when an action ends in error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: debug log | Port: ------------------------------+--------------------------------------------- Comment(by blb@…): After a few days use, the biggest issue with this is Ctrl-C, since that keeps the log around without saying anything; at least in /tmp it's cleaned on reboots. -- Ticket URL: <http://trac.macports.org/ticket/18719#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18719: port should keep debug output when an action ends in error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: debug log | Port: ------------------------------+--------------------------------------------- Changes (by jmr@…): * cc: enl@… (added) Comment: Is it appropriate for this to be targeted at 1.8? How much does enl's work overlap with or supersede these patches? -- Ticket URL: <http://trac.macports.org/ticket/18719#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18719: port should keep debug output when an action ends in error -------------------------------+-------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.7.0 Resolution: wontfix | Keywords: debug log Port: | -------------------------------+-------------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => wontfix * milestone: MacPorts 1.8.0 => Comment: Nah, this can actually be closed in favor of enl's work, since this was just a quick method to at least get something available quickly to avoid "please use -d"... -- Ticket URL: <http://trac.macports.org/ticket/18719#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts