Skip to content

Commit

Permalink
devel/hyprwayland-scanner: unbreak build with libc++ 16
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbeich committed Apr 27, 2024
1 parent 43ecb93 commit af88188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devel/hyprwayland-scanner/Makefile
Expand Up @@ -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>

0 comments on commit af88188

Please sign in to comment.