Source: gerbera
Version: 2.4.1+dfsg-2
Severity: important
Tags: ftbfs
Control: affects -1 src:fmtlib
X-Debbugs-Cc: [email protected], [email protected]

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.

Attachment: gerbera-original-failure-arm64.log.gz
Description: GNU Zip compressed data

Reply via email to