Appbead Blog

Upgrade Outdated Ports Failed: Dependency p5.12-xml-parser not found

Updated: May 16, 2013

ERROR #1

I'm not able to upgrade the outdated packages of MacPorts, it has been a couple of months ago ( from MacPorts 1.9.2 or earlier). Today, even after update MacPorts to version 2.0.1, the same problem still persists.

Mac OS X version: 10.6.8

~$ sudo port selfupdate
~$ sudo port upgrade -d outdated
Warning: No port p5.12-xml-parser found in the index.
Warning: No port p5.12-getopt-long found in the index.
Warning: No port p5.12-pathtools found in the index.
Warning: No port p5.12-scalar-list-utils found in the index.
--->  Computing dependencies for intltool
Error: Dependency 'p5.12-xml-parser' not found.
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

Trying to resolve the dependencies by:

~$ sudo port upgrade p5-xml-parser +universal
--->  p5-xml-parser is replaced by p5.12-xml-parser
Error: No port p5.12-xml-parser found.
To report a bug, see <http://guide.macports.org/#project.tickets>

After some searching, found the problems may be relative to the packages of Perl.

~$ port installed perl*
The following ports are currently installed:
  perl5 @5.8.9_0
  perl5 @5.12.3_1+perl5_12 (active)
  perl5.8 @5.8.9_3
  perl5.8 @5.8.9_4 (active)
  perl5.12 @5.12.3_1 (active)

However, perl5.12 is active.

Fix It!

Very occasionally, I found the ports supports conditional statements and pseudo-portnames. If combined with a wildcard character, then ......

~$ sudo port upgrade installed and \( p5* \)
--->  p5-app-ack is replaced by p5.12-app-ack
--->  Computing dependencies for p5.12-file-next
--->  Fetching archive for p5.12-file-next
... ...
~$ sudo port upgrade -d outdated
--->  Computing dependencies for intltool
--->  Fetching archive for intltool
... ...

OK!

ERROR #2

--->  Attempting to fetch virtualenvwrapper_sh.diff from http://svn.macports.org/repository/macports/distfiles/py26-virtualenvwrapper
Error: Target org.macports.fetch returned: fetch failed
Log for py26-virtualenvwrapper is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-virtualenvwrapper/py26-virtualenvwrapper/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

Found the solution at https://trac.macports.org/ticket/29504, see comments from John-Whitlock.

After download and place the files to proper path, then

$ sudo port upgrade -d outdated

Updated: May 16, 2013 misc MacPorts

Comments