#13394 closed defect (fixed)
BUG: hdf5 - wrong dependencies in libtool library file
Reported by: | master@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | persquare@…, simon@…, mww@…, jochen@… | |
Port: |
Description
in libhdf5.la file, installed by the hdf5 port in library folder one can find # Libraries that this one depends upon. dependency_libs=' -R/opt/local/lib/lib -R/opt/local/lib -L/opt/local/lib -L/opt/local/lib/lib -lz -lm'
Note the references to nonexistent directory /opt/local/lib/lib.
It is a result of the following incorrect Portfile line configure.args --enable-cxx --with-zlib=${prefix}/lib
--with-zlib=${prefix}/lib should be changed to --with-zlib=yes or completely dropped, since it is the default. (Or at least, changed to --with-zlib=${prefix}.)
configure results in
--with-zlib=${prefix}/lib CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/lib/include -I/opt/local/include
LDFLAGS: -L/opt/local/lib -L/opt/local/lib/lib
--with-zlib=${prefix} CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/include -I/opt/local/include
LDFLAGS: -L/opt/local/lib -L/opt/local/lib
--with-zlib=yes CPPFLAGS: -UH5_DEBUG_API -DNDEBUG -I/opt/local/include
LDFLAGS: -L/opt/local/lib
In any case the ports version of zlib is linked against.
The same holds (I hope, did not check) for --with-szlib in szlib variant.
patch for Portfile