Add zstd support to libarchive (#25659)
This commit is contained in:
parent
3a4073cfff
commit
e2b9ba3001
@ -26,11 +26,11 @@ class Libarchive(AutotoolsPackage):
|
|||||||
variant('libs', default='static,shared', values=('static', 'shared'),
|
variant('libs', default='static,shared', values=('static', 'shared'),
|
||||||
multi=True, description='What libraries to build')
|
multi=True, description='What libraries to build')
|
||||||
|
|
||||||
# TODO: BLAKE2 and zstd (can't just add this, because libarchive is a dependency of
|
# TODO: BLAKE2 is missing
|
||||||
# cmake, and zstd currently uses cmake as a build system)
|
variant('compression', default='bz2lib,lz4,lzo2,lzma,zlib,zstd', values=('bz2lib', 'lz4', 'lzo2', 'lzma', 'zlib', 'zstd'), multi=True, description='Supported compression')
|
||||||
variant('compression', default='bz2lib,lz4,lzo2,lzma,zlib', values=('bz2lib', 'lz4', 'lzo2', 'lzma', 'zlib'), multi=True, description='Supported compression')
|
|
||||||
variant('xar', default='libxml2', values=('libxml2', 'expat'), description='What library to use for xar support')
|
variant('xar', default='libxml2', values=('libxml2', 'expat'), description='What library to use for xar support')
|
||||||
variant('crypto', default='mbedtls', values=('mbedtls', 'nettle', 'openssl'), description='What crypto library to use for mtree and xar hashes')
|
variant('crypto', default='mbedtls', values=('mbedtls', 'nettle', 'openssl'), description='What crypto library to use for mtree and xar hashes')
|
||||||
|
variant('programs', values=any_combination_of('bsdtar', 'bsdcpio', 'bsdcat'), description='What executables to build')
|
||||||
variant('iconv', default=True, description='Support iconv')
|
variant('iconv', default=True, description='Support iconv')
|
||||||
|
|
||||||
depends_on('bzip2', when='compression=bz2lib')
|
depends_on('bzip2', when='compression=bz2lib')
|
||||||
@ -38,6 +38,7 @@ class Libarchive(AutotoolsPackage):
|
|||||||
depends_on('lzo', when='compression=lzo2')
|
depends_on('lzo', when='compression=lzo2')
|
||||||
depends_on('xz', when='compression=lzma')
|
depends_on('xz', when='compression=lzma')
|
||||||
depends_on('zlib', when='compression=zlib')
|
depends_on('zlib', when='compression=zlib')
|
||||||
|
depends_on('zstd', when='compression=zstd')
|
||||||
|
|
||||||
depends_on('nettle', when='crypto=nettle')
|
depends_on('nettle', when='crypto=nettle')
|
||||||
depends_on('openssl', when='crypto=openssl')
|
depends_on('openssl', when='crypto=openssl')
|
||||||
@ -54,13 +55,11 @@ class Libarchive(AutotoolsPackage):
|
|||||||
# The build test suite cannot be built with Intel
|
# The build test suite cannot be built with Intel
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = [
|
args = ['--without-libb2']
|
||||||
'--without-libb2',
|
|
||||||
'--without-zstd',
|
|
||||||
]
|
|
||||||
args += self.with_or_without('compression')
|
args += self.with_or_without('compression')
|
||||||
args += self.with_or_without('crypto')
|
args += self.with_or_without('crypto')
|
||||||
args += self.with_or_without('iconv')
|
args += self.with_or_without('iconv')
|
||||||
args += self.with_or_without('xar')
|
args += self.with_or_without('xar')
|
||||||
|
args += self.enable_or_disable('programs')
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user