As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. This causes databases/mysql81-server to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>' 820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ /wrkdirs/usr/ports/databases/mysql81-client/work/mysql-8.1.0/sql/rpl_log_encryption.h:820:14: note: in instantiation of template class 'std::basic_string<unsigned char>' requested here 820 | Key_string m_encrypted_password; | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ `Key_string` is defined as `std::basic_string<unsigned char>`, which is no longer possible. So redefine it as a `std::vector<unsigned char>` instead. This requires only a few small adjustments in other places: replacing the `length()` method with the equivalent `size()` method, and adjusting the arguments for the `assign()` method, which for `std::vector` takes a begin and end iterator, instead of a begin iterator and a size. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
Created attachment 252616 [details] databases/mysql81-client: fix build with libc++ 19
Created attachment 252896 [details] databases/mysql81-server: fix build with libc++ 19 (v2) (In reply to Jochen Neumeister from comment #2) Sorry, this was a screw-up from my side. I missed that the client port is really a slave of the server port, and that the server port compiles quite bit _more_ code, some of which also needs fixing! I updated the patch to fix the rest of the errors that occur.
Created attachment 253006 [details] databases/mysql81-server: fix build with libc++ 19 (v3) Added two additional files to the patch to also ensure the "make test" target succeeds.
If it's possible I would like to get these mysql fixes in relatively soon, so I can request another exp-run for bug 280562.
Created attachment 253093 [details] databases/mysql81-server: fix build with libc++ 19 (v4) (In reply to Jochen Neumeister from comment #8) Okay, this was due to the diff line that deleted "#include <string>" from sql/stream_cipher.h. Apparently some other files do rely on this, but it depends on the underlying C++ headers whether it leads to an error or not. I have put back the <string> include, it should compile now. I also updated the patches for the other mysql ports.
Unfortunately I have a build error on all i386 versions. MySQL 8.1 will be deleted from the ports on 1.9.2024. The version is EOL. I would suggest not to invest any more time here if the port will be deleted next week.
Port will be removed 1.9.2024 - so i closed here without commit :)