commit:     2d190c9e5b1db3292ea5d36f77a314eee019f99d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  9 07:41:28 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov  9 07:41:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d190c9e

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 <sam <AT> gentoo.org>

 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(+)

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() {
        :
 }

Reply via email to