#1012334 libfmt-dev: No libfmt.a available anymore as part of libfmt-dev

Package:
libfmt-dev
Source:
fmtlib
Description:
fast type-safe C++ formatting library -- development files
Submitter:
Labazov Artem
Date:
2022-06-11 04:36:03 UTC
Severity:
normal
#1012334#5
Date:
2022-06-04 16:54:01 UTC
From:
To:
Dear Maintainer,

Recently I have moved from Debian buster to bullseye and have encountered an issue
with the libfmt-dev package: one of my source-built programs failed to link due to
missing libfmt.a static library.

After doing some research, I found out that libfmt-dev from buster-backports
expectedly ships the desired binary while bullseye and newer have only .so symlink
bundled, hereby causing the breakage. Since linking to fmtlib dynamically is not
desirable for my workflow, I want to ask you whether such breakage was intended and
if not, could you please add .a library back to the package.

Thanks!

#1012334#10
Date:
2022-06-04 17:12:12 UTC
From:
To:
I don't find upstream CMakeLists.txt provides such options to build a .a file.
If you know how to, I'm happy to apply the patch.

To statically link fmtlib, you can also use the fmt::fmt-header-only target.
https://fmt.dev/latest/usage.html#usage-with-cmake

#1012334#15
Date:
2022-06-11 04:32:24 UTC
From:
To:
Closing. As it has option to static link.