Discover Centmin Mod today
Register Now

Beta Branch allow manual forced Google Brotli dependency update for ngx_brotli in…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 31, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    41,291
    9,265
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,216
    Local Time:
    10:51 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    allow manual forced Google Brotli dependency update for ngx_brotli in 123.09beta01

    - ngx_brotli nginx module eustas/ngx_brotli is built against Google Brotli. However, Google Brotli version used can be outdated. This update allows experimental forced manual update for Google Brotli version for ngx_brotli via persistent config file /etc/centminmod/custom_config.inc set variable NGINX_BROTLIDEP_UPDATE='y' which is disabled by default to allow ngx_brotli to use the intended Google Brotli version. When enabled NGINX_BROTLIDEP_UPDATE='y' prior to centmin.sh menu option 4 nginx update/compiles, it will override the intended Google Brotli version and use latest version available google/brotli. This is not the Google Brotli version intended by ngx_brotli developer/author so use with care and there maybe bugs unforseen.

    Continue reading...

    123.09beta01 branch
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    41,291
    9,265
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,216
    Local Time:
    10:51 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    example via persistent config file /etc/centminmod/custom_config.inc set variable NGINX_BROTLIDEP_UPDATE='y' inspecting the nginx_upgrade log in /root/centminlogs for ngx_brotli install segment will show when switching from Google Brotli 1.0.4 intended version to manually forced updated Google Brotli 1.0.7 which is currently the latest
    Code (Text):
    BROTLI_CFLAG= -Wno-deprecated-declarations
    download ngx_brotli module
    Cloning into 'ngx_brotli'...
    Submodule 'deps/brotli' (https://github.com/google/brotli.git) registered for path 'deps/brotli'
    Cloning into 'deps/brotli'...
    Submodule path 'deps/brotli': checked out 'c6333e1e79fb62ea088443f192293f964409b04e'
    Submodule 'research/esaxx' (https://github.com/hillbig/esaxx) registered for path 'research/esaxx'
    Submodule 'research/libdivsufsort' (https://github.com/y-256/libdivsufsort.git) registered for path 'research/libdivsufsort'
    Cloning into 'research/esaxx'...
    Submodule path 'deps/brotli/research/esaxx': checked out 'ca7cb332011ec37a8436487f210f396b84bd8273'
    Cloning into 'research/libdivsufsort'...
    Submodule path 'deps/brotli/research/libdivsufsort': checked out '5f60d6f026c30fb4ac296f696b3c8b0eb71bd428'
    
    real    0m3.068s
    user    0m1.003s
    sys     0m0.430s
    #define BROTLI_VERSION 0x1000004
    v1.0.7
    local-1.0.7
    No local changes to save
    Previous HEAD position was c6333e1... Fix MSVC compilation (#657)
    Switched to a new branch 'local-1.0.7'
    #define BROTLI_VERSION 0x1000007
    -- The C compiler identification is GNU 4.8.5
    -- Check for working C compiler: /usr/local/bin/ccache
    -- Check for working C compiler: /usr/local/bin/ccache -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Looking for log2
    -- Looking for log2 - not found
    -- Looking for log2
    -- Looking for log2 - found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /svr-setup/ngx_brotli/deps/brotli
    Scanning dependencies of target brotlicommon
    Scanning dependencies of target brotlicommon-static
    [  8%] [  8%] [  8%] [  8%] Building C object CMakeFiles/brotlicommon-static.dir/c/common/dictionary.c.o
    Building C object CMakeFiles/brotlicommon-static.dir/c/common/transform.c.o
    Building C object CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o
    Building C object CMakeFiles/brotlicommon.dir/c/common/transform.c.o
    Linking C static library libbrotlicommon-static.a
    Linking C shared library libbrotlicommon.so
    [  8%] Built target brotlicommon-static
    [  8%] Built target brotlicommon
    Scanning dependencies of target brotlidec-static
    [ 10%] [ 14%] [ 14%] [ 16%] Scanning dependencies of target brotlidec
    Building C object CMakeFiles/brotlidec-static.dir/c/dec/decode.c.o
    Building C object CMakeFiles/brotlidec-static.dir/c/dec/huffman.c.o
    Building C object CMakeFiles/brotlidec-static.dir/c/dec/bit_reader.c.o
    Building C object CMakeFiles/brotlidec-static.dir/c/dec/state.c.o
    [ 18%] [ 20%] [ 22%] Scanning dependencies of target brotlienc-static
    [ 24%] Building C object CMakeFiles/brotlidec.dir/c/dec/bit_reader.c.o
    Building C object CMakeFiles/brotlidec.dir/c/dec/huffman.c.o
    Building C object CMakeFiles/brotlidec.dir/c/dec/decode.c.o
    [ 26%] [ 28%] Scanning dependencies of target brotlienc
    Linking C static library libbrotlidec-static.a
    Building C object CMakeFiles/brotlidec.dir/c/dec/state.c.o
    [ 30%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/backward_references_hq.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/backward_references.c.o
    [ 34%] [ 34%] [ 36%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/bit_cost.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/brotli_bit_stream.c.o
    Linking C shared library libbrotlidec.so
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/block_splitter.c.o
    [ 38%] Building C object CMakeFiles/brotlienc.dir/c/enc/backward_references.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/backward_references_hq.c.o
    [ 42%] [ 42%] [ 44%] [ 46%] [ 46%] [ 48%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/cluster.c.o
    Built target brotlidec-static
    [ 51%] [ 53%] Building C object CMakeFiles/brotlienc.dir/c/enc/block_splitter.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/brotli_bit_stream.c.o
    [ 55%] [ 57%] Building C object CMakeFiles/brotlienc.dir/c/enc/bit_cost.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/cluster.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/compress_fragment_two_pass.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/dictionary_hash.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/compress_fragment.c.o
    [ 59%] Building C object CMakeFiles/brotlienc.dir/c/enc/compress_fragment.c.o
    [ 61%] [ 63%] [ 65%] [ 67%] Building C object CMakeFiles/brotlienc.dir/c/enc/compress_fragment_two_pass.c.o
    [ 69%] [ 71%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/encoder_dict.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/encode.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/dictionary_hash.c.o
    [ 73%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/entropy_encode.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/encode.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/encoder_dict.c.o
    [ 75%] [ 77%] [ 77%] Built target brotlidec
    [ 79%] [ 81%] [ 83%] [ 85%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/histogram.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/entropy_encode.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/literal_cost.c.o
    [ 87%] Building C object CMakeFiles/brotlienc-static.dir/c/enc/static_dict.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/metablock.c.o
    [ 89%] [ 91%] [ 93%] Building C object CMakeFiles/brotlienc.dir/c/enc/histogram.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/memory.c.o
    [ 95%] Building C object CMakeFiles/brotlienc.dir/c/enc/metablock.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/memory.c.o
    Building C object CMakeFiles/brotlienc-static.dir/c/enc/utf8_util.c.o
    [ 97%] Building C object CMakeFiles/brotlienc.dir/c/enc/literal_cost.c.o
    Building C object CMakeFiles/brotlienc.dir/c/enc/static_dict.c.o
    Linking C static library libbrotlienc-static.a
    Building C object CMakeFiles/brotlienc.dir/c/enc/utf8_util.c.o
    Linking C shared library libbrotlienc.so
    [ 97%] Built target brotlienc-static
    Scanning dependencies of target brotli
    [100%] Building C object CMakeFiles/brotli.dir/c/tools/brotli.c.o
    [100%] Built target brotlienc
    Linking C executable brotli
    [100%] Built target brotli
    [  4%] Built target brotlicommon-static
    [ 12%] Built target brotlidec-static
    [ 48%] Built target brotlienc-static
    [ 51%] Built target brotli
    [ 55%] Built target brotlicommon
    [ 63%] Built target brotlidec
    [100%] Built target brotlienc
    Install the project...
    -- Install configuration: "Debug"
    -- Installing: /usr/local/bin/brotli
    -- Installing: /usr/local/lib/libbrotlienc.so.1.0.7
    -- Up-to-date: /usr/local/lib/libbrotlienc.so.1
    -- Up-to-date: /usr/local/lib/libbrotlienc.so
    -- Removed runtime path from "/usr/local/lib/libbrotlienc.so.1.0.7"
    -- Installing: /usr/local/lib/libbrotlidec.so.1.0.7
    -- Up-to-date: /usr/local/lib/libbrotlidec.so.1
    -- Up-to-date: /usr/local/lib/libbrotlidec.so
    -- Removed runtime path from "/usr/local/lib/libbrotlidec.so.1.0.7"
    -- Installing: /usr/local/lib/libbrotlicommon.so.1.0.7
    -- Up-to-date: /usr/local/lib/libbrotlicommon.so.1
    -- Up-to-date: /usr/local/lib/libbrotlicommon.so
    -- Installing: /usr/local/lib/libbrotlienc-static.a
    -- Installing: /usr/local/lib/libbrotlidec-static.a
    -- Installing: /usr/local/lib/libbrotlicommon-static.a
    -- Installing: /usr/local/include/brotli
    -- Installing: /usr/local/include/brotli/encode.h
    -- Installing: /usr/local/include/brotli/types.h
    -- Installing: /usr/local/include/brotli/port.h
    -- Installing: /usr/local/include/brotli/decode.h
    -- Installing: /usr/local/lib/pkgconfig/libbrotlicommon.pc
    -- Installing: /usr/local/lib/pkgconfig/libbrotlidec.pc
    -- Installing: /usr/local/lib/pkgconfig/libbrotlienc.pc
    

    And installed Brotli command line binary
    Code (Text):
    brotli -V
    brotli 1.0.7
    

    Code (Text):
    brotli -h
    Usage: brotli [OPTION]... [FILE]...
    Options:
      -#                          compression level (0-9)
      -c, --stdout                write on standard output
      -d, --decompress            decompress
      -f, --force                 force output file overwrite
      -h, --help                  display this help and exit
      -j, --rm                    remove source file(s)
      -k, --keep                  keep source file(s) (default)
      -n, --no-copy-stat          do not copy source file(s) attributes
      -o FILE, --output=FILE      output file (only if 1 input file)
      -q NUM, --quality=NUM       compression level (0-11)
      -t, --test                  test compressed file integrity
      -v, --verbose               verbose mode
      -w NUM, --lgwin=NUM         set LZ77 window size (0, 10-24)
                                  window size = 2**NUM - 16
                                  0 lets compressor choose the optimal value
      -S SUF, --suffix=SUF        output file suffix (default:'.br')
      -V, --version               display version and exit
      -Z, --best                  use best compression level (11) (default)
    Simple options could be coalesced, i.e. '-9kf' is equivalent to '-9 -k -f'.
    With no FILE, or when FILE is -, read standard input.
    All arguments after '--' are treated as files.
    
     
    • Like Like x 1