commit: 3d243b44bcbb0e70e3b98486209fbfb50e045ebd Author: Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org> AuthorDate: Sun Jul 13 13:52:25 2025 +0000 Commit: Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org> CommitDate: Sun Jul 13 13:52:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d243b44
dev-cpp/cpprestsdk/files: explanation in patchfile Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org> .../files/cpprestsdk-2.10.19-llvm-char-traits-patch.patch | 7 +++++++ .../cpprestsdk/files/cpprestsdk-2.10.19-llvm-json-unique-ptr.patch | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-char-traits-patch.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-char-traits-patch.patch index 4d123d76f7..d2a3ef9009 100644 --- a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-char-traits-patch.patch +++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-char-traits-patch.patch @@ -1,3 +1,10 @@ +Also submitted upstream https://github.com/microsoft/cpprestsdk/pull/1829 +Cpprestsdk is using a lot of unsigned types like uint8_t with C++ streams, this +seems to be fine with msvc/win32 and at least for now with gcc. This patch will +provide a char_traits type to the streams types other than std::char_traits if +needed. This is detected via template specialisations. Google & AIs will probably +suggest adding a std::char_traits<unsingned char> implementation, but I think that +is very innappropriate in a library for use by applications. --- a/Release/include/cpprest/streams.h (revision 0b1ce318a757bbfb89bdb0fffb61ca4e38dc3b33) +++ b/Release/include/cpprest/streams.h (revision 32b322b564e5e540ff02393ffe3bd3bade8d299c) @@ -16,6 +16,7 @@ diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-json-unique-ptr.patch b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-json-unique-ptr.patch index f609f52a1d..ce7f03741b 100644 --- a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-json-unique-ptr.patch +++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-llvm-json-unique-ptr.patch @@ -1,3 +1,8 @@ +This patch moves the implementations of certain json-methods to the cpp-file-implementations. +This is needed because llvm needs sizeof(T) to be valid for a lot more methods on containers +and std::unique_ptr, so these methods can't be header only on llvm. This patch is developed +by me and I cannot right now find an upstream bug-report on this just yet. I uploaded a similar +patch to FreeBSD ports a while ago. --- a/Release/include/cpprest/json.h +++ b/Release/include/cpprest/json.h @@ -737,12 +737,10 @@
