Welcome to Centmin Mod Community
Become a Member

Beta Branch add custom zlib 1.2.11 version support to Nginx compiles

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 5, 2017.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    11:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    add custom zlib 1.2.11 version support to Nginx compiles

    In 123.09beta01 and higher allow Nginx compiles to optionally use custom zlib 1.2.11+ versions for Nginx compile instead of system zlib version. Disabled by default NGINX_ZLIBCUSTOM='n', but can enabled via setting in persistent config file /etc/centminmod/custom_config.inc the following variable

    Code (Text):
    NGINX_ZLIBCUSTOM='y'
    


    Then run centmin.sh menu option 4 to compile Nginx

    Continue reading...


    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    11:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    example
     
  3. Revenge

    Revenge Active Member

    469
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    1:56 PM
    1.9.x
    10.1.x
    System zlib version is 1.2.7. Is there any noticeable diference to 1.2.11?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    11:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    actually quite huge diff zlib Home Site

    http://zlib.net/ChangeLog.txt
    Code (Text):
    
    
                   ChangeLog file for zlib
    
    Changes in 1.2.11 (15 Jan 2017)
    - Fix deflate stored bug when pulling last block from window
    - Permit immediate deflateParams changes before any deflate input
    
    Changes in 1.2.10 (2 Jan 2017)
    - Avoid warnings on snprintf() return value
    - Fix bug in deflate_stored() for zero-length input
    - Fix bug in gzwrite.c that produced corrupt gzip files
    - Remove files to be installed before copying them in Makefile.in
    - Add warnings when compiling with assembler code
    
    Changes in 1.2.9 (31 Dec 2016)
    - Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
    - Improve contrib/blast to return unused bytes
    - Assure that gzoffset() is correct when appending
    - Improve compress() and uncompress() to support large lengths
    - Fix bug in test/example.c where error code not saved
    - Remedy Coverity warning [Randers-Pehrson]
    - Improve speed of gzprintf() in transparent mode
    - Fix inflateInit2() bug when windowBits is 16 or 32
    - Change DEBUG macro to ZLIB_DEBUG
    - Avoid uninitialized access by gzclose_w()
    - Allow building zlib outside of the source directory
    - Fix bug that accepted invalid zlib header when windowBits is zero
    - Fix gzseek() problem on MinGW due to buggy _lseeki64 there
    - Loop on write() calls in gzwrite.c in case of non-blocking I/O
    - Add --warn (-w) option to ./configure for more compiler warnings
    - Reject a window size of 256 bytes if not using the zlib wrapper
    - Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
    - Add --debug (-d) option to ./configure to define ZLIB_DEBUG
    - Fix bugs in creating a very large gzip header
    - Add uncompress2() function, which returns the input size used
    - Assure that deflateParams() will not switch functions mid-block
    - Dramatically speed up deflation for level 0 (storing)
    - Add gzfread(), duplicating the interface of fread()
    - Add gzfwrite(), duplicating the interface of fwrite()
    - Add deflateGetDictionary() function
    - Use snprintf() for later versions of Microsoft C
    - Fix *Init macros to use z_ prefix when requested
    - Replace as400 with os400 for OS/400 support [Monnerat]
    - Add crc32_z() and adler32_z() functions with size_t lengths
    - Update Visual Studio project files [AraHaan]
    
    Changes in 1.2.8 (28 Apr 2013)
    - Update contrib/minizip/iowin32.c for Windows RT [Vollant]
    - Do not force Z_CONST for C++
    - Clean up contrib/vstudio [Roß]
    - Correct spelling error in zlib.h
    - Fix mixed line endings in contrib/vstudio
    
    Changes in 1.2.7.3 (13 Apr 2013)
    - Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc
    
    Changes in 1.2.7.2 (13 Apr 2013)
    - Change check for a four-byte type back to hexadecimal
    - Fix typo in win32/Makefile.msc
    - Add casts in gzwrite.c for pointer differences
    
    Changes in 1.2.7.1 (24 Mar 2013)
    - Replace use of unsafe string functions with snprintf if available
    - Avoid including stddef.h on Windows for Z_SOLO compile [Niessink]
    - Fix gzgetc undefine when Z_PREFIX set [Turk]
    - Eliminate use of mktemp in Makefile (not always available)
    - Fix bug in 'F' mode for gzopen()
    - Add inflateGetDictionary() function
    - Correct comment in deflate.h
    - Use _snprintf for snprintf in Microsoft C
    - On Darwin, only use /usr/bin/libtool if libtool is not Apple
    - Delete "--version" file if created by "ar --version" [Richard G.]
    - Fix configure check for veracity of compiler error return codes
    - Fix CMake compilation of static lib for MSVC2010 x64
    - Remove unused variable in infback9.c
    - Fix argument checks in gzlog_compress() and gzlog_write()
    - Clean up the usage of z_const and respect const usage within zlib
    - Clean up examples/gzlog.[ch] comparisons of different types
    - Avoid shift equal to bits in type (caused endless loop)
    - Fix uninitialized value bug in gzputc() introduced by const patches
    - Fix memory allocation error in examples/zran.c [Nor]
    - Fix bug where gzopen(), gzclose() would write an empty file
    - Fix bug in gzclose() when gzwrite() runs out of memory
    - Check for input buffer malloc failure in examples/gzappend.c
    - Add note to contrib/blast to use binary mode in stdio
    - Fix comparisons of differently signed integers in contrib/blast
    - Check for invalid code length codes in contrib/puff
    - Fix serious but very rare decompression bug in inftrees.c
    - Update inflateBack() comments, since inflate() can be faster
    - Use underscored I/O function names for WINAPI_FAMILY
    - Add _tr_flush_bits to the external symbols prefixed by --zprefix
    - Add contrib/vstudio/vc10 pre-build step for static only
    - Quote --version-script argument in CMakeLists.txt
    - Don't specify --version-script on Apple platforms in CMakeLists.txt
    - Fix casting error in contrib/testzlib/testzlib.c
    - Fix types in contrib/minizip to match result of get_crc_table()
    - Simplify contrib/vstudio/vc10 with 'd' suffix
    - Add TOP support to win32/Makefile.msc
    - Suport i686 and amd64 assembler builds in CMakeLists.txt
    - Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h
    - Add vc11 and vc12 build files to contrib/vstudio
    - Add gzvprintf() as an undocumented function in zlib
    - Fix configure for Sun shell
    - Remove runtime check in configure for four-byte integer type
    - Add casts and consts to ease user conversion to C++
    - Add man pages for minizip and miniunzip
    - In Makefile uninstall, don't rm if preceding cd fails
    - Do not return Z_BUF_ERROR if deflateParam() has nothing to write
    


    versus system zlib
    Code (Text):
    rpm -qa --changelog zlib | head -n20
    * Thu May 19 2016 jchaloup <jchaloup@redhat.com> - 1.2.7-17
    - Fix writing empty files on gzopen()/gzclose()
      resolves: #1337441
    
    * Wed Apr 27 2016 jchaloup <jchaloup@redhat.com> - 1.2.7-16
    - Fix serious but very rare decompression bug in inftrees.c (upstream patch)
      resolves: #1127330
    
    * Tue May 12 2015 Peter Robinson <pbrobinson@redhat.com> 1.2.7-15
    - Rebuild for rhbz #1123500
    
    * Thu Jul 31 2014 jchaloup <jchaloup@redhat.com> - 1.2.7-14
    - resolves: #1123500
      recompiled with -O3 flag for ppc64le arch
    
    * Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.7-13
    - Mass rebuild 2014-01-24
    
    * Fri Jan 10 2014 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-12
    - resolves: #1051079
    
     
  5. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:56 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Looking good to add into nginx (y)
    90 seconds to recompile

     
  6. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    11:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    excellent if all goes well, 123.09beta01 will eventually default to
    NGINX_ZLIBCUSTOM='y' :D

    So test away ;) :)
     
  7. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:56 PM
    Mainline
    10.2
    What will happen to Cloudflare Zlib?
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    11:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cloudflare zlib is enabled if NGINX_ZLIBCUSTOM='y' + CLOUDFLARE_ZLIB='y'

    First variable control if centmin mod compiles with zlib or if uses system zlib yum default

    And CLOUDFLARE_ZLIB='y' controls if nginx compiles with custom zlib std or custom cloudflare zlib