pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/blackbox70 Adjust iconv use



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9213db78ad1
branches:  trunk
changeset: 425094:e9213db78ad1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Mar 18 18:02:41 2020 +0000

description:
Adjust iconv use

diffstat:

 wm/blackbox70/distinfo                     |   4 ++--
 wm/blackbox70/patches/patch-lib_Unicode.cc |  29 +++++++++++++++++++++++++----
 2 files changed, 27 insertions(+), 6 deletions(-)

diffs (71 lines):

diff -r 0f8484a4b2f5 -r e9213db78ad1 wm/blackbox70/distinfo
--- a/wm/blackbox70/distinfo    Wed Mar 18 18:02:11 2020 +0000
+++ b/wm/blackbox70/distinfo    Wed Mar 18 18:02:41 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2019/10/08 02:59:59 gutteridge Exp $
+$NetBSD: distinfo,v 1.16 2020/03/18 18:02:41 joerg Exp $
 
 SHA1 (blackbox-0.75.tar.lz) = 65713441b2b5d0f496729ca65d6d609d40e1fcc4
 RMD160 (blackbox-0.75.tar.lz) = cc1362a45e292dccfbcaf03bc0a508a27bf64980
@@ -10,7 +10,7 @@
 SHA1 (patch-doc_sl__SI_Makefile.in) = d116093a717a14d8e0b252f0254f7fb03e37f0a1
 SHA1 (patch-lib_Image.cc) = ab49da02853b670843f4884517f0727d4569d50a
 SHA1 (patch-lib_Menu.cc) = b16a7439fa5db1d287e5353ec5986a9c3ffd6cfb
-SHA1 (patch-lib_Unicode.cc) = b2936e86dab0e4d0104312b5a387081a3fa02134
+SHA1 (patch-lib_Unicode.cc) = 7a13e7822a9af71c97b24e167394d87a65e8be73
 SHA1 (patch-src_Screen.cc) = 7a75160a66eb6317930af063514688c6e5028569
 SHA1 (patch-src_Toolbar.cc) = 2fdcea33eff7b6a99f22ce7a77c9b713b4f005b5
 SHA1 (patch-src_main.cc) = 24f43276e20f8fb89c6cb478e5e1bf52ea3eb659
diff -r 0f8484a4b2f5 -r e9213db78ad1 wm/blackbox70/patches/patch-lib_Unicode.cc
--- a/wm/blackbox70/patches/patch-lib_Unicode.cc        Wed Mar 18 18:02:11 2020 +0000
+++ b/wm/blackbox70/patches/patch-lib_Unicode.cc        Wed Mar 18 18:02:41 2020 +0000
@@ -1,24 +1,45 @@
-$NetBSD: patch-lib_Unicode.cc,v 1.1 2018/10/12 18:00:55 he Exp $
+$NetBSD: patch-lib_Unicode.cc,v 1.2 2020/03/18 18:02:41 joerg Exp $
 
---- lib/Unicode.cc.orig        2016-07-10 16:31:38.000000000 +0000
+--- lib/Unicode.cc.orig        2014-08-30 08:23:20.000000000 +0000
 +++ lib/Unicode.cc
-@@ -83,8 +83,8 @@ namespace bt {
+@@ -35,6 +35,9 @@
+ #  include <langinfo.h>
+ #endif
+ 
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
+ 
+ namespace bt {
+ 
+@@ -83,9 +86,13 @@ namespace bt {
      if (cd == invalid)
        return;
  
 -    char *inp =
 -      reinterpret_cast<char *>
++#if defined(__NetBSD__) && (__NetBSD_Version__-0 < 999001700)
 +    const char *inp =
 +      reinterpret_cast<const char *>
        (const_cast<typename _Source::value_type *>(in.data()));
++#else
++    char *inp = const_cast<char *>(reinterpret_cast<const char *>((in.data())));
++#endif
      const typename _Source::size_type in_size =
        in.size() * sizeof(typename _Source::value_type);
-@@ -109,7 +109,7 @@ namespace bt {
+     typename _Source::size_type in_bytes = in_size;
+@@ -108,9 +115,13 @@ namespace bt {
+         case EINVAL:
            {
              const typename _Source::size_type off = in_size - in_bytes + 1;
++#if defined(__NetBSD__) && (__NetBSD_Version__-0 < 999001700)
              inp =
 -              reinterpret_cast<char *>
 +              reinterpret_cast<const char *>
                (const_cast<typename _Source::value_type *>(in.data()));
++#else
++            inp = const_cast<char *>(reinterpret_cast<const char *>((in.data())));
++#endif
              in_bytes = in_size - off;
              break;
+           }



Home | Main Index | Thread Index | Old Index