Help with "port upgrade outdated" errors

Achilles Vassilicos avassilicos at vortexcoreco.com
Tue Jan 8 12:17:43 PST 2013


On 1/8/13 2:15 PM, Ryan Schmidt wrote:
> 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
>
>
>
Thanks. The first 2 steps worked OK but I run into another problem when 
attempting to install:

sudo port install g95
Error: The installed version of Xcode (2.0orlower) is too old to use on 
the installed OS version. Version 4.1 or later is recommended on Mac OS 
X 10.8.
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port g95 failed

What's happening is that I had an older version of Xcode installed 
before installing Xcode 4.5.2 after upgrading to Mountain Lion from Snow 
Leopard. I did a

sudo /Developer/Library/uninstall-devtools –mode=all

which removed the uninstall-devtools script, but it does not seem to 
have cleaned everything. Where might be remnants of the old Xcode that 
may need to be cleaned manually?

BTW, after uninstalling the old Xcode with the above command, the commands

sudo port -v selfupdate
sudo port upgrade outdated

worked and have seemed to find Xcode 4.5.2.



More information about the macports-users mailing list