[Bug 282377] Missing std::chrono::current_zone in libc++ 19

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Oct 2024 06:08:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282377

            Bug ID: 282377
           Summary: Missing std::chrono::current_zone in libc++ 19
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: toolchain@FreeBSD.org
          Reporter: jbeich@FreeBSD.org

Added by https://github.com/llvm/llvm-project/commit/4167fec40768 but disabled
in FreeBSD via _LIBCPP_HAS_NO_TIME_ZONE_DATABASE in
libcxx/include/__config_site. Not sure where the rationale is documented ("git
log" on the file is empty due to merges).

Required by x11/hyprlock to drop devel/date. tzdb support is part of C++20,
supported by libstdc++ and not marked experimental in libc++.

src/renderer/widgets/IWidget.cpp:104:44: error: no member named 'current_zone'
in namespace 'std::chrono'
  104 |     const auto current_zone = std::chrono::current_zone();
      |                               ~~~~~~~~~~~~~^
src/renderer/widgets/IWidget.cpp:113:44: error: no member named 'current_zone'
in namespace 'std::chrono'
  113 |     const auto current_zone = std::chrono::current_zone();
      |                               ~~~~~~~~~~~~~^

https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p645a502a4f60_s8b2e7da7085/logs/errors/hyprlock-0.5.0.log

-- 
You are receiving this mail because:
You are the assignee for the bug.