pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/dolphin-emu dolphin-emu: Fix build on NetBSD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5d21c13c515
branches:  trunk
changeset: 342766:c5d21c13c515
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Fri Oct 25 09:56:51 2019 +0000

description:
dolphin-emu: Fix build on NetBSD 9.99.17

Adapt the local patch for the POSIX iconv(3) API change in new NetBSD.

diffstat:

 emulators/dolphin-emu/distinfo                                        |   4 +-
 emulators/dolphin-emu/patches/patch-Source_Core_Common_StringUtil.cpp |  26 ++++++++-
 2 files changed, 23 insertions(+), 7 deletions(-)

diffs (73 lines):

diff -r ee9bb7214474 -r c5d21c13c515 emulators/dolphin-emu/distinfo
--- a/emulators/dolphin-emu/distinfo    Fri Oct 25 09:45:57 2019 +0000
+++ b/emulators/dolphin-emu/distinfo    Fri Oct 25 09:56:51 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2019/01/02 00:30:01 nia Exp $
+$NetBSD: distinfo,v 1.3 2019/10/25 09:56:51 kamil Exp $
 
 SHA1 (dolphin-emu-5.0.tar.gz) = 6553f9fe5281326b86f33fb6b99a93fe6a8820af
 RMD160 (dolphin-emu-5.0.tar.gz) = e8c4cb2c903b78c3e21cb12b0724ab0728c1391a
@@ -8,7 +8,7 @@
 SHA1 (patch-Externals_SFML_include_SFML_Config.hpp) = 75ece2ce86b54b219a80d6ff028ecc80a00454f5
 SHA1 (patch-Source_Core_Common_FileUtil.cpp) = 27b859714e294abbfb3f468928e22b30abfd0099
 SHA1 (patch-Source_Core_Common_MemoryUtil.cpp) = af681a3f43687f7af09c87732a7a2da8e8c58e05
-SHA1 (patch-Source_Core_Common_StringUtil.cpp) = b2b5d5eef849003b460a230d41e51682d98cd67d
+SHA1 (patch-Source_Core_Common_StringUtil.cpp) = 3a53d42ae9da1d50c0693bd222cb20be9ebe5a16
 SHA1 (patch-Source_Core_Common_Thread.cpp) = 8356c548c43ad762f4d226cf3d51a854f0a8b7f3
 SHA1 (patch-Source_Core_Core_HW_EXI__DeviceEthernet.h) = 144250d51b78e287a8305e75ee06e24c305c3d75
 SHA1 (patch-Source_Core_Core_IPC__HLE_WII__Socket.h) = 8de6dec95689efb63c3795d3e361b5bd9a8d7768
diff -r ee9bb7214474 -r c5d21c13c515 emulators/dolphin-emu/patches/patch-Source_Core_Common_StringUtil.cpp
--- a/emulators/dolphin-emu/patches/patch-Source_Core_Common_StringUtil.cpp     Fri Oct 25 09:45:57 2019 +0000
+++ b/emulators/dolphin-emu/patches/patch-Source_Core_Common_StringUtil.cpp     Fri Oct 25 09:56:51 2019 +0000
@@ -1,10 +1,26 @@
-$NetBSD: patch-Source_Core_Common_StringUtil.cpp,v 1.1 2019/01/01 17:19:58 nia Exp $
+$NetBSD: patch-Source_Core_Common_StringUtil.cpp,v 1.2 2019/10/25 09:56:51 kamil Exp $
 
 Support NetBSD.
 
 --- Source/Core/Common/StringUtil.cpp.orig     2016-06-24 08:09:07.000000000 +0000
 +++ Source/Core/Common/StringUtil.cpp
-@@ -121,11 +121,11 @@ bool CharArrayFromFormatV(char* out, int
+@@ -28,6 +28,15 @@
+       #include <errno.h>
+ #endif
+ 
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV 1
++#else
++#define NETBSD_POSIX_ICONV 0
++#endif
++#endif
++
+ #if !defined(_WIN32) && !defined(ANDROID)
+ static locale_t GetCLocale()
+ {
+@@ -121,11 +130,11 @@ bool CharArrayFromFormatV(char* out, int
                c_locale = _create_locale(LC_ALL, "C");
        writtenCount = _vsnprintf_l(out, outsize, format, c_locale, args);
  #else
@@ -18,7 +34,7 @@
        uselocale(previousLocale);
        #endif
  #endif
-@@ -162,12 +162,12 @@ std::string StringFromFormatV(const char
+@@ -162,12 +171,12 @@ std::string StringFromFormatV(const char
        std::string temp = buf;
        delete[] buf;
  #else
@@ -33,11 +49,11 @@
        uselocale(previousLocale);
        #endif
  
-@@ -427,8 +427,13 @@ std::string CodeToUTF8(const char* fromc
+@@ -427,8 +436,13 @@ std::string CodeToUTF8(const char* fromc
  
                while (src_bytes != 0)
                {
-+#ifdef __NetBSD__
++#if defined(__NetBSD__) && !NETBSD_POSIX_ICONV
 +                      size_t const iconv_result = iconv(conv_desc, (const char**)(&src_buffer), &src_bytes,
 +                              &dst_buffer, &dst_bytes);
 +#else



Home | Main Index | Thread Index | Old Index