cvs commit: patches/unzip unzip-5.51-dont-make-noise.patch unzip-5.51-fix-libz.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sun May 30 10:01:16 PDT 2004


jim         04/05/30 11:01:16

  Added:       unzip    unzip-5.51-dont-make-noise.patch
                        unzip-5.51-fix-libz.patch
  Log:
  Added: Unzip 5.51 Patches
  
  Revision  Changes    Path
  1.1                  patches/unzip/unzip-5.51-dont-make-noise.patch
  
  Index: unzip-5.51-dont-make-noise.patch
  ===================================================================
  Submitted By: Tushar Teredesai <tushar at linuxfromscratch.org>
  Date: 2003-09-22
  Initial Package Version: 5.50
  Origin: http://archive.linuxfromscratch.org/mail-archives/blfs-dev/2003-August/003213.html
  Description: When unzipping files, the unzip stub prints out lot of "useful" info messages.
  These messages can cause applications such as Midnight Commander to display strange behavior.
  This patch is useful for users linking unzip to the system zlib
  (i.e. installed as per the BLFS guidelines).
  --- unzip-5.50/unzipstb.c.orig	2003-09-22 01:05:45.000000000 -0500
  +++ unzip-5.50/unzipstb.c	2003-09-22 01:06:57.000000000 -0500
  @@ -30,27 +30,6 @@
   
       pVersion = UzpVersion();
   
  -    printf("UnZip stub:  checking version numbers (DLL is dated %s)\n",
  -      pVersion->date);
  -    printf("   UnZip versions:    expecting %d.%d%d, using %d.%d%d%s\n",
  -      UZ_MAJORVER, UZ_MINORVER, UZ_PATCHLEVEL, pVersion->unzip.major,
  -      pVersion->unzip.minor, pVersion->unzip.patchlevel, pVersion->betalevel);
  -    printf("   ZipInfo versions:  expecting %d.%d%d, using %d.%d%d\n",
  -      ZI_MAJORVER, ZI_MINORVER, UZ_PATCHLEVEL, pVersion->zipinfo.major,
  -      pVersion->zipinfo.minor, pVersion->zipinfo.patchlevel);
  -
  -/*
  -    D2_M*VER and os2dll.* are obsolete, though retained for compatibility:
  -
  -    printf("   OS2 DLL versions:  expecting %d.%d%d, using %d.%d%d\n",
  -      D2_MAJORVER, D2_MINORVER, D2_PATCHLEVEL, pVersion->os2dll.major,
  -      pVersion->os2dll.minor, pVersion->os2dll.patchlevel);
  - */
  -
  -    if (pVersion->flag & 2)
  -        printf("   using zlib version %s\n", pVersion->zlib_version);
  -    printf("\n");
  -
       /* call the actual UnZip routine (string-arguments version) */
       return UzpMain(argc, argv);
   }
  
  
  
  1.1                  patches/unzip/unzip-5.51-fix-libz.patch
  
  Index: unzip-5.51-fix-libz.patch
  ===================================================================
  Submitted By: BLFS Book <blfs-book at linuxfromscratch.org>
  Date: 2003-10-03
  Initial Package Version: 5.50
  Origin: NA
  Description: Fixes compilation against system zlib.
  diff -urN unzip-5.50/api.c unzip-5.50-rcl/api.c
  --- unzip-5.50/api.c	Thu Nov 22 23:43:26 2001
  +++ unzip-5.50-rcl/api.c	Sat Sep 28 14:31:51 2002
  @@ -48,6 +48,11 @@
   #endif
   #include "unzvers.h"
   
  +/* This is defined as zlibVersion() in zlib.h version 1.1.4 */
  +#ifdef   zlib_version
  +#  undef zlib_version
  +#endif
  +
   #ifdef DLL      /* This source file supplies DLL-only interface code. */
   
   jmp_buf dll_error_return;
  
  
  



More information about the patches mailing list