[Debian-med-packaging] Bug#952625: libixion: FTBFS: configure: error: Package requirements (spdlog >= 0.16.0) were not met

Rene Engelhard rene at debian.org
Wed Feb 26 17:49:58 GMT 2020


Hi,

On Wed, Feb 26, 2020 at 06:06:57PM +0100, Rene Engelhard wrote:
> root at frodo:/# pkg-config --cflags spdlog
> Package fmt was not found in the pkg-config search path.
> Perhaps you should add the directory containing `fmt.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'fmt', required by 'spdlog', not found
> 
> But:
> 
> # cat /usr/lib/x86_64-linux-gnu/pkgconfig/spdlog.pc
> prefix=/usr
> exec_prefix=${prefix}
> includedir=${prefix}/include
> libdir=${exec_prefix}/lib/x86_64-linux-gnu
> 
> Name: libspdlog
> Description: Fast C++ logging library.
> URL: https://github.com/gabime/spdlog
> Version: 1.5.0
> CFlags: -I${includedir} -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL
> Libs: -L${libdir} -lspdlog -pthread
> Requires: fmt
> ^^^^^^^^^^^^^
> 
> libfmt-dev does not have a .pc file. Thus this isn't resolvable.
> 
> root at frodo:/# pkg-config --cflags fmt
> Package fmt was not found in the pkg-config search path.
> Perhaps you should add the directory containing `fmt.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'fmt' found
> 
> -> bug in spdlog

Commenting out the above line of course works.

It seems to me that libfmt-dev is header-only or static? (-dev doesn't
depend on a fmt shared library). So that means that it could safely be
removed for the header-only usecase.

For the static lib use case this might break stuff unless external stuff
needs -lfmt to link, though (no idea whether they would, or if it is
just a internal, but
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952543
suggests that it does.)

Or fmt gets a .pc file (Cced.)

Regards,

Rene



More information about the Debian-med-packaging mailing list