Files
ports/accessibility/hyprsunset/files
Dimitry Andric ac11f2876d accessibility/hyprsunset: fix build with libc++ 21
With libc++ 21 science/py-tensorflow fails to build, with errors similar
to:

    /wrkdirs/usr/ports/accessibility/hyprsunset/work/hyprsunset-0.3.3/src/Hyprsunset.cpp:300:10: error: no member named 'sort' in namespace 'std'
      300 |     std::sort(profiles.begin(), profiles.end(), [](const auto& a, const auto& b) {
          |          ^~~~

and:

    /wrkdirs/usr/ports/accessibility/hyprsunset/work/hyprsunset-0.3.3/src/Hyprsunset.cpp:329:29: error: no member named 'zoned_time' in namespace 'std::chrono'
      329 |     auto now = std::chrono::zoned_time(std::chrono::current_zone(), std::chrono::system_clock::now()).get_local_time();
          |                             ^~~~~~~~~~

The former is because the header <algorithm> isn't included.

The latter is because libc++ in FreeBSD doesn't have
std::chrono::zoned_time support yet, but the program checks for the
libc++ specific macro _LIBCPP_HAS_NO_TIME_ZONE_DATABASE. In libc++ 21,
most of the "_LIBCPP_HAS_NO_xxx" macros have been replaced by 'positive'
variants. In this case _LIBCPP_HAS_TIME_ZONE_DATABASE is now applicable.

PR:		293811
Approved by:	tagattie (maintainer)
MFH:		2026Q1
2026-03-20 13:12:12 +01:00
..