current libiconv port gets unnecessary upgrade, fails building

Bryan Blackburn blb at macports.org
Sun Feb 8 19:47:06 PST 2009


On Sun, Feb 08, 2009 at 10:30:02PM -0500, martin krastev said:
> platform: powerpc-apple-darwin8.11.0
> 
> macports libiconv fails at build stage. Possibly garbled makefile:
> 
> $ sudo port -u upgrade libiconv
> Warning: Group file could not be located.
> Warning: Group file could not be located.

This sounds like either your ports tree is incomplete (libiconv uses the new
group muniversal) or your sources.conf wasn't properly upgraded.  Does your
/opt/local/etc/macports/sources.conf file have a line like

rsync://rsync.macports.org/release/ports/ [default]

or is the "[default]" missing?  If missing, add it.

> --->  Fetching libiconv
> --->  Verifying checksum(s) for libiconv
> --->  Extracting libiconv
> --->  Applying patches to libiconv
> --->  Configuring libiconv
> --->  Building libiconv with target all
> 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

What is the output from 'port version'?

> make: [lib/aliases.h] Error 127 (ignored)
> ./genaliases > lib/aliases.gperf 3> canonical.sh 4> canonical_local.sh
> /bin/sh: line 1: ./genaliases: No such file or directory
> make: *** [lib/aliases.h] Error 127
> 
> Error: Unable to upgrade port: 1
> 
> The peculiar thing is that the reported sync'ed port version is 1.12,
> and so is the actual installed version, but an upgrade is still
> attempted:
> 
> $ port list installed
> ..
> libiconv                       @1.12           textproc/libiconv

Better is to use 'port installed libiconv' which will tell you the actual
version; 'list installed' will only confuse you.

> 
> $ port list all
> ..
> libiconv                       @1.12           textproc/libiconv

You can also use 'port info libiconv' for details on just that one port.

Bryan



More information about the macports-dev mailing list