I have a standard set I install after uninstalling everything (that way, old dependencies like dependencies on older python versions for instance aren’t carried over for ever).
When I just did my full clean/install cycle, I got: ---> Fetching archive for libcxx ---> Attempting to fetch libcxx-5.0.1_5.any_any.noarch.tbz2 from https://packages.macports.org/libcxx ---> Attempting to fetch libcxx-5.0.1_5.any_any.noarch.tbz2.rmd160 from https://packages.macports.org/libcxx ---> Installing libcxx @5.0.1_5 ---> Activating libcxx @5.0.1_5 Error: Failed to activate libcxx: Image error: /opt/local/share/doc/libcxx/README.txt already exists and does not belong to a registered port. Unable to activate port libcxx. Use 'port -f activate libcxx' to force the activation. while executing "throw registry::image-error $msg" ("foreach" body line 79) invoked from within "foreach file $imagefiles { incr progress_step _progress update $progress_step $progress_total_steps se..." invoked from within "registry::write { foreach file $imagefiles { incr progress_step _progress update $progress_step $progress_..." Error: See /opt/local/var/macports/logs/_Users_gerben_MacPortsDev_macports-ports_lang_libcxx/libcxx/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port putty failed It turns out, that after a complete uninstall (port uninstall installed) not everything is removed. Here is what I found from past incomplete uninstalls: # ls /opt/local/share/doc/* /opt/local/share/doc/cmake: Copyright.txt cmlibrhash cmsys /opt/local/share/doc/db48: api_reference /opt/local/share/doc/libcxx: README.txt /opt/local/share/doc/minio: LICENSE NOTICE README.md /opt/local/share/doc/mono: COPYING.LIB NEWS README.md /opt/local/share/doc/py311-libxml2: README /opt/local/share/doc/py311-markupsafe: CHANGES.rst LICENSE.rst README.rst To protect myself against this, I have turned my uninstall to: sudo port -f uninstall installed # These leftovers may fail activation of a port (does so for cxx) sudo rm -rf /opt/local/share/doc/* sudo port -N reclaim #sudo rm -rf /opt/local/Library/Frameworks/Python* # leftover kills reinstall As you can see from the last line I ran into something comparable earlier. G
