I was having trouble updating MacPorts on one of our OSX servers.
Error: org.macports.extract for port gnupg returned: command execution failed Please see the log file for port gnupg for details: /opt/local/var/macports/logs/_Volumes_r4_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_gnupg/gnupg/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
It turns out that version 2.2.0 doesn’t like symlinks to /opt/local that didn’t bother earlier versions. See here. The solution was to edit /opt/local/etc/macports/macports.conf in order to provide the full path everywhere.