1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
Mirror of the FreeBSD ports git repo https://git.FreeBSD.org/ports.git .
Go to file
Jochen Neumeister 4e862d56da databases/mysql80-server: fix build with libc++ 19
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/mysql80-client 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/mysql80-client/work/mysql-8.0.39/sql/rpl_log_encryption.h:821:14:
note: in instantiation of template class 'std::basic_string<unsigned
char>' requested here
      821 |   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

PR:	280693
Sponsored by:	Netzkommune GmbH
2024-08-31 17:45:19 +02:00
.hooks
accessibility
arabic
archivers
astro astro/josm: update 19128 → 19160 2024-08-31 04:08:23 +03:00
audio audio/audiere: deprecate 2024-08-31 04:58:43 +03:00
benchmarks
biology
cad cad/py-cocotb: update 1.9.0 → 1.9.1 2024-08-30 10:50:56 -07:00
chinese
comms
converters
databases databases/mysql80-server: fix build with libc++ 19 2024-08-31 17:45:19 +02:00
deskutils
devel devel/py-jupyter: Add NO_ARCH 2024-08-31 00:26:56 -07:00
dns dns/doh-proxy: Add rc script 2024-08-31 13:57:34 +00:00
editors editors/le: fix build with recent libc++ headers 2024-08-30 21:29:53 +02:00
emulators
finance
french
ftp ftp/wush: Update to 0.1.2 2024-08-31 13:31:58 +00:00
games games/irrlamb: update 1.0.3 → 1.0.5 2024-08-31 05:18:35 +03:00
german
graphics graphics/p5-Image-ExifTool-devel: Update 12.93 → 12.95 2024-08-31 10:38:42 +03:00
hebrew
hungarian
irc
japanese
java
Keywords
korean
lang lang/asm-lsp: update 0.7.4 → 0.8.0 2024-08-30 10:50:55 -07:00
mail mail/py-postfix-mta-sts-resolver: Update to 1.4.0 2024-08-31 16:12:52 +09:00
math math/libxlsxwriter: Improve port and switch to CMake 2024-08-31 10:50:46 +02:00
misc misc/llama-cpp: update 3631 → 3647 2024-08-31 00:16:15 -07:00
Mk
multimedia multimedia/assimp: update 5.4.2 → 5.4.3 2024-08-31 00:16:15 -07:00
net net/wireshark: Update to 4.4.0 2024-08-30 13:31:05 -04:00
net-im
net-mgmt
net-p2p
news news/sabnzbd: Update 4.3.2 → 4.3.3 2024-08-31 00:43:45 +03:00
polish
ports-mgmt
portuguese
print
russian
science science/py-dwave-inspector: update 0.5.0.post0 → 0.5.1 2024-08-31 00:16:16 -07:00
security security/vuxml: Record www/forgejo security vulnerability 2024-08-31 01:29:46 +03:00
shells
sysutils sysutils/polkit: Update to 125 2024-08-31 16:06:08 +03:00
Templates
textproc textproc/hs-pandoc: Install man pages 2024-08-31 12:41:15 +03:00
Tools
ukrainian
vietnamese
www www/domoticz-devel: Improve port 2024-08-31 10:50:47 +02:00
x11 x11/nwg-dock-hyprland: update to 0.3.0 2024-08-31 02:58:03 +02:00
x11-clocks
x11-drivers
x11-fm
x11-fonts
x11-servers
x11-themes
x11-toolkits
x11-wm
.arcconfig
.gitignore
.mailmap
CHANGES
CONTRIBUTING.md
COPYRIGHT
GIDs
Makefile
MOVED
README
UIDs
UPDATING

This is the FreeBSD Ports Collection.  For an easy to use
WEB-based interface to it, please see:

	https://ports.FreeBSD.org

For general information on the Ports Collection, please see the
FreeBSD Handbook ports section which is available from:

	https://docs.freebsd.org/en/books/handbook/ports/
		for the latest official version
	or:
	The ports(7) manual page (man ports).

These will explain how to use ports and packages.

If you would like to search for a port, you can do so easily by
saying (in /usr/ports):

	make search name="<name>"
	or:
	make search key="<keyword>"

which will generate a list of all ports matching <name> or <keyword>.
make search also supports wildcards, such as:

	make search name="gtk*"

For information about contributing to FreeBSD ports, please see the Porter's
Handbook, available at:

	https://docs.freebsd.org/en/books/porters-handbook/

NOTE:  This tree will GROW significantly in size during normal usage!
The distribution tar files can and do accumulate in /usr/ports/distfiles,
and the individual ports will also use up lots of space in their work
subdirectories unless you remember to "make clean" after you're done
building a given port.  /usr/ports/distfiles can also be periodically
cleaned without ill-effect.