pkgsrc-Changes archive

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

CVS commit: pkgsrc/wm/icewm14



Module Name:    pkgsrc
Committed By:   kamil
Date:           Fri Oct 25 10:21:32 UTC 2019

Modified Files:
        pkgsrc/wm/icewm14: distinfo
        pkgsrc/wm/icewm14/patches: patch-src_ylocale.cc

Log Message:
icewm14: Fix build on NetBSD 9.99.17

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/wm/icewm14/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/wm/icewm14/distinfo
diff -u pkgsrc/wm/icewm14/distinfo:1.2 pkgsrc/wm/icewm14/distinfo:1.3
--- pkgsrc/wm/icewm14/distinfo:1.2      Wed Nov 28 16:24:54 2018
+++ pkgsrc/wm/icewm14/distinfo  Fri Oct 25 10:21:32 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2018/11/28 16:24:54 jperkin Exp $
+$NetBSD: distinfo,v 1.3 2019/10/25 10:21:32 kamil Exp $
 
 SHA1 (icewm-1.4.2.tar.bz2) = d1f9af531fec7beaa334db9c0e4764b9e40bbacd
 RMD160 (icewm-1.4.2.tar.bz2) = 6aaabad0c235901556951c9d88178adf15e29f51
@@ -11,4 +11,4 @@ SHA1 (patch-src_icetray.cc) = a8e70da376
 SHA1 (patch-src_wmapp.cc) = fdabb4348c1dc55d390c942f34aa0fb597f49fc0
 SHA1 (patch-src_wpixres.cc) = aeb0b6423a48e0f3b4074baa2a0a0c9e52e9d8ed
 SHA1 (patch-src_yapp.cc) = f3c8e1d6d0830d4b95d131af37a1f394737a3c48
-SHA1 (patch-src_ylocale.cc) = 72f29d57d3f238c41fa93997724cc7cc8fd5f6f6
+SHA1 (patch-src_ylocale.cc) = 099296135053df781bd3755f9947d34d52fd3020

Index: pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc
diff -u pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc:1.1 pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc:1.2
--- pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc:1.1  Thu Nov  1 09:25:29 2018
+++ pkgsrc/wm/icewm14/patches/patch-src_ylocale.cc      Fri Oct 25 10:21:32 2019
@@ -1,8 +1,23 @@
-$NetBSD: patch-src_ylocale.cc,v 1.1 2018/11/01 09:25:29 bsiegert Exp $
+$NetBSD: patch-src_ylocale.cc,v 1.2 2019/10/25 10:21:32 kamil Exp $
 
---- src/ylocale.cc.orig        2017-07-30 08:53:35.000000000 +0000
+--- src/ylocale.cc.orig        2017-07-30 08:53:35.524267864 +0000
 +++ src/ylocale.cc
-@@ -55,6 +55,8 @@ YLocale::YLocale(char const * localeName
+@@ -28,6 +28,14 @@
+ #include "ylib.h"
+ #include "yprefs.h"
+ 
++#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
+ 
+ #ifdef CONFIG_I18N
+ YLocale * YLocale::instance(NULL);
+@@ -55,6 +63,8 @@ YLocale::YLocale(char const * localeName
      int const codesetItems[] = {
  #ifdef CONFIG_NL_CODESETS
        CONFIG_NL_CODESETS
@@ -11,11 +26,11 @@ $NetBSD: patch-src_ylocale.cc,v 1.1 2018
  #else
        CODESET, _NL_CTYPE_CODESET_NAME, 0
  #endif
-@@ -159,7 +161,11 @@ YUChar *YLocale::unicodeString(const YLC
+@@ -159,7 +169,11 @@ YUChar *YLocale::unicodeString(const YLC
      char * inbuf((char *) lStr), * outbuf((char *) uStr);
      size_t inlen(lLen), outlen(4 * lLen);
  
-+#if defined(__NetBSD__) || defined(__sun)
++#if (defined(__NetBSD__) && !NETBSD_POSIX_ICONV) || defined(__sun)
 +    if (0 > (int) iconv(instance->toUnicode, const_cast<const char **>(&inbuf), &inlen, &outbuf, &outlen))
 +#else
      if (0 > (int) iconv(instance->toUnicode, &inbuf, &inlen, &outbuf, &outlen))



Home | Main Index | Thread Index | Old Index