pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/flactag flactag: Fix build on NetBSD 9.99.17



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c33bdb8c819c
branches:  trunk
changeset: 342754:c33bdb8c819c
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Fri Oct 25 09:03:47 2019 +0000

description:
flactag: Fix build on NetBSD 9.99.17

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

diffstat:

 audio/flactag/distinfo         |   4 ++--
 audio/flactag/patches/patch-aa |  22 ++++++++++++++++++----
 2 files changed, 20 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 39e35891e03f -r c33bdb8c819c audio/flactag/distinfo
--- a/audio/flactag/distinfo    Fri Oct 25 08:56:55 2019 +0000
+++ b/audio/flactag/distinfo    Fri Oct 25 09:03:47 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 01:12:31 agc Exp $
+$NetBSD: distinfo,v 1.8 2019/10/25 09:03:47 kamil Exp $
 
 SHA1 (flactag-2.0.4.tar.gz) = eb62b3b8657fe26c6f838b0098fd4f176ccb454d
 RMD160 (flactag-2.0.4.tar.gz) = 2eeece5d5da94a51e0e11fe425de3d0ec11b6639
@@ -8,4 +8,4 @@
 SHA1 (patch-ConfigFile.cc) = 73ead20be34420b903eaa5ad61b7ba60f0aa03fe
 SHA1 (patch-ErrorLog.cc) = d3557d5f19a571fbaeb9b6cfe574cf7b31afb1d1
 SHA1 (patch-FileNameBuilder.cc) = 8daed0f95e479b22228bd4f62163f8f148107df8
-SHA1 (patch-aa) = af23402361767ad79a2b0af006e2a89a25318d41
+SHA1 (patch-aa) = c741bef95af53ab2047c3af186d1caa00b62caf8
diff -r 39e35891e03f -r c33bdb8c819c audio/flactag/patches/patch-aa
--- a/audio/flactag/patches/patch-aa    Fri Oct 25 08:56:55 2019 +0000
+++ b/audio/flactag/patches/patch-aa    Fri Oct 25 09:03:47 2019 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.4 2012/11/06 18:38:34 drochner Exp $
+$NetBSD: patch-aa,v 1.5 2019/10/25 09:03:47 kamil Exp $
 
 --- UTF8Tag.cc.orig    2012-06-19 12:40:34.000000000 +0000
 +++ UTF8Tag.cc
-@@ -34,6 +34,7 @@
+@@ -34,11 +34,21 @@
  #include <string.h>
  #include <stdio.h>
  #include <stdlib.h>
@@ -10,11 +10,25 @@
  
  #include <iconv.h>
  
-@@ -73,11 +74,15 @@ void CUTF8Tag::Convert()
+ #include <sstream>
+ 
++#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
++
+ #include "ErrorLog.h"
+ 
+ CUTF8Tag::CUTF8Tag(const std::string& UTF8Value)
+@@ -73,11 +83,15 @@ void CUTF8Tag::Convert()
                memset(Out,0,m_UTF8Value.length()*4);
                size_t OutLeft=m_UTF8Value.length()*4;
  
-+#if defined(__DragonFly__) || (__linux__)
++#if defined(__DragonFly__) || (__linux__) || (defined(__NetBSD__) && NETBSD_POSIX_ICONV)
                char *InBuff=In;
 +#else
 +              const char *InBuff=In;



Home | Main Index | Thread Index | Old Index