public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/
Date: Sat, 17 Feb 2024 06:10:30 +0000 (UTC)	[thread overview]
Message-ID: <1708150226.d792390fa0f96947cd95ebbed70d028d0061f836.mgorny@gentoo> (raw)

commit:     d792390fa0f96947cd95ebbed70d028d0061f836
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 17 06:02:48 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 06:10:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d792390f

app-arch/libarchive: Add optional test dependencies

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-arch/libarchive/libarchive-3.7.2-r2.ebuild | 164 +++++++++++++++++++++++++
 1 file changed, 164 insertions(+)

diff --git a/app-arch/libarchive/libarchive-3.7.2-r2.ebuild b/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
new file mode 100644
index 000000000000..ba60d198663c
--- /dev/null
+++ b/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit multilib-minimal toolchain-funcs verify-sig
+
+DESCRIPTION="Multi-format archive and compression library"
+HOMEPAGE="
+	https://www.libarchive.org/
+	https://github.com/libarchive/libarchive/
+"
+SRC_URI="
+	https://www.libarchive.de/downloads/${P}.tar.xz
+	verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.xz.asc )
+"
+
+LICENSE="BSD BSD-2 BSD-4 public-domain"
+SLOT="0/13"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~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 test xattr zstd
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	sys-libs/zlib[${MULTILIB_USEDEP}]
+	acl? ( virtual/acl[${MULTILIB_USEDEP}] )
+	blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
+	bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+	expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
+	!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
+	iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+	kernel_linux? (
+		xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
+	)
+	dev-libs/openssl:0=[${MULTILIB_USEDEP}]
+	lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
+	lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
+	lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
+	nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
+	zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+	kernel_linux? (
+		virtual/os-headers
+		e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
+	)
+	test? (
+		app-arch/lrzip
+		app-arch/lz4
+		app-arch/lzip
+		app-arch/lzop
+		app-arch/xz-utils
+		app-arch/zstd
+		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
+	SHA384_Init SHA384_Update SHA384_Final
+	SHA512_Init SHA512_Update SHA512_Final
+)
+
+PATCHES=(
+	# https://github.com/libarchive/libarchive/issues/1968
+	"${FILESDIR}/${P}-32bit-test.patch"
+	# https://github.com/libarchive/libarchive/issues/2069
+	# (we can simply update the command since we don't support old lrzip)
+	"${FILESDIR}/${P}-lrzip.patch"
+)
+
+multilib_src_configure() {
+	export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
+
+	local myconf=(
+		$(use_enable acl)
+		$(use_enable static-libs static)
+		$(use_enable xattr)
+		$(use_with blake2 libb2)
+		$(use_with bzip2 bz2lib)
+		$(use_with expat)
+		$(use_with !expat xml2)
+		$(use_with iconv)
+		$(use_with lz4)
+		$(use_with lzma)
+		$(use_with lzo lzo2)
+		$(use_with nettle)
+		--with-zlib
+		$(use_with zstd)
+
+		# Windows-specific
+		--without-cng
+	)
+	if multilib_is_native_abi ; then
+		myconf+=(
+			--enable-bsdcat="$(tc-is-static-only && echo static || echo shared)"
+			--enable-bsdcpio="$(tc-is-static-only && echo static || echo shared)"
+			--enable-bsdtar="$(tc-is-static-only && echo static || echo shared)"
+			--enable-bsdunzip="$(tc-is-static-only && echo static || echo shared)"
+		)
+	else
+		myconf+=(
+			--disable-bsdcat
+			--disable-bsdcpio
+			--disable-bsdtar
+			--disable-bsdunzip
+		)
+	fi
+
+	ECONF_SOURCE="${S}" econf "${myconf[@]}"
+}
+
+multilib_src_compile() {
+	if multilib_is_native_abi ; then
+		emake
+	else
+		emake libarchive.la
+	fi
+}
+
+src_test() {
+	mkdir -p "${T}"/bin || die
+	# tests fail when lbzip2[symlink] is used in place of ref bunzip2
+	ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
+	local -x PATH=${T}/bin:${PATH}
+	multilib-minimal_src_test
+}
+
+multilib_src_test() {
+	# sandbox is breaking long symlink behavior
+	local -x SANDBOX_ON=0
+	local -x LD_PRELOAD=
+	# some locales trigger different output that breaks tests
+	local -x LC_ALL=C
+	emake check
+}
+
+multilib_src_install() {
+	if multilib_is_native_abi ; then
+		emake DESTDIR="${D}" install
+	else
+		local install_targets=(
+			install-includeHEADERS
+			install-libLTLIBRARIES
+			install-pkgconfigDATA
+		)
+		emake DESTDIR="${D}" "${install_targets[@]}"
+	fi
+
+	# Libs.private: should be used from libarchive.pc instead
+	find "${ED}" -type f -name "*.la" -delete || die
+	# https://github.com/libarchive/libarchive/issues/1766
+	sed -e '/Requires\.private/s:iconv::' \
+		-i "${ED}/usr/$(get_libdir)/pkgconfig/libarchive.pc" || die
+}


             reply	other threads:[~2024-02-17  6:10 UTC|newest]

