Opened 8 years ago

Closed 8 years ago

#51925 closed enhancement (fixed)

hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR

Reported by: fredericperez1@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mamoll (Mark Moll)
Port: hdf5-18

Description

Due to the switch to hdf5 @1.10.0, my software crashes (this hdf5 version has some bugs).

The port hdf5-18 @1.8.16 fixes the problem, but moves all the dependencies to /opt/local/include/hdf5-18/ and /opt/local/lib/hdf5-18/. It turns out that a few programs use the environment variable HDF5_ROOT_DIR, which here points to /opt/local. It is used to point the compiler to $HDF5_ROOT_DIR/include and $HDF5_ROOT_DIR/lib.

Of course, this does not work anymore because this would mean changing all my makefiles to $HDF5_ROOT_DIR/include/hdf5-18 and $HDF5_ROOT_DIR/lib/hdf5-18. This is not portable, thus I cannot make use anymore of this environment variable.

I believe it would make more sense to have the hdf5-18 include and lib directories inside another single directory such as /opt/local/hdf5-18/, but I am not sure this is very good practice. In any case, the current implementation does not look workable for me.

Thanks

Change History (3)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: mmoll@… added
Keywords: hdf5 removed
Owner: changed from macports-tickets@… to takeshi@…
Port: @1.8.16 removed
Type: requestenhancement
Version: 2.3.4

In the future, please Cc the port maintainers (port info --maintainers hdf5-18), if any. Note that a "request" ticket type is only for requesting a new port.

comment:2 Changed 8 years ago by mamoll (Mark Moll)

Moving hdf5-18 to a completely separate install prefix would also help address #51923. Perhaps /opt/local/libexec/hdf5-18/ or /opt/local/lib/hdf5-18/ is a reasonable prefix?

comment:3 Changed 8 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Done in r150946. The new prefix or $HDF5_ROOT_DIR is ${prefix}/local/lib/hdf5-18.

Note: See TracTickets for help on using tickets.