Date: Fri, 13 Mar 2026 08:28:43 +0000 From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b8cec75ffb19 - main - textproc/lttoolbox: fix build with libc++ 21 Message-ID: <69b3cabb.392e7.1cf788b8@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=b8cec75ffb19bd54b5d9d490dd3b2077e7a5ad42 commit b8cec75ffb19bd54b5d9d490dd3b2077e7a5ad42 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2026-02-18 20:15:45 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2026-03-13 08:28:22 +0000 textproc/lttoolbox: fix build with libc++ 21 With libc++ 21 textproc/lttoolbox fails to build, with errors similar to: In file included from /wrkdirs/usr/ports/textproc/lttoolbox/work/lttoolbox-3.8.0/lttoolbox/acx.cc:17: In file included from /wrkdirs/usr/ports/textproc/lttoolbox/work/lttoolbox-3.8.0/lttoolbox/acx.h:20: In file included from /wrkdirs/usr/ports/textproc/lttoolbox/work/lttoolbox-3.8.0/lttoolbox/sorted_vector.hpp:25: In file included from /usr/include/c++/v1/iterator:698: /usr/include/c++/v1/__iterator/ostream_iterator.h:62:20: error: invalid operands to binary expression ('ostream_type' (aka 'basic_ostream<char, std::char_traits<char>>') and 'const char') 62 | *__out_stream_ << __value; | ~~~~~~~~~~~~~~ ^ ~~~~~~~ /usr/local/include/utf8cpp/utf8/core.h:358:25: note: in instantiation of member function 'std::ostream_iterator<char>::operator=' requested here 358 | *(result++) = static_cast<octet_type>(cp); | ^ /usr/local/include/utf8cpp/utf8/core.h:398:16: note: in instantiation of function template specialization 'utf8::internal::append<std::ostream_iterator<char>, char8_t>' requested here 398 | return append<octet_iterator, utfchar8_t>(cp, result); | ^ /usr/local/include/utf8cpp/utf8/checked.h:79:26: note: in instantiation of function template specialization 'utf8::internal::append<std::ostream_iterator<char>>' requested here 79 | return internal::append(cp, result); | ^ /usr/local/include/utf8cpp/utf8/checked.h:248:28: note: in instantiation of function template specialization 'utf8::append<std::ostream_iterator<char>>' requested here 248 | result = utf8::append(cp, result); | ^ /wrkdirs/usr/ports/textproc/lttoolbox/work/lttoolbox-3.8.0/lttoolbox/ustring.h:44:9: note: in instantiation of function template specialization 'utf8::utf16to8<char16_t *, std::ostream_iterator<char>>' requested here 44 | utf8::utf16to8(&c, &c+1, std::ostream_iterator<char>(ostr)); | ^ This is because ustring.h includes <iomanip> instead of <iostream>, and libc++ 21 has reduced the number of transitive includes. Replace <iomanip> with <iostream> to fix this. PR: 293268 Approved by: maintainer timeout (2 weeks) MFH: 2026Q1 --- textproc/lttoolbox/files/patch-lttoolbox_ustring.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/textproc/lttoolbox/files/patch-lttoolbox_ustring.h b/textproc/lttoolbox/files/patch-lttoolbox_ustring.h new file mode 100644 index 000000000000..5dcd6478d3c5 --- /dev/null +++ b/textproc/lttoolbox/files/patch-lttoolbox_ustring.h @@ -0,0 +1,11 @@ +--- lttoolbox/ustring.h.orig 2025-03-06 14:48:10 UTC ++++ lttoolbox/ustring.h +@@ -25,7 +25,7 @@ + #include <utf8.h> + #include <vector> + #include <cstdint> +-#include <iomanip> ++#include <iostream> + + typedef std::basic_string<UChar> UString; + typedef std::basic_string_view<UChar> UStringView;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b3cabb.392e7.1cf788b8>
