#1151595 therion: FTBFS with fmt 12.2: explicit fmt/format.h needed

#1151595#5
Date:
2026-10-22 07:16:47 UTC
From:
To:
therion 6.4.0-1 fails to build with fmtlib 12.2.0+ds1-2 during the
fmtlib transition rebuild in sid on arm64:

https://release.debian.org/transitions/html/auto-fmtlib.html

To reproduce, rebuild therion 6.4.0-1 in a clean sid build environment
with libfmt-dev and libfmt12 12.2.0+ds1-2 from experimental installed.

src/therion-core/thexception.cxx and thdate.cxx include fmt/core.h and
call fmt::format. In fmt 12.2, core.h includes base.h rather than
format.h by default. Please include fmt/format.h explicitly where
fmt::format is used.

This is distinct from #1014679, the fmt 9 failure caused by formatting
a non-void pointer in therion 6.1.1-1 (fixed in 6.1.2-1).

Relevant build-log excerpts:

  /build/reproducible-path/therion-6.4.0/src/therion-core/thexception.cxx:10:24: error: ‘format’ is not a member of ‘fmt’
  /build/reproducible-path/therion-6.4.0/src/therion-core/thdate.cxx:116:32: error: ‘format’ is not a member of ‘fmt’
  /build/reproducible-path/therion-6.4.0/src/therion-core/thdate.cxx:126:32: error: ‘format’ is not a member of ‘fmt’
  /build/reproducible-path/therion-6.4.0/src/therion-core/thdate.cxx:138:34: error: ‘format’ is not a member of ‘fmt’

The full build log is attached.