#1150963 gerbera: FTBFS with fmt 12 due to removal of fmt::localtime

#1150963#5
Date:
2026-10-15 09:34:06 UTC
From:
To:
gerbera fails to build with fmt 12.1.0+ds1-1 during the fmtlib transition
rebuild on arm64:

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

To reproduce, rebuild in sid with libfmt-dev from experimental.

fmt 12 removed the deprecated fmt::localtime API. Please replace this
call with a supported local-time conversion:

https://raw.githubusercontent.com/fmtlib/fmt/12.0.0/ChangeLog.md

Relevant build-log excerpt:

/build/reproducible-path/gerbera-2.4.1+dfsg/src/content/import_service.cc:
In member function ‘void ImportService::updateItemData(const
std::shared_ptr<CdsItem>&, const std::string&)’:
/build/reproducible-path/gerbera-2.4.1+dfsg/src/content/import_service.cc:766:82:
error: ‘localtime’ is not a member of ‘fmt’
  766 |         item->addMetaData(MetadataFields::M_DATE,
fmt::format("{:%FT%T%z}", fmt::localtime(item->getMTime().count())));
      |
                  ^~~~~~~~~

The full build log is attached.

#1150963#12
Date:
2026-10-19 16:11:09 UTC
From:
To:
Hi,

I've prepared two patches for fixing this problem.

Regards,
Aron