Help with "port upgrade outdated" errors

Ryan Schmidt ryandesign at macports.org
Tue Jan 8 11:15:41 PST 2013


On Jan 8, 2013, at 11:54, Achilles Vassilicos wrote:

> During execution of "sudo port upgrade outdeted" I encountered error messages shown at the end. Specifically:
> 
> 1. Errors with various versions of docbook-xml

> --->  Activating docbook-xml-4.2 @5.0_1
> Error: org.macports.activate for port docbook-xml-4.2 returned: command execution failed
> Please see the log file for port docbook-xml-4.2 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.2/main.log
> 
> --->  Activating docbook-xml-4.1.2 @5.0_1
> Error: org.macports.activate for port docbook-xml-4.1.2 returned: command execution failed
> Please see the log file for port docbook-xml-4.1.2 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.1.2/main.log
> 
> --->  Activating docbook-xml-4.3 @5.0_1
> Error: org.macports.activate for port docbook-xml-4.3 returned: command execution failed
> Please see the log file for port docbook-xml-4.3 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.3/main.log
> 
> --->  Activating docbook-xml-4.4 @5.0_1
> Error: org.macports.activate for port docbook-xml-4.4 returned: command execution failed
> Please see the log file for port docbook-xml-4.4 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.4/main.log
> 
> --->  Activating docbook-xml-4.5 @5.0_1
> Error: org.macports.activate for port docbook-xml-4.5 returned: command execution failed
> Please see the log file for port docbook-xml-4.5 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.5/main.log
> 
> --->  Activating docbook-xml-5.0 @5.0_1
> Error: org.macports.activate for port docbook-xml-5.0 returned: command execution failed
> Please see the log file for port docbook-xml-5.0 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-5.0/main.log

> :debug:activate Executing proc-post-org.macports.activate-activate-0
> :info:activate xmlcatmgr: entry already exists for `/opt/local/share/xml/docbook/4.1.2/catalog.xml' of type `nextCatalog'
> :info:activate Command failed: xmlcatmgr -c /opt/local/etc/xml/catalog add nextCatalog /opt/local/share/xml/docbook/4.1.2/catalog.xml
> :info:activate Exit code: 1
> :error:activate org.macports.activate for port docbook-xml-4.1.2 returned: command execution failed
> :debug:activate Error code: NONE
> :debug:activate Backtrace: command execution failed
>    while executing
> "$post $targetname"
> :notice:activate Please see the log file for port docbook-xml-4.1.2 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_textproc_docbook-xml/docbook-xml-4.1.2/main.log

I've seen errors sometimes when activating docbook-xml ports as well. These ports maintain a catalog (/opt/local/etc/xml/catalog) which perhaps becomes corrupted or out of sync with reality? I'm not exactly sure, but I suggest you forcibly uninstall all docbook-xml ports, then reinstall them. Hopefully that will regenerate the catalog properly; IIRC that's what fixed it for me.

sudo port -f uninstall installed and name:docbook-xml
sudo port clean name:docbook-xml
sudo port install docbook-xml


> 2. Error with gcc42 telling me to uninstall and reinstall  g95
> 
> I don't know how to proceed.
> 
> I am running OS X 10.8.2 and Xcode 4.5.2.  Any help would be greatly appreciated.
> Thanks - Achilles

> Error: Unable to open port: gcc42 variant has been deprecated. Uninstall g95 and reinstall.

You have g95 installed with the +gcc42 variant, but that variant no longer does anything; it existed before to allow you to choose between gcc40 and gcc42, but the choice of using gcc40 has been removed, and the port now always uses gcc42.

You should do what the error message says, and uninstall g95 and then reinstall it.

sudo port -f uninstall g95
sudo port clean g95
sudo port install g95

I've asked the maintainer of the port why this error message exists; it doesn't seem to me that it needs to:

http://lists.macosforge.org/pipermail/macports-dev/2013-January/021471.html



More information about the macports-users mailing list