Thread overview: 245+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-17  6:10 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-24 17:51 [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/ Sam James
2024-09-24  7:10 Arthur Zamarin
2024-09-24  7:09 Arthur Zamarin
2024-09-24  7:08 Arthur Zamarin
2024-09-24  7:08 Arthur Zamarin
2024-09-24  6:18 Sam James
2024-09-24  6:14 Sam James
2024-09-24  5:32 Michał Górny
2024-09-23 10:55 Sam James
2024-09-18  9:37 Arthur Zamarin
2024-09-18  9:37 Arthur Zamarin
2024-09-18  6:36 Arthur Zamarin
2024-09-18  6:36 Arthur Zamarin
2024-09-18  6:36 Arthur Zamarin
2024-09-18  6:36 Arthur Zamarin
2024-06-15  8:15 Michał Górny
2024-05-25 17:31 Arthur Zamarin
2024-05-22 11:40 Michał Górny
2024-05-22 11:40 Michał Górny
2024-05-22  9:22 Michał Górny
2024-05-22  9:22 Michał Górny
2024-05-22  9:10 Michał Górny
2024-05-22  9:10 Michał Górny
2024-05-11 15:19 Sam James
2024-04-27  8:04 Arthur Zamarin
2024-04-27  8:04 Arthur Zamarin
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-27  7:40 Michał Górny
2024-04-27  6:53 Michał Górny
2024-04-26 18:55 Michał Górny
2024-04-17  6:54 Sam James
2024-04-10  4:16 Ionen Wolkens
2024-04-09  6:01 Michał Górny
2024-03-26 20:17 Ionen Wolkens
2024-03-26 20:17 Ionen Wolkens
2024-03-25 15:21 Michał Górny
2024-03-09 20:24 Sam James
2024-02-29  7:15 Sam James
2024-02-17 12:26 Jakov Smolić
2024-02-17  9:55 Arthur Zamarin
2024-02-16 12:11 Michał Górny
2023-12-15 11:17 Michał Górny
2023-12-15 11:12 Arthur Zamarin
2023-12-02 17:26 Arthur Zamarin
2023-12-02 11:48 Arthur Zamarin
2023-12-02 11:01 Arthur Zamarin
2023-12-02 10:43 Michał Górny
2023-12-02 10:21 Arthur Zamarin
2023-12-02 10:15 Arthur Zamarin
2023-12-02 10:14 Arthur Zamarin
2023-08-02 22:08 Sam James
2023-08-02 15:11 Sam James
2023-08-01 19:42 Arthur Zamarin
2023-07-30 16:57 Sam James
2023-07-30 12:46 Sam James
2023-07-30 12:46 Sam James
2023-07-30  8:55 Sam James
2023-07-30  3:14 Michał Górny
2023-07-19  8:06 Michał Górny
2023-05-30 13:55 Fabian Groffen
2023-04-08 18:05 Arthur Zamarin
2023-04-08 17:51 Arthur Zamarin
2023-04-08 17:45 Arthur Zamarin
2023-04-08 17:42 Arthur Zamarin
2023-04-08 17:40 Arthur Zamarin
2023-04-08 17:39 Arthur Zamarin
2023-04-08 17:31 Arthur Zamarin
2023-04-08 16:59 Arthur Zamarin
2023-02-28 17:08 Michał Górny
2023-02-28 16:36 Michał Górny
2023-02-28 16:36 Michał Górny
2022-12-09 16:31 Michał Górny
2022-12-09 16:31 Michał Górny
2022-09-04 12:25 Michał Górny
2022-04-29  7:59 WANG Xuerui
2022-04-16 19:35 Sam James
2022-04-16 15:48 Michał Górny
2022-04-16  4:54 Arthur Zamarin
2022-04-16  4:54 Arthur Zamarin
2022-04-16  4:47 Arthur Zamarin
2022-04-14  8:11 Agostino Sarubbo
2022-04-14  8:10 Agostino Sarubbo
2022-04-14  8:09 Agostino Sarubbo
2022-04-09 17:57 Agostino Sarubbo
2022-04-09 17:56 Agostino Sarubbo
2022-04-08 14:27 Michał Górny
2022-03-26 19:11 Arthur Zamarin
2022-03-25  7:48 Agostino Sarubbo
2022-03-25  7:47 Agostino Sarubbo
2022-03-25  7:46 Agostino Sarubbo
2022-03-24 19:03 Jakov Smolić
2022-03-24 19:03 Jakov Smolić
2022-03-24 19:03 Jakov Smolić
2022-03-24 18:07 Michał Górny
2022-02-12 10:20 Michał Górny
2022-02-11 12:25 Sam James
2022-02-10  0:42 Sam James
2022-02-09 14:14 Michał Górny
2022-02-09  6:53 Agostino Sarubbo
2022-02-09  1:25 Sam James
2022-02-09  1:23 Sam James
2022-02-08 18:31 Arthur Zamarin
2022-02-08 17:57 Sam James
2022-02-08 17:55 Sam James
2022-02-08 10:05 Michał Górny
2021-09-21 19:11 Michał Górny
2021-09-21 17:44 Sam James
2021-09-07  2:51 Sam James
2021-09-01  9:33 Agostino Sarubbo
2021-08-27 20:04 Sam James
2021-08-27 20:04 Sam James
2021-08-27  5:12 Agostino Sarubbo
2021-08-27  5:10 Agostino Sarubbo
2021-08-23  6:07 Michał Górny
2021-07-16 22:11 David Seifert
2021-04-30 11:28 Mikle Kolyada
2021-01-17 15:06 Michał Górny
2021-01-17 11:41 Sergei Trofimovich
2021-01-15  0:01 Sam James
2021-01-14 23:59 Sam James
2021-01-12 22:37 Sam James
2021-01-12 18:15 Sam James
2021-01-11 17:34 Sergei Trofimovich
2021-01-11 15:23 Michał Górny
2021-01-11  8:01 Sam James
2021-01-10 14:26 Sam James
2021-01-10 12:42 Sam James
2021-01-06 12:52 Fabian Groffen
2020-12-27 13:34 Fabian Groffen
2020-12-26  8:26 Michał Górny
2020-12-01 11:29 Michał Górny
2020-08-05 15:18 Michał Górny
2020-08-05 14:17 Agostino Sarubbo
2020-08-05 14:06 Agostino Sarubbo
2020-08-05 14:04 Agostino Sarubbo
2020-08-05 14:02 Agostino Sarubbo
2020-08-04 15:11 Sam James
2020-08-03 16:34 Sergei Trofimovich
2020-08-01  9:14 Sergei Trofimovich
2020-07-31 19:34 Sam James
2020-05-20  9:30 Michał Górny
2020-05-20  9:30 Michał Górny
2020-03-05 12:49 Agostino Sarubbo
2020-03-02 11:34 Sergei Trofimovich
2020-02-26 16:32 Sergei Trofimovich
2020-02-24 12:50 Agostino Sarubbo
2020-02-24 11:43 Agostino Sarubbo
2020-02-24 11:28 Agostino Sarubbo
2020-02-24  9:02 Agostino Sarubbo
2020-02-22 14:19 Sergei Trofimovich
2020-02-22 12:20 Mart Raudsepp
2020-02-21 15:57 Agostino Sarubbo
2020-02-21 10:08 Michał Górny
2020-02-12  5:55 Michał Górny
2020-01-27 19:36 Michał Górny
2019-11-22  9:37 Mikle Kolyada
2019-11-22  9:37 Mikle Kolyada
2019-11-22  9:37 Mikle Kolyada
2019-11-14 11:55 Agostino Sarubbo
2019-11-12 15:08 Agostino Sarubbo
2019-11-12  7:25 Sergei Trofimovich
2019-11-08  8:35 Mikle Kolyada
2019-11-06 20:11 Sergei Trofimovich
2019-11-05  9:27 Agostino Sarubbo
2019-11-05  8:24 Agostino Sarubbo
2019-11-05  0:54 Aaron Bauman
2019-10-27 17:11 Michał Górny
2019-10-12 12:03 Michał Górny
2019-08-30  8:14 Lars Wendler
2019-07-29 14:51 Mikle Kolyada
2019-07-29 14:51 Mikle Kolyada
2019-06-04 18:51 Agostino Sarubbo
2019-05-26  7:04 Sergei Trofimovich
2019-05-14  8:08 Sergei Trofimovich
2019-05-13  0:38 Thomas Deutschmann
2019-05-12 22:08 Anthony G. Basile
2019-05-12 22:03 Sergei Trofimovich
2019-05-12 21:57 Sergei Trofimovich
2019-05-12 21:48 Sergei Trofimovich
2019-05-12 18:13 Aaron Bauman
2019-02-19 12:27 Louis Sautier
2019-01-22 14:10 Michał Górny
2019-01-22 14:10 Michał Górny
2019-01-22 13:37 Michał Górny
2019-01-22 13:37 Michał Górny
2018-09-15 21:32 Lars Wendler
2018-06-28 14:47 Mikle Kolyada
2018-04-30 17:44 Mikle Kolyada
2018-03-02 20:35 Mart Raudsepp
2018-03-02 19:19 Michał Górny
2017-10-15 13:20 Sergei Trofimovich
2017-07-18  8:09 Lars Wendler
2017-07-18  8:09 Lars Wendler
2017-06-08  5:07 Markus Meier
2017-06-06 11:31 Agostino Sarubbo
2017-03-01 13:05 Michael Weber
2017-02-28 14:59 Lars Wendler
2017-02-24 10:35 Lars Wendler
2017-02-24 10:35 Lars Wendler
2017-02-18 12:05 Jeroen Roovers
2017-02-16 18:47 Michael Weber
2017-02-15 17:51 Markus Meier
2017-02-15 14:23 Tobias Klausmann
2017-02-14 15:39 Agostino Sarubbo
2017-02-13 11:13 Agostino Sarubbo
2017-01-15  9:31 Aaron Bauman
2017-01-01  9:56 Fabian Groffen
2016-12-26 16:50 Jeroen Roovers
2016-12-25 22:00 Fabian Groffen
2016-12-25 16:58 Fabian Groffen
2016-12-25 15:47 Fabian Groffen
2016-12-20  9:44 Agostino Sarubbo
2016-11-29 17:41 Markus Meier
2016-11-23 13:12 Tobias Klausmann
2016-11-21 12:43 Agostino Sarubbo
2016-11-21 12:42 Agostino Sarubbo
2016-10-31 22:39 Lars Wendler
2016-09-29 13:28 Agostino Sarubbo
2016-09-29 12:35 Agostino Sarubbo
2016-09-29  9:35 Agostino Sarubbo
2016-08-05 18:33 NP Hardass
2016-07-27 20:26 Markus Meier
2016-07-26 17:56 NP Hardass
2016-07-18  8:50 Agostino Sarubbo
2016-07-18  8:50 Agostino Sarubbo
2016-07-17 19:37 Jeroen Roovers
2016-07-17 11:52 Tobias Klausmann
2016-07-05 20:07 NP Hardass
2016-07-02  8:12 Fabian Groffen
2016-07-02  0:04 William Hubbs
2016-05-11  4:45 NP Hardass
2016-05-11  4:02 NP Hardass
2016-04-11 13:47 Agostino Sarubbo
2016-04-11 13:46 Agostino Sarubbo
2016-03-31  9:25 Agostino Sarubbo
2016-03-30  8:34 Agostino Sarubbo
2016-03-30  8:30 Agostino Sarubbo
2016-03-29 10:18 Agostino Sarubbo
2016-03-29 10:17 Agostino Sarubbo
2016-03-29  2:26 NP Hardass
2016-03-21 21:48 Anthony G. Basile
2015-09-20 13:02 Julian Ospald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708150226.d792390fa0f96947cd95ebbed70d028d0061f836.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox