[MacPorts] #51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR
#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
#51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR -------------------------------+----------------------- Reporter: fredericperez1@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: hdf5-18 | -------------------------------+----------------------- Changes (by mf2k@…): * cc: mmoll@… (added) * owner: macports-tickets@… => takeshi@… * version: 2.3.4 => * keywords: hdf5 => * type: request => enhancement * port: hdf5-18 @1.8.16 => hdf5-18 Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/51925#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR -------------------------------+----------------------- Reporter: fredericperez1@… | Owner: takeshi@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: hdf5-18 | -------------------------------+----------------------- Comment (by mmoll@…): 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? -- Ticket URL: <https://trac.macports.org/ticket/51925#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51925: hdf5-18 @1.8.16 Cannot use environment variable HDF5_ROOT_DIR -------------------------------+----------------------- Reporter: fredericperez1@… | Owner: takeshi@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: hdf5-18 | -------------------------------+----------------------- Changes (by takeshi@…): * status: new => closed * resolution: => fixed Comment: Done in r150946. The new prefix or {{{$HDF5_ROOT_DIR}}} is {{{${prefix}/local/lib/hdf5-18}}}. -- Ticket URL: <https://trac.macports.org/ticket/51925#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts