Skip to content

Commit

Permalink
devel/hyprlang: unbreak build with libc++ 16
Browse files Browse the repository at this point in the history
src/config.cpp:276:42: error: no member named 'format' in namespace 'std'
                    result.setError(std::format("special category's first value must be the key. Key for <{}> is <{}>", PCAT->name, PCAT->key));
                                    ~~~~~^
src/config.cpp:287:34: error: no member named 'format' in namespace 'std'
            result.setError(std::format("config option <{}> does not exist.", valueName));
                            ~~~~~^
src/config.cpp:297:38: error: no member named 'format' in namespace 'std'
                result.setError(std::format("failed parsing an int: {}", e.what()));
                                ~~~~~^
src/config.cpp:306:38: error: no member named 'format' in namespace 'std'
                result.setError(std::format("failed parsing a float: {}", e.what()));
                                ~~~~~^
src/config.cpp:324:38: error: no member named 'format' in namespace 'std'
                result.setError(std::format("failed parsing a vec2: {}", e.what()));
                                ~~~~~^
src/config.cpp:533:38: error: no member named 'format' in namespace 'std'
            impl->parseError += std::format("Config error in file {} at line {}: {}", file, linenum, RET.errorStdString);
                                ~~~~~^
src/config.cpp:546:38: error: no member named 'format' in namespace 'std'
            impl->parseError += std::format("Config error in file {}: Unclosed category at EOF", file);
                                ~~~~~^

Reported by:	pkg-fallout
  • Loading branch information
jbeich committed Jan 5, 2024
1 parent 9218e76 commit 024e2ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devel/hyprlang/Makefile
Expand Up @@ -23,4 +23,10 @@ PLIST_FILES= include/${PORTNAME}.hpp \
lib/lib${PORTNAME}.so \
share/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 024e2ea

Please sign in to comment.