[MacPorts] #51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR
MacPorts
noreply at macports.org
Wed Jul 27 10:22:36 PDT 2016
#51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR
------------------------------+--------------------------------
Reporter: fredericperez1@… | Owner: macports-tickets@…
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: hdf5 | Port: hdf5-18 @1.8.16
------------------------------+--------------------------------
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
--
Ticket URL: <https://trac.macports.org/ticket/51925>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list