PortIndex failing for a few ports due to hdf5 not active

David Strubbe dstrubbe at macports.org
Thu Nov 19 20:15:13 PST 2015

Yes this was due to a mistake in r142662, now fixed.

However, it is also due to the fact that cdo and ncarg seem to need hdf5
but do not declare it as a dependency.

Additionally, cdo, ncarg, and hdfeos5 all use the mpi portgroup strangely
(e.g. below), in trying to check how hdf5 was installed when parsing the
Portfile. Is one supposed to be able to do this sort of thing?

set v [mpi_active_variant_name bin:h5pcc:hdf5]
if {${v} != "" } {
    depends_build-append    port:yaxt
    configure.cc            ${prefix}/bin/h5pcc

The mpi portgroup has this comment, in mpi.enforce_variant, when the mpi
variants do not match:
                # instead of trying to append to a default variant (which
                # silently for some cases), we should be explicit and tell
                # user about the error
                ui_error "Need to select variant +$otmpi"
which suggests to me that what is being done in these Portfiles may be


On Thu, Nov 19, 2015 at 1:39 PM, Ryan Schmidt <ryandesign at macports.org>

> On Nov 19, 2015, at 11:34 AM, Adam Mercer wrote:
> > When I recently updated a 10.11 machine I noticed the following during
> > a port sync:
> >
> > Creating port index in
> > /opt/local/var/macports/sources/
> rsync.macports.org/release/tarballs/ports
> > Failed to parse file science/cdo/Portfile: Registry error: hdf5 not
> > registered as installed & active.
> > Failed to parse file science/hdfeos5/Portfile: Registry error: hdf5
> > not registered as installed & active.
> > Failed to parse file science/ncarg/Portfile: Registry error: hdf5 not
> > registered as installed & active.
> >
> > Surely generating the PortIndex shouldn't require that dependent ports
> > are installed?
> Sounds like a bug in those ports -- or a portgroup they include: the mpi
> 1.0 portgroup, which was recently updated. Perhaps that update caused this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20151119/4d5b6a8e/attachment.html>

More information about the macports-users mailing list