[MacPorts] #23626: Logging: Useless log file on failed activate during upgrade

MacPorts noreply at macports.org
Tue Feb 9 15:57:39 PST 2010


#23626: Logging: Useless log file on failed activate during upgrade
---------------------------------+------------------------------------------
 Reporter:  raimue@…             |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:  MacPorts 1.9.0                       
Component:  ports                |     Version:  1.8.99                               
 Keywords:  logging log          |        Port:                                       
---------------------------------+------------------------------------------
 In a special case the logging procedure writes a useless log file. Here a
 port has to be activated in order to build a dependent port. But the
 activation fails and results in a useless, self-referencing log file.

 The following example is a demonstration of the bug in the wild:

 {{{
 $ port -v outdated py26-docutils
 The following installed ports are outdated:
 py26-docutils                  0.5_1 < 0.6_0
 $ port -v installed py26-roman
 The following ports are currently installed:
   py26-roman @1.4.0_0
 $ sudo port upgrade py26-docutils
 --->  Computing dependencies for py26-docutils
 --->  Activating py26-roman @1.4.0_0
 Log for py26-roman is at:
 /opt/local/var/macports/logs/_Users_raim_src_macports_trunk_dports_python_py26-roman/main.log
 Error: The following dependencies failed to build: py26-roman
 Error: Unable to upgrade port: 1
 To report a bug, see <http://guide.macports.org/#project.tickets>
 }}}

 The resulting log file:
 {{{
 $ port log py26-roman
 --->  Activating py26-roman @1.4.0_0
 Log for py26-roman is at:
 /opt/local/var/macports/logs/_Users_raim_src_macports_trunk_dports_python_py26-roman/main.log
 }}}

 {{{
 $ cat
 /opt/local/var/macports/logs/_Users_raim_src_macports_trunk_dports_python_py26-roman/main.log
 version:1
 :msg:main --->  Activating py26-roman @1.4.0_0
 :msg:main Log for py26-roman is at:
 /opt/local/var/macports/logs/_Users_raim_src_macports_trunk_dports_python_py26-roman/main.log
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/23626>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list