pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/unalz Apply const to fix build with recent gcc.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d124152e65c0
branches:  trunk
changeset: 604089:d124152e65c0
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Wed May 23 04:11:38 2012 +0000

description:
Apply const to fix build with recent gcc.

diffstat:

 archivers/unalz/distinfo         |   4 ++--
 archivers/unalz/patches/patch-ad |  18 ++++++++++++++----
 2 files changed, 16 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r f442d3f59c34 -r d124152e65c0 archivers/unalz/distinfo
--- a/archivers/unalz/distinfo  Wed May 23 03:59:33 2012 +0000
+++ b/archivers/unalz/distinfo  Wed May 23 04:11:38 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2011/03/27 08:00:56 obache Exp $
+$NetBSD: distinfo,v 1.17 2012/05/23 04:11:38 dholland Exp $
 
 SHA1 (unalz-0.61.tgz) = a6cab2a02b7f44957211e694b7d8d144840b2255
 RMD160 (unalz-0.61.tgz) = 68cb957aeacfc8452e01637f7e0a50939d515ab6
@@ -7,4 +7,4 @@
 SHA1 (patch-aa) = 327fd080040946fe7a0707698f90d7709a2d3c5b
 SHA1 (patch-ab) = 2e11decd5f1a81cf2012a044241e170f68af424a
 SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4
-SHA1 (patch-ad) = cc0951b807e25b5f8097583d674b5ed9ff24f5c7
+SHA1 (patch-ad) = 0a830c3995600d0c25ae1b32c00df2d0604571d7
diff -r f442d3f59c34 -r d124152e65c0 archivers/unalz/patches/patch-ad
--- a/archivers/unalz/patches/patch-ad  Wed May 23 03:59:33 2012 +0000
+++ b/archivers/unalz/patches/patch-ad  Wed May 23 04:11:38 2012 +0000
@@ -1,9 +1,10 @@
-$NetBSD: patch-ad,v 1.1 2005/10/22 18:12:09 rillig Exp $
+$NetBSD: patch-ad,v 1.2 2012/05/23 04:11:38 dholland Exp $
 
-<locale.h> is needed to declare LC_ALL.
+ - <locale.h> is needed to declare LC_ALL.
+ - update const compliance for recent C++ compilers
 
---- main.cpp.orig      Wed Jul 27 15:31:54 2005
-+++ main.cpp   Sat Oct 22 20:10:14 2005
+--- main.cpp.orig      2007-02-10 15:08:27.000000000 +0000
++++ main.cpp
 @@ -2,6 +2,7 @@
  #     pragma warning( disable : 4786 )                // stl warning ¾ø¾Ö±â
  #endif
@@ -12,3 +13,12 @@
  #include <stdio.h>
  #include <iostream>
  #include <time.h>
+@@ -131,7 +132,7 @@ int main(int argc, char* argv[])
+ 
+       CUnAlz  unalz;
+       char* source=NULL;
+-      char* destpath=".";
++      const char* destpath=".";
+       char* destcodepage=NULL;
+       char* password=NULL;
+       int   count;



Home | Main Index | Thread Index | Old Index