commit:     52756e88dd9d1e0bb05247c78b3223b853978482
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 16 10:56:51 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 12:11:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52756e88

app-arch/libarchive: Require xz-utils[extra-filters] for tests

Closes: https://bugs.gentoo.org/870154
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-arch/libarchive/libarchive-3.7.2.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/app-arch/libarchive/libarchive-3.7.2.ebuild 
b/app-arch/libarchive/libarchive-3.7.2.ebuild
index f5108832c6b5..3d5b9c43c1f6 100644
--- a/app-arch/libarchive/libarchive-3.7.2.ebuild
+++ b/app-arch/libarchive/libarchive-3.7.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -17,8 +17,11 @@ SRC_URI="
 LICENSE="BSD BSD-2 BSD-4 public-domain"
 SLOT="0/13"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
-IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle 
static-libs xattr zstd"
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libarchive.org.asc
+IUSE="
+       acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle
+       static-libs test xattr zstd
+"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
        sys-libs/zlib[${MULTILIB_USEDEP}]
@@ -43,12 +46,17 @@ DEPEND="${RDEPEND}
                virtual/os-headers
                e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
        )
+       test? (
+               lzma? ( app-arch/xz-utils[extra-filters(+)] )
+       )
 "
 BDEPEND="
        verify-sig? ( >=sec-keys/openpgp-keys-libarchive-20221209 )
        elibc_musl? ( sys-libs/queue-standalone )
 "
 
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libarchive.org.asc
+
 # false positives (checks for libc-defined hash functions)
 QA_CONFIG_IMPL_DECL_SKIP=(
        SHA256_Init SHA256_Update SHA256_Final

Reply via email to