1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

x11/hyprlock: unbreak build with libc++ 19

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();
      |                               ~~~~~~~~~~~~~^

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2024-10-28 11:45:23 +01:00
parent 61fe674f53
commit c77b742ff8

View File

@ -30,10 +30,15 @@ PLIST_FILES= bin/${PORTNAME} \
etc/pam.d/${PORTNAME} \
share/hypr/${PORTNAME}.conf
# XXX Drop after FreeBSD 13.3 EOL around 2025-07-01
.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__chrono/time_zone.h)
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282377
.if exists(/usr/lib/libc++.so)
LIB_DEPENDS+= libdate-tz.so:devel/date
USES+= localbase:ldflags
post-patch: libcxx-post-patch
libcxx-post-patch:
@${REINPLACE_CMD} '/_LIBCPP_VERSION/s/$$/ || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)/' \
${WRKSRC}/src/renderer/widgets/IWidget.cpp
.endif
.include <bsd.port.mk>