Your message dated Sun, 13 Sep 2026 14:36:32 +0200
with message-id <[email protected]>
and subject line Re: libhdf5-dev: pkg-config file references ONLY the C library
has caused the Debian Bug report #839784,
regarding libhdf5-dev: pkg-config file references ONLY the C library
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
839784: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839784
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libhdf5-dev
Version: 1.8.16+docs-8+b1
Severity: normal
Hi.
The libhdf5-dev package ships a single .pc file: hdf5-serial.pc, which
contains
Libs: -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5
This serves to link in the C interface to the HDF5 library by adding to
the LDLIBS in GNU Make:
$(shell pkg-config --libs hdf5-serial)
If, however, you have a project that uses the C++ interface, then you
need something uglier:
$(shell pkg-config --libs-only-L hdf5-serial) -lhdf5_cpp
This is also bad because it goes against the whole purpose of
pkg-config: the user now has to know about the internal layout of the
package.
It looks like we have 6 flavors of shared objects for hdf5-serial:
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_fortran.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl_cpp.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5hl_fortran.so
Would it make sense to ship a .pc file for each one?
Thanks!
--- End Message ---
--- Begin Message ---
Version: 2.1.0+repack-1
Hi,
On Mon, 30 Dec 2024 20:15:53 +0100 [email protected] wrote:
Hi,
Le 2016-10-04 22:48, Dima Kogan a écrit :
> Package: libhdf5-dev
> Version: 1.8.16+docs-8+b1
> Severity: normal
>
> Hi.
>
> The libhdf5-dev package ships a single .pc file: hdf5-serial.pc, which
> contains
>
> Libs: -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5
>
> This serves to link in the C interface to the HDF5 library by adding to
> the LDLIBS in GNU Make:
>
> $(shell pkg-config --libs hdf5-serial)
>
> If, however, you have a project that uses the C++ interface, then you
> need something uglier:
>
> $(shell pkg-config --libs-only-L hdf5-serial) -lhdf5_cpp
>
> This is also bad because it goes against the whole purpose of
> pkg-config: the user now has to know about the internal layout of the
> package.
>
> It looks like we have 6 flavors of shared objects for hdf5-serial:
>
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_fortran.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl_cpp.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5hl_fortran.so
>
> Would it make sense to ship a .pc file for each one?
I'm sorry for this very late answer.
Upstream provides pkg-config files for cmake builds only. The current
pkg-config for HDF5 in Debian were added by me, and are just minimalist
ones. They are not expected to work for every use case.
I've opened a feature request at the upstream github project:
https://github.com/HDFGroup/hdf5/issues/5194
Meanwhile, patches are welcome.
This was fixed in release 2.1.0+repack-1.
Best,
_g.
OpenPGP_signature.asc
Description: OpenPGP digital signature
--- End Message ---