aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2024-04-27 05:50:26 +0000
committerJan Beich <jbeich@FreeBSD.org>2024-04-27 05:51:36 +0000
commitaf881884649fbd6555898f6b2b7e4aaaa0a3728c (patch)
treec42d88a3eccf9df57e6676a528c02f104783e95a
parent43ecb93463973dbe210d4fd5dc2158b962a012bc (diff)
downloadports-af881884649fbd6555898f6b2b7e4aaaa0a3728c.tar.gz
ports-af881884649fbd6555898f6b2b7e4aaaa0a3728c.zip
devel/hyprwayland-scanner: unbreak build with libc++ 16
src/main.cpp:218:24: error: no member named 'format' in namespace 'std' HEADER += std::format("enum {} : uint32_t {{\n", en.name); ~~~~~^ src/main.cpp:220:28: error: no member named 'format' in namespace 'std' HEADER += std::format(" {} = {},\n", k, v); ~~~~~^ src/main.cpp:228:24: error: no member named 'format' in namespace 'std' HEADER += std::format("\nclass {};", IFACE_CLASS_NAME_CAMEL); ~~~~~^ src/main.cpp:237:24: error: no member named 'format' in namespace 'std' HEADER += std::format("extern const wl_interface {};\n", IFACE_WL_NAME, IFACE_WL_NAME_CAMEL, IFACE_WL_NAME); ~~~~~^ src/main.cpp:247:24: error: no member named 'format' in namespace 'std' HEADER += std::format(R"#( ~~~~~^ src/main.cpp:289:28: error: no member named 'format' in namespace 'std' HEADER += std::format(" void {}(F<void({}*{})> handler);\n", camelize("set_" + rq.name), IFACE_CLASS_NAME_CAMEL, args); ~~~~~^ src/main.cpp:307:28: error: no member named 'format' in namespace 'std' HEADER += std::format(" void {}({});\n", camelize("send_" + ev.name), args); ~~~~~^ src/main.cpp:330:28: error: no member named 'format' in namespace 'std' HEADER += std::format(" F<void({}*{})> {};\n", IFACE_CLASS_NAME_CAMEL, args, camelize(rq.name)); ~~~~~^ src/main.cpp:337:24: error: no member named 'format' in namespace 'std' HEADER += std::format(R"#( ~~~~~^ src/main.cpp:356:20: error: no member named 'format' in namespace 'std' SOURCE += std::format(R"#(#define private public ~~~~~^ src/main.cpp:385:24: error: no member named 'format' in namespace 'std' SOURCE += std::format("extern const wl_interface {};\n", IFACE_WL_NAME, IFACE_WL_NAME_CAMEL, IFACE_WL_NAME); ~~~~~^ src/main.cpp:399:36: error: no member named 'format' in namespace 'std' SOURCE += std::format("extern const wl_interface {};\n", IFACE_WL_NAME2, IFACE_WL_NAME_CAMEL2, IFACE_WL_NAME2); ~~~~~^ src/main.cpp:414:36: error: no member named 'format' in namespace 'std' SOURCE += std::format("extern const wl_interface {};\n", IFACE_WL_NAME2, IFACE_WL_NAME_CAMEL2, IFACE_WL_NAME2); ~~~~~^ src/main.cpp:452:28: error: no member named 'format' in namespace 'std' SOURCE += std::format(R"#( ~~~~~^ src/main.cpp:463:24: error: no member named 'format' in namespace 'std' SOURCE += std::format(R"#( ~~~~~^ src/main.cpp:475:24: error: no member named 'format' in namespace 'std' SOURCE += std::format(R"#( ~~~~~^ src/main.cpp:482:28: error: no member named 'format' in namespace 'std' SOURCE += std::format(" (void*){},\n", REQUEST_NAME); ~~~~~^ src/main.cpp:514:28: error: no member named 'format' in namespace 'std' SOURCE += std::format(R"#( ~~~~~^ src/main.cpp:532:28: error: no member named 'format' in namespace 'std' SOURCE += std::format("static const wl_interface* {}[] = {{\n", TYPE_TABLE_NAME); ~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] Reported by: pkg-fallout
-rw-r--r--devel/hyprwayland-scanner/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/hyprwayland-scanner/Makefile b/devel/hyprwayland-scanner/Makefile
index 01022242b3df..51d3ed40f831 100644
--- a/devel/hyprwayland-scanner/Makefile
+++ b/devel/hyprwayland-scanner/Makefile
@@ -18,4 +18,10 @@ GH_ACCOUNT= hyprwm
PLIST_FILES= bin/${PORTNAME} \
libdata/pkgconfig/${PORTNAME}.pc
+# 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
+
.include <bsd.port.mk>