[MacPorts] #61191: port deactivate fails, mentions nonexistent logfile

MacPorts noreply at macports.org
Sat Oct 21 09:57:55 UTC 2023


#61191: port deactivate fails, mentions nonexistent logfile
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.6.3
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------

Comment (by jmroot):

 Replying to [ticket:61191 ryandesign]:
 > {{{
 > Error: Failed to deactivate texlive-fonts-recommended: command execution
 failed
 > Error: See /opt/local/var/macports/logs
 /_opt_local_var_macports_registry_portfiles_texlive-fonts-recommended-
 49603_0_d9fd3e4e6c7652714742c60058f8bc50cd31db9805d96a37c2664bf8493a48e2-2195
 /texlive-fonts-recommended/main.log for details.
 > Warning: Failed to execute portfile from registry for texlive-fonts-
 recommended @49603_0+doc
 > }}}
 This is `registry::run_target` failing here: https://github.com/macports
 /macports-base/blob/v2.8.1/src/port/port.tcl#L3269

 Usually that means there was an error in a pre- or post-deactivate block.
 When running the target on the Portfile fails, the port is deactivated
 with a direct registry call instead (which of course doesn't run the pre-
 or post-deactivate blocks, which is why it isn't the preferred method.)

 The lack of a log is likely due to the fact that the final step after
 uninstalling a port is to clean it. Enabling `keeplogs` may prevent this.

-- 
Ticket URL: <https://trac.macports.org/ticket/61191#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list