Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Aug 2025 10:26:13 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Hiroki Tagato <tagattie@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: d9a1aaa98d16 - main - accessibility/hyprsunset: update to 0.3.1
Message-ID:  <plde-1656-wny@FreeBSD.org>
In-Reply-To: <202508020420.5724Kg3N033225@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

Hiroki Tagato <tagattie@FreeBSD.org> writes:

> ++#if defined(_LIBCPP_VERSION) || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
> ++#pragma comment(lib, "date-tz")
> ++#include <date/tz.h>
> ++namespace std {
> ++    namespace chrono {
> ++        using date::current_zone;
> ++        using date::zoned_time;
> ++    }
> ++}
> ++#endif

|| operand makes it use devel/date even when libc++ supports || current_zone e.g.,
on Linux (if upstreamed) or FreeBSD >= 13.6/14.3/15.0. hyprlock has similar patch
but doesn't remove _LIBCPP_VERSION < 190100 part.

  $ cd /usr/ports/x11/hyprlock
  $ make clean patch BATCH=
  $ fgrep -hr LIBCPP_VER `make -V WRKSRC`
  #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 190100 || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
  #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 190100
  #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 180100


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?plde-1656-wny>