git: 1947e3c8f4fd - main - x11/hypridle: unbreak build with libc++ 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Feb 2024 16:51:32 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=1947e3c8f4fdf1c125f657e604160bfa725fe568 commit 1947e3c8f4fdf1c125f657e604160bfa725fe568 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-02-27 16:47:46 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2024-02-27 16:51:15 +0000 x11/hypridle: unbreak build with libc++ 16 In file included from src/config/ConfigManager.cpp:1: In file included from src/config/ConfigManager.hpp:3: src/config/../helpers/Log.hpp:56:27: error: no member named 'vformat' in namespace 'std' std::cout << std::vformat(fmt, std::make_format_args(args...)) << "\n"; ~~~~~^ src/config/../helpers/Log.hpp:56:45: error: no member named 'make_format_args' in namespace 'std' std::cout << std::vformat(fmt, std::make_format_args(args...)) << "\n"; ~~~~~^ Reported by: pkg-fallout --- x11/hypridle/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x11/hypridle/Makefile b/x11/hypridle/Makefile index 6dddb29d3c3a..c5988f82acb6 100644 --- a/x11/hypridle/Makefile +++ b/x11/hypridle/Makefile @@ -25,6 +25,12 @@ GH_ACCOUNT= hyprwm LDFLAGS+= -Wl,--as-needed # sdbus-cpp deps PLIST_FILES= bin/${PORTNAME} +# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01 +.if exists(/usr/include/c++/v1/__format/format_functions.h) && \ + !exists(/usr/include/c++/v1/__format/write_escaped.h) +CXXFLAGS+= -fexperimental-library +.endif + post-patch: # https://github.com/ConsoleKit2/ConsoleKit2/issues/150 # https://github.com/ConsoleKit2/ConsoleKit2/issues/151