Skip to content
  • Guillem Jover's avatar
    libdpkg: Add zstd support for .deb archives · 2c2f7066
    Guillem Jover authored
    This adds support for .deb ZStandard compression and decompression.
    The main reason for this addition is due to Ubuntu having forked the
    .deb ecosystem when they added support for this unilaterally, so now
    there are many .deb in the wild using this compression format, which
    cannot be handled by the upstream dpkg-deb tool.
    
    Although at least now the ZStandard format is widely used on many
    projects, has been specified within the IETF as RFC8878, so backwards
    compatibility and format stability are no longer a concern, and it has
    good trade offs between size and speed.
    
    This has been implemented from scratch, based on the initial prototype
    code used during the early request evaluation. Using the new advanced
    API, with support for multi-threading, and using an I/O loop resembling
    the one used with liblzma, as the plan is to eventually switch all
    compressors to use a single I/O loop implementation.
    
    Closes: #892664
    2c2f7066