Opened 4 years ago
Last modified 13 months ago
#61191 new defect
port deactivate fails, mentions nonexistent logfile
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.6.3 |
Keywords: | Cc: | ||
Port: |
Description
Deactivating a port sometimes "fails" (it says it failed, but it was successfully deactivated). When this happens, it tells me to consult a log file, but the log file doesn't exist.
bash-3.2$ sudo port uninstall texlive-fonts-recommended texlive-latex-extra texlive-plain ---> Deactivating texlive-fonts-recommended @49603_0+doc 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 ---> Uninstalling texlive-fonts-recommended @49603_0+doc ---> Cleaning texlive-fonts-recommended ---> Deactivating texlive-latex-extra @50885_0+doc Error: Failed to deactivate texlive-latex-extra: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-latex-extra-50885_0_4b3dfd65558d8dd34292f7eacdb3fb4415cd343a3eb42593e6bd9a39b19fe362-1833/texlive-latex-extra/main.log for details. Warning: Failed to execute portfile from registry for texlive-latex-extra @50885_0+doc ---> Uninstalling texlive-latex-extra @50885_0+doc ---> Cleaning texlive-latex-extra ---> Deactivating texlive-plain-generic @50884_0+doc Error: Failed to deactivate texlive-plain-generic: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-plain-generic-50884_0_1cbcf696775e0d90a80bb12b6cc92b6c3ff4aa059463b5f5fe7067398497d8ac-1396/texlive-plain-generic/main.log for details. Warning: Failed to execute portfile from registry for texlive-plain-generic @50884_0+doc ---> Uninstalling texlive-plain-generic @50884_0+doc ---> Cleaning texlive-plain-generic bash-3.2$ cat /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-fonts-recommended-49603_0_d9fd3e4e6c7652714742c60058f8bc50cd31db9805d96a37c2664bf8493a48e2-2195/texlive-fonts-recommended/main.log cat: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-fonts-recommended-49603_0_d9fd3e4e6c7652714742c60058f8bc50cd31db9805d96a37c2664bf8493a48e2-2195/texlive-fonts-recommended/main.log: No such file or directory bash-3.2$ cat /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-latex-extra-50885_0_4b3dfd65558d8dd34292f7eacdb3fb4415cd343a3eb42593e6bd9a39b19fe362-1833/texlive-latex-extra/main.log cat: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-latex-extra-50885_0_4b3dfd65558d8dd34292f7eacdb3fb4415cd343a3eb42593e6bd9a39b19fe362-1833/texlive-latex-extra/main.log: No such file or directory bash-3.2$ cat /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-plain-generic-50884_0_1cbcf696775e0d90a80bb12b6cc92b6c3ff4aa059463b5f5fe7067398497d8ac-1396/texlive-plain-generic/main.log cat: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_texlive-plain-generic-50884_0_1cbcf696775e0d90a80bb12b6cc92b6c3ff4aa059463b5f5fe7067398497d8ac-1396/texlive-plain-generic/main.log: No such file or directory bash-3.2$ ls -l /opt/local/var/macports/logs/ total 0 drwxr-xr-x 3 root admin 102 Dec 15 2017 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb drwxr-xr-x 3 root admin 102 Jul 24 2018 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_autogen drwxr-xr-x 3 root admin 102 Jun 1 2018 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_folly drwxr-xr-x 3 root admin 102 Jan 31 2018 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_textmate2 drwxr-xr-x 3 root admin 102 Apr 6 2019 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_poppler drwxr-xr-x 3 root admin 102 May 25 2018 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-protobuf3 drwxr-xr-x 3 root admin 102 Jan 28 2018 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_alliance bash-3.2$
This was on Yosemite, in case it matters.
Note: See
TracTickets for help on using
tickets.
Replying to ryandesign:
This is
registry::run_target
failing here: https://github.com/macports/macports-base/blob/v2.8.1/src/port/port.tcl#L3269Usually 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.