From 2d190c9e5b1db3292ea5d36f77a314eee019f99d Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 9 Nov 2024 07:41:28 +0000 Subject: dev-lang/rust-common: avoid unpacking whole archive Reported by mgorny (and suggested fix is by him): unpack just cargo.bashcomp.sh from the distfile instead of the whole thing, that way we don't need chcek-reqs.eclass. Signed-off-by: Sam James --- dev-lang/rust-common/rust-common-1.81.0.ebuild | 5 +++++ dev-lang/rust-common/rust-common-1.82.0.ebuild | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'dev-lang/rust-common') diff --git a/dev-lang/rust-common/rust-common-1.81.0.ebuild b/dev-lang/rust-common/rust-common-1.81.0.ebuild index ae917833b983..b977c5aa1b92 100644 --- a/dev-lang/rust-common/rust-common-1.81.0.ebuild +++ b/dev-lang/rust-common/rust-common-1.81.0.ebuild @@ -34,6 +34,11 @@ RDEPEND=" !dev-lang/rust-bin:stable " +src_unpack() { + # Avoid unpacking the whole tarball which would need check-reqs + tar -xf "${DISTDIR}"/${SRC} ${SRC%%.tar.xz}/src/tools/cargo/src/etc/cargo.bashcomp.sh || die +} + src_configure() { : } diff --git a/dev-lang/rust-common/rust-common-1.82.0.ebuild b/dev-lang/rust-common/rust-common-1.82.0.ebuild index 19197b4537fd..0d4b5aa7b8ae 100644 --- a/dev-lang/rust-common/rust-common-1.82.0.ebuild +++ b/dev-lang/rust-common/rust-common-1.82.0.ebuild @@ -35,6 +35,11 @@ RDEPEND=" !dev-lang/rust-bin:stable " +src_unpack() { + # Avoid unpacking the whole tarball which would need check-reqs + tar -xf "${DISTDIR}"/${SRC} ${SRC%%.tar.xz}/src/tools/cargo/src/etc/cargo.bashcomp.sh || die +} + src_configure() { : } -- cgit v1.2.3-65-gdbad