macports error

While trying to update the installed progs, I got errors like:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/work/libiconv-1.12" && make CC= -f Makefile.devel && make all " returned error 2
Command output: O lib/genaliases.c -o genaliases
make: O: Command not found
make: [lib/aliases.h] Error 127 (ignored)
./genaliases > lib/aliases.gperf 3> canonical.sh 4> canonical_local.sh
/bin/sh: ./genaliases: No such file or directory
make: *** [lib/aliases.h] Error 127

The reason was that I was using an old macports version, 1.6.0 instead of 1.7.0. A supo port selfupdate fixed the problem. I hope that in the future macports will be upgradable through normal upgrades like gentoo’s portage and debian’s apt-get tools do so we don’t need to “selfupdate” every once in a while…