git: c77b742ff843 - main - x11/hyprlock: unbreak build with libc++ 19
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Oct 2024 18:05:08 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=c77b742ff843cb257656defa6c14749137e9d005 commit c77b742ff843cb257656defa6c14749137e9d005 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-10-28 10:45:23 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2024-10-30 18:03:46 +0000 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 --- x11/hyprlock/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/x11/hyprlock/Makefile b/x11/hyprlock/Makefile index 08581d514c60..cc9da13e19d6 100644 --- a/x11/hyprlock/Makefile +++ b/x11/hyprlock/Makefile @@ -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>