pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/ucon64 Add a cast to some indescribably horr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5acdcd076d5a
branches:  trunk
changeset: 603691:5acdcd076d5a
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Thu May 10 22:11:20 2012 +0000

description:
Add a cast to some indescribably horrible code to fix a build failure seen
in the last Linux bulk build.

diffstat:

 emulators/ucon64/distinfo         |   4 ++--
 emulators/ucon64/patches/patch-af |  21 +++++++++++++++++++--
 2 files changed, 21 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 97dbeb2c729f -r 5acdcd076d5a emulators/ucon64/distinfo
--- a/emulators/ucon64/distinfo Thu May 10 21:58:38 2012 +0000
+++ b/emulators/ucon64/distinfo Thu May 10 22:11:20 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2006/10/23 11:17:55 tv Exp $
+$NetBSD: distinfo,v 1.5 2012/05/10 22:11:20 dholland Exp $
 
 SHA1 (ucon64-2.0.0-src.tar.gz) = 8782bbc2bf5760fafe3fa4cd02b67991d984a973
 RMD160 (ucon64-2.0.0-src.tar.gz) = c28921cfae1a010db917b96be542c089690b374c
@@ -8,4 +8,4 @@
 SHA1 (patch-ac) = 9c7febe59e1c8e6959f56e34ced83a31fa54c294
 SHA1 (patch-ad) = c41895de15bc2a48bf5de1535f03d070ade79ea3
 SHA1 (patch-ae) = bfb38ecec2408deaaef881fa33943e2c45bccd4d
-SHA1 (patch-af) = 5fea372717e49f3d161c544e5ee01a8d23d688ba
+SHA1 (patch-af) = 84476b894a34bb1d7074526340eaa97fcbcfd0aa
diff -r 97dbeb2c729f -r 5acdcd076d5a emulators/ucon64/patches/patch-af
--- a/emulators/ucon64/patches/patch-af Thu May 10 21:58:38 2012 +0000
+++ b/emulators/ucon64/patches/patch-af Thu May 10 22:11:20 2012 +0000
@@ -1,6 +1,14 @@
-$NetBSD: patch-af,v 1.1 2005/12/09 11:48:11 joerg Exp $
+$NetBSD: patch-af,v 1.2 2012/05/10 22:11:20 dholland Exp $
+
+- don't declare own errno
+- fix build failure where gzgetc() is a macro (seen in a recent Linux
+  bulk build)
 
---- misc/archive.c.orig        2005-12-09 11:42:47.000000000 +0000
+XXX: what this code is doing (mixing gzFile* and FILE* indiscriminately
+XXX: without even casting) is vile and will probably stop compiling at
+XXX: some point.
+
+--- misc/archive.c.orig        2004-12-12 01:16:54.000000000 +0000
 +++ misc/archive.c
 @@ -48,9 +48,6 @@ Foundation, Inc., 675 Mass Ave, Cambridg
  #define MAXBUFSIZE 32768
@@ -12,3 +20,12 @@
  int
  fsizeof (const char *filename)
  // If USE_ZLIB is defined this function is very slow. Please avoid to use
+@@ -498,7 +495,7 @@ fgetc2 (FILE *file)
+   if (fmode == FM_NORMAL)
+     return fgetc (file);
+   else if (fmode == FM_GZIP)
+-    return gzgetc (file);
++    return gzgetc ((struct gzFile *)file);
+   else if (fmode == FM_ZIP)
+     {
+       char c;



Home | Main Index | Thread Index | Old Index